homeassistant-api-with-python.py aktualisiert
This commit is contained in:
parent
7c4670ed3f
commit
74e63e5a38
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user