From 74e63e5a380ff1203b3e704a0ec03e9c37f1a695 Mon Sep 17 00:00:00 2001 From: "Bruno J." Date: Thu, 3 Jul 2025 15:57:39 +0000 Subject: [PATCH] homeassistant-api-with-python.py aktualisiert --- homeassistant-api-with-python.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)