diff --git a/homeassistant-api-with-python.py b/homeassistant-api-with-python.py index 17dbad6..b1e2e18 100644 --- a/homeassistant-api-with-python.py +++ b/homeassistant-api-with-python.py @@ -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)