Re: Über welches Protokoll mit der CCU3 per Skript reden
Verfasst: 18.01.2024, 18:37
Wegen dem Addendum?
Heimautomation mit ELV HomeMatic und FHZ Funk-Hauszentralen
https://homematic-forum.de/forum/
Code: Alles auswählen
import requests
import xml.etree.ElementTree as ET
# auslesen vom Wochenprofile HmIP-eTRV-2 I9F 00000000000
Active_Profile = requests.get("http://ccu3-webui:8181/ccu3.exe?response=channels.Get(%22HmIP-eTRV-2%20I9F%00000000000:1%22).DPByHssDP(%22ACTIVE_PROFILE%22).State")
responseXML = ET.fromstring(Active_Profile.content)
element = responseXML.find('response')
print(element.text)
Code: Alles auswählen
http://ccu3-webui:8181/ccu3.exe?response=channels.Get("HmIP-eTRV-2 I9F 00000000000:1").DPByHssDP("ACTIVE_PROFILE").State
Rückgabe:
<xml>
<exec>/ccu3.exe</exec>
<sessionId/>
<httpUserAgent>
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:104.0) Gecko/20100101 Firefox/104.0
</httpUserAgent>
<response>1</response>
</xml>
Danke für die InfoSilverstar hat geschrieben: ↑18.01.2024, 19:065.0°C ist die minimal einstellbare Solltemperatur, 4.5 == Aus.