homeassistant-api-with-python.py aktualisiert

This commit is contained in:
Bruno J. 2025-07-03 15:57:39 +00:00
parent 7c4670ed3f
commit 74e63e5a38

View File

@ -1,7 +1,7 @@
import requests
# Home Assistant Einstellungen
HASS_URL = "http://IP_ADRESSE:8123/api/services/switch/toggle" # oder auch /light/toggle, usw
HASS_URL = "http://IP_ADRESSE:8123/api/services/switch/toggle" # oder auch /light/toggle, usw; Toogle ist am besten, da man für eine Entität nur ein Skript braucht!
TOKEN = "API Token von Home Assistant"
# Service-Daten (zum Beispiel, um eine Licht zu schalten)