Allgemeines zur HomeMatic Haussteuerung
Moderator: Co-Administratoren
-
alchy
- Beiträge: 10761
- Registriert: 24.02.2011, 01:34
- System: CCU
- Hat sich bedankt: 65 Mal
- Danksagung erhalten: 675 Mal
Beitrag
von alchy » 02.11.2016, 22:20
So ist es ja auch richtig.
CUXD.Exec ordnungsgemäß mit mindestens 2 Kanälen installiert, danach mindestens 1 x die CCU rebootet und nun hier am testen?
Soll heissen, das Exec Gerät funktioniert?
Probier mal:
Code: Alles auswählen
! Nuki Hardware Bridge Status auslesen by Alchy v 0.4
var OUTPUTSTAT = "Nuki_Status"; ! Name der Variablen, wo der Status gespeichert wird (Nuki_Status)
var OUTPUTBAT = "Nuki_Batterie"; ! Name der Variablen, wo der Batteriestatus gespeichert wird (Nuki_Batterie)
var url = "http://192.168.178.64:96/lockState?nukiID=99365833&token=123oli";
! +++++++++++++ AB HIER FINGER WEG +++++++++++++++++
dom.GetObject("CUxD.CUX2801001:1.CMD_SETS").State("wget -q -O - '"#url#"'");
dom.GetObject("CUxD.CUX2801001:1.CMD_QUERY_RET").State(1);
string srueck = dom.GetObject("CUxD.CUX2801001:1.CMD_RETS").State();
srueck = srueck.Substr(1, srueck.Length()-2);
var tmp1 = srueck.StrValueByIndex(",",2).StrValueByIndex(":",1); ! battery
integer tmp2 = (srueck.StrValueByIndex(",",0).StrValueByIndex(":",1)).ToInteger(); ! state
var tmp3 = srueck.StrValueByIndex(",",3).StrValueByIndex(":",1); ! success
if (tmp3.Find("true")>-1) {
if (tmp1.Find("true")>-1) { (dom.GetObject(ID_SYSTEM_VARIABLES)).Get(OUTPUTBAT).State("BATTERIEZUSTAND KRITISCH"); } else { (dom.GetObject(ID_SYSTEM_VARIABLES)).Get(OUTPUTBAT).State("BATTERIEZUSTAND OK"); }
string state = "unbekannt";
if (tmp2 == 0) { state = "nicht kalibriert"; }
if (tmp2 == 1) { state = "verschlossen"; }
if (tmp2 == 2) { state = "geoeffnet"; }
if (tmp2 == 3) { state = "sperren und gehen"; }
if (tmp2 == 4) { state = "ausgeklinkt"; }
if (tmp2 == 5) { state = "verriegeln"; }
if (tmp2 == 6) { state = "entriegeln"; }
if (tmp2 == 7) { state = "entriegelt"; }
if (tmp2 == 254) { state = "Motor blockiert"; }
if (tmp2 == 255) { state = "undefiniert"; }
(dom.GetObject(ID_SYSTEM_VARIABLES)).Get(OUTPUTSTAT).State(state);
} else {
(dom.GetObject(ID_SYSTEM_VARIABLES)).Get(OUTPUTSTAT).State("ABFRAGE NICHT ERFOLGREICH");
(dom.GetObject(ID_SYSTEM_VARIABLES)).Get(OUTPUTBAT).State("ABFRAGE NICHT ERFOLGREICH");
}
-
drake10
- Beiträge: 58
- Registriert: 12.02.2011, 11:00
- Hat sich bedankt: 1 Mal
Beitrag
von drake10 » 02.11.2016, 22:34
Cuxd funktioniert logge damit meine Homematicgeräte
-
drake10
- Beiträge: 58
- Registriert: 12.02.2011, 11:00
- Hat sich bedankt: 1 Mal
Beitrag
von drake10 » 02.11.2016, 22:36
Hab die Version 1.8 installiert
-
alchy
- Beiträge: 10761
- Registriert: 24.02.2011, 01:34
- System: CCU
- Hat sich bedankt: 65 Mal
- Danksagung erhalten: 675 Mal
Beitrag
von alchy » 02.11.2016, 22:36
Rückgabe vom oben geposteten Script, bitte.
Alchy
-
drake10
- Beiträge: 58
- Registriert: 12.02.2011, 11:00
- Hat sich bedankt: 1 Mal
Beitrag
von drake10 » 02.11.2016, 22:37
Mit dem neuen Script gleiches Ergebnis
-
drake10
- Beiträge: 58
- Registriert: 12.02.2011, 11:00
- Hat sich bedankt: 1 Mal
Beitrag
von drake10 » 02.11.2016, 22:38
Rückgabe
Code: Alles auswählen
{
"tmp3": "null",
"OUTPUTBAT": "Nuki_Batterie",
"state": "",
"srueck": "",
"OUTPUTSTAT": "Nuki_Status",
"sessionId": "",
"tmp1": "null",
"httpUserAgent": "",
"tmp2": "0",
"url": "http:\/\/192.168.178.64:96\/lockState?nukiID=99365833&token=123oli",
"STDOUT": ""
}
Zuletzt geändert von
alchy am 02.11.2016, 22:54, insgesamt 1-mal geändert.
Grund: Code bitte in Codetags posten :-(
-
alchy
- Beiträge: 10761
- Registriert: 24.02.2011, 01:34
- System: CCU
- Hat sich bedankt: 65 Mal
- Danksagung erhalten: 675 Mal
Beitrag
von alchy » 02.11.2016, 22:45
Du erhältst keine Rückgabe. Das heisst, entweder kann die CCU keine Verbindung mittels wget zum Gerät herstellen.
Da wäre nun das
Fehlerlog interessant.
Auf ein Minimum reduziert, wäre das Script so:
Code: Alles auswählen
var url = "http://192.168.178.64:96/lockState?nukiID=99365833&token=123oli";
dom.GetObject("CUxD.CUX2801001:1.CMD_SETS").State("wget -q -O - '"#url#"'");
dom.GetObject("CUxD.CUX2801001:1.CMD_QUERY_RET").State(1);
string srueck = dom.GetObject("CUxD.CUX2801001:1.CMD_RETS").State();
Alchy
-
drake10
- Beiträge: 58
- Registriert: 12.02.2011, 11:00
- Hat sich bedankt: 1 Mal
Beitrag
von drake10 » 02.11.2016, 22:49
Also meine Rückgabe auf das Script ist
Code: Alles auswählen
{
"srueck": "",
"sessionId": "",
"httpUserAgent": "",
"url": "http:\/\/192.168.178.64:96\/lockState?nukiID=99365833&token=123oli",
"STDOUT": ""
}
Zuletzt geändert von
alchy am 02.11.2016, 22:54, insgesamt 1-mal geändert.
Grund: Code bitte in Codetags posten !!!
-
drake10
- Beiträge: 58
- Registriert: 12.02.2011, 11:00
- Hat sich bedankt: 1 Mal
Beitrag
von drake10 » 02.11.2016, 22:50
Muss ich im Cuxd noch was einstellen
drake10
-
drake10
- Beiträge: 58
- Registriert: 12.02.2011, 11:00
- Hat sich bedankt: 1 Mal
Beitrag
von drake10 » 02.11.2016, 23:00
Hier mal ein kleiner Ausschnitt der Fehlerlogdatei
Code: Alles auswählen
Nov 2 22:58:14 homematic-ccu2 local0.info ReGaHss: Info: IseSession GetSessionId from URL: /esp/system.htm?sid=@Ts4cneCwiA@&action=UpdateUI [../Platform/Internet/http/iseSession.cpp (185)]
Nov 2 22:58:14 homematic-ccu2 local0.info ReGaHss: Info: http id #0 sends parsed file [../Platform/Internet/http/httpServer.cpp (2026)]
Nov 2 22:58:15 homematic-ccu2 local0.info ReGaHss: Info: start web processing, worker thread #0 {"HTTP-Listener"} [../Platform/Internet/http/httpListener.cpp (205)]
Nov 2 22:58:15 homematic-ccu2 local0.info ReGaHss: Info: recvd 100 bytes by web server #0 [../Platform/Internet/http/httpServer.cpp (763)]
Nov 2 22:58:15 homematic-ccu2 local0.info ReGaHss: Info: IseSession GetSessionId from URL: /tclrega.exe [../Platform/Internet/http/iseSession.cpp (185)]
Nov 2 22:58:15 homematic-ccu2 local0.info ReGaHss: Info: http id #0 sends parsed file [../Platform/Internet/http/httpServer.cpp (2026)]
Nov 2 22:58:15 homematic-ccu2 local0.info ReGaHss: Info: start web processing, worker thread #0 {"HTTP-Listener"} [../Platform/Internet/http/httpListener.cpp (205)]
Nov 2 22:58:15 homematic-ccu2 local0.info ReGaHss: Info: recvd 104 bytes by web server #0 [../Platform/Internet/http/httpServer.cpp (763)]
Nov 2 22:58:15 homematic-ccu2 local0.info ReGaHss: Info: IseSession GetSessionId from URL: /tclrega.exe [../Platform/Internet/http/iseSession.cpp (185)]
Nov 2 22:58:15 homematic-ccu2 local0.info ReGaHss: Info: http id #0 sends parsed file [../Platform/Internet/http/httpServer.cpp (2026)]
Nov 2 22:58:16 homematic-ccu2 local0.info ReGaHss: Info: start web processing, worker thread #0 {"HTTP-Listener"} [../Platform/Internet/http/httpListener.cpp (205)]
Nov 2 22:58:16 homematic-ccu2 local0.info ReGaHss: Info: recvd 87 bytes by web server #0 [../Platform/Internet/http/httpServer.cpp (763)]
Nov 2 22:58:16 homematic-ccu2 local0.info ReGaHss: Info: IseSession GetSessionId from URL: /tclrega.exe [../Platform/Internet/http/iseSession.cpp (185)]
Nov 2 22:58:16 homematic-ccu2 local0.info ReGaHss: Info: http id #0 sends parsed file [../Platform/Internet/http/httpServer.cpp (2026)]
Nov 2 22:58:17 homematic-ccu2 local0.info ReGaHss: Info: start web processing, worker thread #0 {"HTTP-Listener"} [../Platform/Internet/http/httpListener.cpp (205)]
Nov 2 22:58:17 homematic-ccu2 local0.info ReGaHss: Info: recvd 326 bytes by web server #0 [../Platform/Internet/http/httpServer.cpp (763)]
Nov 2 22:58:17 homematic-ccu2 local0.info ReGaHss: Info: IseSession GetSessionId from URL: /tclrega.exe [../Platform/Internet/http/iseSession.cpp (185)]
Nov 2 22:58:17 homematic-ccu2 local0.info ReGaHss: Info: http id #0 sends parsed file [../Platform/Internet/http/httpServer.cpp (2026)]
Nov 2 22:58:17 homematic-ccu2 local0.info ReGaHss: Info: start web processing, worker thread #0 {"HTTP-Listener"} [../Platform/Internet/http/httpListener.cpp (205)]
Nov 2 22:58:17 homematic-ccu2 local0.info ReGaHss: Info: recvd 809 bytes by web server #0 [../Platform/Internet/http/httpServer.cpp (763)]
Nov 2 22:58:17 homematic-ccu2 local0.info ReGaHss: Info: IseSession GetSessionId from URL: /esp/system.htm?sid=@Ts4cneCwiA@&action=UpdateUI [../Platform/Internet/http/iseSession.cpp (185)]
Nov 2 22:58:17 homematic-ccu2 local0.info ReGaHss: Info: http id #0 sends parsed file [../Platform/Internet/http/httpServer.cpp (2026)]
Nov 2 22:58:17 homematic-ccu2 local0.info ReGaHss: Info: start web processing, worker thread #0 {"HTTP-Listener"} [../Platform/Internet/http/httpListener.cpp (205)]
Nov 2 22:58:17 homematic-ccu2 local0.info ReGaHss: Info: recvd 326 bytes by web server #0 [../Platform/Internet/http/httpServer.cpp (763)]
Nov 2 22:58:17 homematic-ccu2 local0.info ReGaHss: Info: IseSession GetSessionId from URL: /tclrega.exe [../Platform/Internet/http/iseSession.cpp (185)]
Nov 2 22:58:17 homematic-ccu2 local0.info ReGaHss: Info: http id #0 sends parsed file [../Platform/Internet/http/httpServer.cpp (2026)]
Nov 2 22:58:18 homematic-ccu2 user.debug multimac: C> @10135243: #50 LLMAC RX @21671ms -41dBm AB 84 70 27 0D 67 00 00 00 00 F5 2A
Nov 2 22:58:18 homematic-ccu2 user.debug multimac: Bidcos RX: #AB[BC|Ren] 270D67->000000 WeatherData: 00 F5 2A
Nov 2 22:58:18 homematic-ccu2 user.debug multimac: GetAckActionForIncomingTelegram() ackAction=AckAction_NotForUs, wakeup=None
Nov 2 22:58:18 homematic-ccu2 user.debug multimac: A<: #198 HmBidcos RxTelegram AuthNone #AB[BC|Ren] 270D67->000000 WeatherData: 00 F5 2A
Nov 2 22:58:18 homematic-ccu2 user.debug rfd: RX for LEQ0080177: @655149017 RSSI=-41dB 0x270D67 -> 0x000000 WEATHER [LEQ0393496]: CNT=43,RPTEN=1,RPTED=0,BIDI=0,BURST=0,WAKEUP=0,WAKEMEUP=0,BCAST=1,TYPE=0x70 LOWBAT = 0 TEMP = 245 HUMIDITY = 42 RAINING = 0 RAINCNT =
Nov 2 22:58:18 homematic-ccu2 user.debug rfd: Event: LEQ0080177:1.TEMPERATURE=24.500000
Nov 2 22:58:18 homematic-ccu2 user.debug rfd: Event: LEQ0080177:1.HUMIDITY=42
Nov 2 22:58:18 homematic-ccu2 user.debug rfd: HSSXmlRpcEventDispatcher::Handle send 2 events
Nov 2 22:58:18 homematic-ccu2 user.debug rfd: HSSXmlRpcEventDispatcher::Handle send 2 events
Nov 2 22:58:18 homematic-ccu2 local0.info ReGaHss: Info: XmlRpcMethodEvent::execute: Event="LEQ0080177:1"."TEMPERATURE"=24.500000 [../Platform/DOM/iseXmlRpc.cpp (344)]
Nov 2 22:58:18 homematic-ccu2 local0.debug ReGaHss: Verbose: CHANNEL::SetLastDPActionTime: call on change; id = 2695 [../Platform/DOM/iseDOMchn.h (288)]
Nov 2 22:58:18 homematic-ccu2 user.debug rfd: HSSXmlRpcEventDispatcher::Handle send completed
Nov 2 22:58:18 homematic-ccu2 user.debug rfd: HSSXmlRpcEventDispatcher::Handle send 2 events
Nov 2 22:58:18 homematic-ccu2 user.debug rfd: HSSXmlRpcEventDispatcher::Handle send completed
Nov 2 22:58:18 homematic-ccu2 local0.debug ReGaHss: Verbose: DEVICE::SetLastActionTime: call on change; id = 2665 [../Platform/DOM/iseDOMdev.h (225)]
Nov 2 22:58:18 homematic-ccu2 local0.debug ReGaHss: Verbose: EventThread::ThreadFunction: wait max timeout = 240000 [../Platform/RT/iseRTEvent.cpp (69)]
Nov 2 22:58:18 homematic-ccu2 local0.debug ReGaHss: Verbose: XmlRpcMethodEvent::execute: UpdateValue succeeded; val = 24.500000 [../Platform/DOM/iseXmlRpc.cpp (379)]
Nov 2 22:58:18 homematic-ccu2 local0.info ReGaHss: Info: XmlRpcMethodEvent::execute: Event="LEQ0080177:1"."HUMIDITY"=42 [../Platform/DOM/iseXmlRpc.cpp (344)]
Nov 2 22:58:18 homematic-ccu2 local0.debug ReGaHss: Verbose: CHANNEL::SetLastDPActionTime: call on change; id = 2695 [../Platform/DOM/iseDOMchn.h (288)]
Nov 2 22:58:18 homematic-ccu2 local0.debug ReGaHss: Verbose: DEVICE::SetLastActionTime: call on change; id = 2665 [../Platform/DOM/iseDOMdev.h (225)]
Nov 2 22:58:18 homematic-ccu2 local0.debug ReGaHss: Verbose: EventThread::ThreadFunction: wait max timeout = 240000 [../Platform/RT/iseRTEvent.cpp (69)]
Nov 2 22:58:18 homematic-ccu2 local0.debug ReGaHss: Verbose: XmlRpcMethodEvent::execute: UpdateValue succeeded; val = 42 [../Platform/DOM/iseXmlRpc.cpp (379)]
Nov 2 22:58:18 homematic-ccu2 user.debug rfd: HSSXmlRpcEventDispatcher::Handle send completed
Nov 2 22:58:20 homematic-ccu2 local0.info ReGaHss: Info: start web processing, worker thread #0 {"HTTP-Listener"} [../Platform/Internet/http/httpListener.cpp (205)]
Nov 2 22:58:20 homematic-ccu2 local0.info ReGaHss: Info: recvd 809 bytes by web server #0 [../Platform/Internet/http/httpServer.cpp (763)]
Nov 2 22:58:20 homematic-ccu2 local0.info ReGaHss: Info: IseSession GetSessionId from URL: /esp/system.htm?sid=@Ts4cneCwiA@&action=UpdateUI [../Platform/Internet/http/iseSession.cpp (185)]
Nov 2 22:58:20 homematic-ccu2 local0.info ReGaHss: Info: start web processing, worker thread #1 {"HTTP-Listener"} [../Platform/Internet/http/httpListener.cpp (205)]
Nov 2 22:58:20 homematic-ccu2 local0.info ReGaHss: Info: recvd 100 bytes by web server #1 [../Platform/Internet/http/httpServer.cpp (763)]
Nov 2 22:58:20 homematic-ccu2 local0.info ReGaHss: Info: IseSession GetSessionId from URL: /tclrega.exe [../Platform/Internet/http/iseSession.cpp (185)]
Nov 2 22:58:20 homematic-ccu2 local0.info ReGaHss: Info: http id #1 sends parsed file [../Platform/Internet/http/httpServer.cpp (2026)]
Nov 2 22:58:20 homematic-ccu2 local0.info ReGaHss: Info: start web processing, worker thread #1 {"HTTP-Listener"} [../Platform/Internet/http/httpListener.cpp (205)]
Nov 2 22:58:20 homematic-ccu2 local0.info ReGaHss: Info: recvd 104 bytes by web server #1 [../Platform/Internet/http/httpServer.cpp (763)]
Nov 2 22:58:20 homematic-ccu2 local0.info ReGaHss: Info: IseSession GetSessionId from URL: /tclrega.exe [../Platform/Internet/http/iseSession.cpp (185)]
Nov 2 22:58:20 homematic-ccu2 local0.info ReGaHss: Info: http id #1 sends parsed file [../Platform/Internet/http/httpServer.cpp (2026)]
Nov 2 22:58:20 homematic-ccu2 local0.info ReGaHss: Info: http id #0 sends parsed file [../Platform/Internet/http/httpServer.cpp (2026)]
Nov 2 22:58:22 homematic-ccu2 local0.info ReGaHss: Info: start web processing, worker thread #0 {"HTTP-Listener"} [../Platform/Internet/http/httpListener.cpp (205)]
Nov 2 22:58:22 homematic-ccu2 local0.info ReGaHss: Info: recvd 326 bytes by web server #0 [../Platform/Internet/http/httpServer.cpp (763)]
Nov 2 22:58:22 homematic-ccu2 local0.info ReGaHss: Info: IseSession GetSessionId from URL: /tclrega.exe [../Platform/Internet/http/iseSession.cpp (185)]
Nov 2 22:58:22 homematic-ccu2 local0.info ReGaHss: Info: http id #0 sends parsed file [../Platform/Internet/http/httpServer.cpp (2026)]
Zuletzt geändert von
drake10 am 02.11.2016, 23:12, insgesamt 1-mal geändert.