12-17-2018, 08:56 PM
Hi
using pilight since some years with a lot of Intertechno and other switches. pilight is a great tool!
However since one of the newer 8.x.x versions the communication between the main daemon and the clientized daemon (a second raspberry) stops working.
hardware/software:
Problem happened ~once a week when the clientized daemon was running on an old raspberry pi 1B+ (with 8.0.9). It happens ~multiple times a day now since the clientized daemon is running on a new raspberry pi 3B+ (with 8.0.9 and also with 8.1.4). the main deamon runs on a raspberry pi 3. the clientized daemon says: [ code ] socket write failed: {"message":{"id" [ /code ]
detailed description:
The debug log says at [ Dec 17 18:11:07:44424 ]: via webgui i tried to switch on device
witch_ID_12345678, debug log entries from the master:
at the same time (synched via ntp) the clientized daemon's debug just says:
after a restart of both daemons with -D the same procedure produces this output and switching my the device works again (for a few hours), output from the main daemon:
So it looks as if the main daemon does not try to instruct the clientized daemon...
I can provide more info if needed.
Thanks,
Tom
P.S.: config.json:
note: i'm doing most automation with python scripts and cron
using pilight since some years with a lot of Intertechno and other switches. pilight is a great tool!
However since one of the newer 8.x.x versions the communication between the main daemon and the clientized daemon (a second raspberry) stops working.
hardware/software:
- main daemon: raspberry pi 3, hand-wired sender & receiver
- clientized daemon: raspberry pi 3B+, self soldered PCB HAT with all parts from the pilight shop
- a start / stop script makes sure, that both are (re-) started in the intended order
- used 8.0.9 for a long time on both
- currently both are running 8.1.4
- both raspberrys are connected via ethernet to the same switch, same subnet, no packed drops, rtt min/avg/max/mdev = 0.291/0.407/0.549/0.051 ms.
Problem happened ~once a week when the clientized daemon was running on an old raspberry pi 1B+ (with 8.0.9). It happens ~multiple times a day now since the clientized daemon is running on a new raspberry pi 3B+ (with 8.0.9 and also with 8.1.4). the main deamon runs on a raspberry pi 3. the clientized daemon says: [ code ] socket write failed: {"message":{"id" [ /code ]
detailed description:
- When the problem occurs, then a device can still be controlled by the main daemon. But a device which is only contolleable by the clientized daemon (via uuid or due to the range) does not react any more when i turn it on through the webgui, although the webgui says it was turned on/off. While it does not work via webgui, it still works via pilight-send on the clientized raspberry. This tells me that both pilights are running, but can't communicate with each other correctly.
- the normal log file on the clientized pilight also frequently says:
Code:
[Dec 17 08:24:40:296008] pilight-daemon: NOTICE: connection to main pilight daemon lost
[Dec 17 08:24:40:296067] pilight-daemon: NOTICE: trying to reconnect...
[ Dec 17 08:34:20:49491] pilight-daemon: NOTICE: connection to main pilight daemon lost
[ Dec 17 08:34:20:49548] pilight-daemon: NOTICE: trying to reconnect...
[Dec 17 08:34:43:443917] pilight-daemon: NOTICE: connection to main pilight daemon lost
The debug log says at [ Dec 17 18:11:07:44424 ]: via webgui i tried to switch on device

Code:
[Dec 17 18:11:03:599506] pilight-daemon: DEBUG: client fd: 20
[Dec 17 18:11:03:632511] pilight-daemon: DEBUG: cpu: 18.277697%
[Dec 17 18:11:03:963621] pilight-daemon: DEBUG: socket recv: {"action":"request values"}
[Dec 17 18:11:06:631926] pilight-daemon: DEBUG: cpu: 22.938048%
[ Dec 17 18:11:07:44424] pilight-daemon: DEBUG: socket recv: {"action":"control","code":{"device":"switch_ID_12345678","state":"on"}}
[ Dec 17 18:11:08:79931] pilight-daemon: DEBUG: socket recv: {"action":"control","code":{"device":"switch_ID_12345678","state":"off"}}
[Dec 17 18:11:09:631994] pilight-daemon: DEBUG: cpu: 28.735794%
[Dec 17 18:11:12:632225] pilight-daemon: DEBUG: cpu: 29.186800%
[Dec 17 18:11:15:632529] pilight-daemon: DEBUG: cpu: 29.360544%
[Dec 17 18:11:17:391473] pilight-daemon: DEBUG: socket recv: {"action":"control","code":{"device":"switch_ID_12345678","state":"on"}}
[Dec 17 18:11:17:986796] pilight-daemon: DEBUG: socket recv: {"action":"control","code":{"device":"switch_ID_12345678","state":"off"}}
[Dec 17 18:11:18:632285] pilight-daemon: DEBUG: cpu: 29.133632%
[Dec 17 18:11:21:631989] pilight-daemon: DEBUG: cpu: 23.428353%
[Dec 17 18:11:24:632768] pilight-daemon: DEBUG: cpu: 28.844682%
at the same time (synched via ntp) the clientized daemon's debug just says:
Code:
[Dec 17 18:11:01:926311] pilight-daemon: DEBUG: cpu: 36.370640%
[Dec 17 18:11:01:926539] pilight-daemon: DEBUG: socket write failed: {"values":{"cpu":36.3706399535275793},"origin":"core","type":-1,"uuid":"0000-b8-27-eb-caec10","action":"update"}
[Dec 17 18:11:01:926575] pilight-daemon: DEBUG: broadcasted: {"values":{"cpu":36.3706399535275793},"origin":"core","type":-1,"uuid":"0000-b8-27-eb-caec10"}
[Dec 17 18:11:04:926174] pilight-daemon: DEBUG: cpu: 36.292991%
[Dec 17 18:11:04:926393] pilight-daemon: DEBUG: socket write failed: {"values":{"cpu":36.2929908844716067},"origin":"core","type":-1,"uuid":"0000-b8-27-eb-caec10","action":"update"}
[Dec 17 18:11:04:926426] pilight-daemon: DEBUG: broadcasted: {"values":{"cpu":36.2929908844716067},"origin":"core","type":-1,"uuid":"0000-b8-27-eb-caec10"}
[Dec 17 18:11:07:926002] pilight-daemon: DEBUG: cpu: 36.673699%
[Dec 17 18:11:07:926243] pilight-daemon: DEBUG: socket write failed: {"values":{"cpu":36.6736994448918523},"origin":"core","type":-1,"uuid":"0000-b8-27-eb-caec10","action":"update"}
[Dec 17 18:11:07:926278] pilight-daemon: DEBUG: broadcasted: {"values":{"cpu":36.6736994448918523},"origin":"core","type":-1,"uuid":"0000-b8-27-eb-caec10"}
[Dec 17 18:11:10:925792] pilight-daemon: DEBUG: cpu: 36.334003%
[Dec 17 18:11:10:926016] pilight-daemon: DEBUG: socket write failed: {"values":{"cpu":36.3340030718041191},"origin":"core","type":-1,"uuid":"0000-b8-27-eb-caec10","action":"update"}
[Dec 17 18:11:10:926050] pilight-daemon: DEBUG: broadcasted: {"values":{"cpu":36.3340030718041191},"origin":"core","type":-1,"uuid":"0000-b8-27-eb-caec10"}
[Dec 17 18:11:13:926198] pilight-daemon: DEBUG: cpu: 36.455368%
[Dec 17 18:11:13:926436] pilight-daemon: DEBUG: socket write failed: {"values":{"cpu":36.4553677383087518},"origin":"core","type":-1,"uuid":"0000-b8-27-eb-caec10","action":"update"}
[Dec 17 18:11:13:926470] pilight-daemon: DEBUG: broadcasted: {"values":{"cpu":36.4553677383087518},"origin":"core","type":-1,"uuid":"0000-b8-27-eb-caec10"}
[Dec 17 18:11:16:925760] pilight-daemon: DEBUG: cpu: 36.350845%
[Dec 17 18:11:16:925994] pilight-daemon: DEBUG: socket write failed: {"values":{"cpu":36.3508450207041278},"origin":"core","type":-1,"uuid":"0000-b8-27-eb-caec10","action":"update"}
[Dec 17 18:11:16:926031] pilight-daemon: DEBUG: broadcasted: {"values":{"cpu":36.3508450207041278},"origin":"core","type":-1,"uuid":"0000-b8-27-eb-caec10"}
[Dec 17 18:11:19:925448] pilight-daemon: DEBUG: cpu: 36.316366%
[Dec 17 18:11:19:925676] pilight-daemon: DEBUG: socket write failed: {"values":{"cpu":36.3163656969542927},"origin":"core","type":-1,"uuid":"0000-b8-27-eb-caec10","action":"update"}
[Dec 17 18:11:19:925709] pilight-daemon: DEBUG: broadcasted: {"values":{"cpu":36.3163656969542927},"origin":"core","type":-1,"uuid":"0000-b8-27-eb-caec10"}
[Dec 17 18:11:20:826218] pilight-daemon: DEBUG: possible alecto_wx500 protocol
[Dec 17 18:11:20:826260] pilight-daemon: DEBUG: recevied pulse length of 270
[Dec 17 18:11:20:826276] pilight-daemon: DEBUG: caught minimum # of repeats 1 of alecto_wx500
[Dec 17 18:11:20:826291] pilight-daemon: DEBUG: called alecto_wx500 parseRaw()
[Dec 17 18:11:20:826310] pilight-daemon: DEBUG: possible alecto_wsd17 protocol
[Dec 17 18:11:20:826324] pilight-daemon: DEBUG: recevied pulse length of 270
[Dec 17 18:11:20:826339] pilight-daemon: DEBUG: caught minimum # of repeats 1 of alecto_wsd17
[Dec 17 18:11:20:826353] pilight-daemon: DEBUG: called alecto_wsd17 parseRaw()
[Dec 17 18:11:20:826526] pilight-daemon: DEBUG: possible alecto_ws1700 protocol
[Dec 17 18:11:20:826543] pilight-daemon: DEBUG: recevied pulse length of 270
[Dec 17 18:11:20:826557] pilight-daemon: DEBUG: caught minimum # of repeats 1 of alecto_ws1700
[Dec 17 18:11:20:826578] pilight-daemon: DEBUG: called alecto_ws1700 parseRaw()
[Dec 17 18:11:20:826780] pilight-daemon: DEBUG: socket write failed: {"message":{"id":4095,"temperature":409.5},"origin":"receiver","protocol":"alecto_wsd17","uuid":"0000-b8-27-eb-caec10","repeats":1,"action":"update"}
[Dec 17 18:11:20:826812] pilight-daemon: DEBUG: broadcasted: {"message":{"id":4095,"temperature":409.5},"origin":"receiver","protocol":"alecto_wsd17","uuid":"0000-b8-27-eb-caec10","repeats":1}
[Dec 17 18:11:20:827137] pilight-daemon: DEBUG: socket write failed: {"message":{"id":76,"temperature":24.8,"humidity":43.0,"battery":1},"origin":"receiver","protocol":"alecto_ws1700","uuid":"0000-b8-27-eb-caec10","repeats":1,"action":"update"}
[Dec 17 18:11:20:827171] pilight-daemon: DEBUG: broadcasted: {"message":{"id":76,"temperature":24.8,"humidity":43.0,"battery":1},"origin":"receiver","protocol":"alecto_ws1700","uuid":"0000-b8-27-eb-caec10","repeats":1}
[Dec 17 18:11:20:955209] pilight-daemon: DEBUG: possible alecto_wx500 protocol
[Dec 17 18:11:20:955271] pilight-daemon: DEBUG: recevied pulse length of 269
[Dec 17 18:11:20:955287] pilight-daemon: DEBUG: caught minimum # of repeats 2 of alecto_wx500
[Dec 17 18:11:20:955303] pilight-daemon: DEBUG: called alecto_wx500 parseRaw()
[Dec 17 18:11:20:955323] pilight-daemon: DEBUG: possible alecto_wsd17 protocol
[Dec 17 18:11:20:955339] pilight-daemon: DEBUG: recevied pulse length of 269
[Dec 17 18:11:20:955352] pilight-daemon: DEBUG: caught minimum # of repeats 2 of alecto_wsd17
[Dec 17 18:11:20:955367] pilight-daemon: DEBUG: called alecto_wsd17 parseRaw()
[Dec 17 18:11:20:955548] pilight-daemon: DEBUG: possible alecto_ws1700 protocol
[Dec 17 18:11:20:955565] pilight-daemon: DEBUG: recevied pulse length of 269
[Dec 17 18:11:20:955581] pilight-daemon: DEBUG: caught minimum # of repeats 2 of alecto_ws1700
[Dec 17 18:11:20:955600] pilight-daemon: DEBUG: called alecto_ws1700 parseRaw()
[Dec 17 18:11:20:955799] pilight-daemon: DEBUG: socket write failed: {"message":{"id":4095,"temperature":409.5},"origin":"receiver","protocol":"alecto_wsd17","uuid":"0000-b8-27-eb-caec10","repeats":2,"action":"update"}
[Dec 17 18:11:20:955830] pilight-daemon: DEBUG: broadcasted: {"message":{"id":4095,"temperature":409.5},"origin":"receiver","protocol":"alecto_wsd17","uuid":"0000-b8-27-eb-caec10","repeats":2}
[Dec 17 18:11:20:956154] pilight-daemon: DEBUG: socket write failed: {"message":{"id":76,"temperature":24.8,"humidity":43.0,"battery":1},"origin":"receiver","protocol":"alecto_ws1700","uuid":"0000-b8-27-eb-caec10","repeats":2,"action":"update"}
[Dec 17 18:11:20:956188] pilight-daemon: DEBUG: broadcasted: {"message":{"id":76,"temperature":24.8,"humidity":43.0,"battery":1},"origin":"receiver","protocol":"alecto_ws1700","uuid":"0000-b8-27-eb-caec10","repeats":2}
[ Dec 17 18:11:21:84101] pilight-daemon: DEBUG: possible alecto_wx500 protocol
[ Dec 17 18:11:21:84136] pilight-daemon: DEBUG: recevied pulse length of 270
[ Dec 17 18:11:21:84152] pilight-daemon: DEBUG: caught minimum # of repeats 3 of alecto_wx500
[ Dec 17 18:11:21:84167] pilight-daemon: DEBUG: called alecto_wx500 parseRaw()
[ Dec 17 18:11:21:84187] pilight-daemon: DEBUG: possible alecto_wsd17 protocol
[ Dec 17 18:11:21:84202] pilight-daemon: DEBUG: recevied pulse length of 270
[ Dec 17 18:11:21:84216] pilight-daemon: DEBUG: caught minimum # of repeats 3 of alecto_wsd17
[ Dec 17 18:11:21:84230] pilight-daemon: DEBUG: called alecto_wsd17 parseRaw()
[ Dec 17 18:11:21:84398] pilight-daemon: DEBUG: possible alecto_ws1700 protocol
[ Dec 17 18:11:21:84415] pilight-daemon: DEBUG: recevied pulse length of 270
[ Dec 17 18:11:21:84429] pilight-daemon: DEBUG: caught minimum # of repeats 3 of alecto_ws1700
[ Dec 17 18:11:21:84447] pilight-daemon: DEBUG: called alecto_ws1700 parseRaw()
[ Dec 17 18:11:21:84632] pilight-daemon: DEBUG: socket write failed: {"message":{"id":2047,"temperature":409.5},"origin":"receiver","protocol":"alecto_wsd17","uuid":"0000-b8-27-eb-caec10","repeats":3,"action":"update"}
[ Dec 17 18:11:21:84663] pilight-daemon: DEBUG: broadcasted: {"message":{"id":2047,"temperature":409.5},"origin":"receiver","protocol":"alecto_wsd17","uuid":"0000-b8-27-eb-caec10","repeats":3}
[ Dec 17 18:11:21:84982] pilight-daemon: DEBUG: socket write failed: {"message":{"id":76,"temperature":24.8,"humidity":43.0,"battery":1},"origin":"receiver","protocol":"alecto_ws1700","uuid":"0000-b8-27-eb-caec10","repeats":3,"action":"update"}
[ Dec 17 18:11:21:85016] pilight-daemon: DEBUG: broadcasted: {"message":{"id":76,"temperature":24.8,"humidity":43.0,"battery":1},"origin":"receiver","protocol":"alecto_ws1700","uuid":"0000-b8-27-eb-caec10","repeats":3}
[Dec 17 18:11:21:212990] pilight-daemon: DEBUG: possible alecto_wx500 protocol
[Dec 17 18:11:21:213022] pilight-daemon: DEBUG: recevied pulse length of 270
[Dec 17 18:11:21:213038] pilight-daemon: DEBUG: caught minimum # of repeats 4 of alecto_wx500
[Dec 17 18:11:21:213053] pilight-daemon: DEBUG: called alecto_wx500 parseRaw()
[Dec 17 18:11:21:213073] pilight-daemon: DEBUG: possible alecto_wsd17 protocol
[Dec 17 18:11:21:213104] pilight-daemon: DEBUG: recevied pulse length of 270
[Dec 17 18:11:21:213118] pilight-daemon: DEBUG: caught minimum # of repeats 4 of alecto_wsd17
[Dec 17 18:11:21:213133] pilight-daemon: DEBUG: called alecto_wsd17 parseRaw()
[Dec 17 18:11:21:213315] pilight-daemon: DEBUG: possible alecto_ws1700 protocol
[Dec 17 18:11:21:213333] pilight-daemon: DEBUG: recevied pulse length of 270
[Dec 17 18:11:21:213353] pilight-daemon: DEBUG: caught minimum # of repeats 4 of alecto_ws1700
[Dec 17 18:11:21:213370] pilight-daemon: DEBUG: called alecto_ws1700 parseRaw()
[Dec 17 18:11:21:213558] pilight-daemon: DEBUG: socket write failed: {"message":{"id":2047,"temperature":409.5},"origin":"receiver","protocol":"alecto_wsd17","uuid":"0000-b8-27-eb-caec10","repeats":4,"action":"update"}
[Dec 17 18:11:21:213589] pilight-daemon: DEBUG: broadcasted: {"message":{"id":2047,"temperature":409.5},"origin":"receiver","protocol":"alecto_wsd17","uuid":"0000-b8-27-eb-caec10","repeats":4}
[Dec 17 18:11:21:213907] pilight-daemon: DEBUG: socket write failed: {"message":{"id":76,"temperature":24.8,"humidity":43.0,"battery":1},"origin":"receiver","protocol":"alecto_ws1700","uuid":"0000-b8-27-eb-caec10","repeats":4,"action":"update"}
[Dec 17 18:11:21:213941] pilight-daemon: DEBUG: broadcasted: {"message":{"id":76,"temperature":24.8,"humidity":43.0,"battery":1},"origin":"receiver","protocol":"alecto_ws1700","uuid":"0000-b8-27-eb-caec10","repeats":4}
[Dec 17 18:11:21:341911] pilight-daemon: DEBUG: possible alecto_wx500 protocol
[Dec 17 18:11:21:341968] pilight-daemon: DEBUG: recevied pulse length of 269
[Dec 17 18:11:21:341986] pilight-daemon: DEBUG: caught minimum # of repeats 5 of alecto_wx500
[Dec 17 18:11:21:342001] pilight-daemon: DEBUG: called alecto_wx500 parseRaw()
[Dec 17 18:11:21:342022] pilight-daemon: DEBUG: possible alecto_wsd17 protocol
[Dec 17 18:11:21:342036] pilight-daemon: DEBUG: recevied pulse length of 269
[Dec 17 18:11:21:342049] pilight-daemon: DEBUG: caught minimum # of repeats 5 of alecto_wsd17
[Dec 17 18:11:21:342064] pilight-daemon: DEBUG: called alecto_wsd17 parseRaw()
[Dec 17 18:11:21:342255] pilight-daemon: DEBUG: possible alecto_ws1700 protocol
[Dec 17 18:11:21:342278] pilight-daemon: DEBUG: recevied pulse length of 269
[Dec 17 18:11:21:342293] pilight-daemon: DEBUG: caught minimum # of repeats 5 of alecto_ws1700
[Dec 17 18:11:21:342308] pilight-daemon: DEBUG: called alecto_ws1700 parseRaw()
[Dec 17 18:11:21:342510] pilight-daemon: DEBUG: socket write failed: {"message":{"id":2047,"temperature":409.5},"origin":"receiver","protocol":"alecto_wsd17","uuid":"0000-b8-27-eb-caec10","repeats":5,"action":"update"}
[Dec 17 18:11:21:342544] pilight-daemon: DEBUG: broadcasted: {"message":{"id":2047,"temperature":409.5},"origin":"receiver","protocol":"alecto_wsd17","uuid":"0000-b8-27-eb-caec10","repeats":5}
[Dec 17 18:11:21:342868] pilight-daemon: DEBUG: socket write failed: {"message":{"id":76,"temperature":24.8,"humidity":43.0,"battery":1},"origin":"receiver","protocol":"alecto_ws1700","uuid":"0000-b8-27-eb-caec10","repeats":5,"action":"update"}
[Dec 17 18:11:21:342902] pilight-daemon: DEBUG: broadcasted: {"message":{"id":76,"temperature":24.8,"humidity":43.0,"battery":1},"origin":"receiver","protocol":"alecto_ws1700","uuid":"0000-b8-27-eb-caec10","repeats":5}
[Dec 17 18:11:21:470680] pilight-daemon: DEBUG: possible alecto_wx500 protocol
[Dec 17 18:11:21:470713] pilight-daemon: DEBUG: recevied pulse length of 266
[Dec 17 18:11:21:470728] pilight-daemon: DEBUG: caught minimum # of repeats 6 of alecto_wx500
[Dec 17 18:11:21:470744] pilight-daemon: DEBUG: called alecto_wx500 parseRaw()
[Dec 17 18:11:21:470763] pilight-daemon: DEBUG: possible alecto_wsd17 protocol
[Dec 17 18:11:21:470777] pilight-daemon: DEBUG: recevied pulse length of 266
[Dec 17 18:11:21:470790] pilight-daemon: DEBUG: caught minimum # of repeats 6 of alecto_wsd17
[Dec 17 18:11:21:470805] pilight-daemon: DEBUG: called alecto_wsd17 parseRaw()
[Dec 17 18:11:21:470981] pilight-daemon: DEBUG: possible alecto_ws1700 protocol
[Dec 17 18:11:21:470998] pilight-daemon: DEBUG: recevied pulse length of 266
[Dec 17 18:11:21:471034] pilight-daemon: DEBUG: caught minimum # of repeats 6 of alecto_ws1700
[Dec 17 18:11:21:471055] pilight-daemon: DEBUG: called alecto_ws1700 parseRaw()
[Dec 17 18:11:21:471240] pilight-daemon: DEBUG: socket write failed: {"message":{"id":2047,"temperature":409.5},"origin":"receiver","protocol":"alecto_wsd17","uuid":"0000-b8-27-eb-caec10","repeats":6,"action":"update"}
[Dec 17 18:11:21:471270] pilight-daemon: DEBUG: broadcasted: {"message":{"id":2047,"temperature":409.5},"origin":"receiver","protocol":"alecto_wsd17","uuid":"0000-b8-27-eb-caec10","repeats":6}
[Dec 17 18:11:21:471582] pilight-daemon: DEBUG: socket write failed: {"message":{"id":76,"temperature":24.8,"humidity":43.0,"battery":1},"origin":"receiver","protocol":"alecto_ws1700","uuid":"0000-b8-27-eb-caec10","repeats":6,"action":"update"}
[Dec 17 18:11:21:471616] pilight-daemon: DEBUG: broadcasted: {"message":{"id":76,"temperature":24.8,"humidity":43.0,"battery":1},"origin":"receiver","protocol":"alecto_ws1700","uuid":"0000-b8-27-eb-caec10","repeats":6}
[Dec 17 18:11:22:925923] pilight-daemon: DEBUG: cpu: 37.095067%
[Dec 17 18:11:22:926157] pilight-daemon: DEBUG: socket write failed: {"values":{"cpu":37.0950674938146747},"origin":"core","type":-1,"uuid":"0000-b8-27-eb-caec10","action":"update"}
[Dec 17 18:11:22:926190] pilight-daemon: DEBUG: broadcasted: {"values":{"cpu":37.0950674938146747},"origin":"core","type":-1,"uuid":"0000-b8-27-eb-caec10"}
[Dec 17 18:11:25:926379] pilight-daemon: DEBUG: cpu: 36.465114%
after a restart of both daemons with -D the same procedure produces this output and switching my the device works again (for a few hours), output from the main daemon:
Code:
[Dec 17 19:29:02:563369] pilight-daemon: DEBUG: socket recv: {"action":"control","code":{"device":"switch_ID_12345678","state":"on"}}
[Dec 17 19:29:02:563619] pilight-daemon: DEBUG: socket write succeeded: {"code":{"id":12345678,"unit":0,"on":1,"protocol":["intertechno_switch"],"uuid":"0000-b8-27-eb-caec10"},"action":"send"}
[Dec 17 19:29:02:564729] pilight-daemon: DEBUG: socket recv: {"status":"success"}
[Dec 17 19:29:02:564777] pilight-daemon: DEBUG: client "0000-b8-27-eb-caec10" successfully executed our latest request
...
So it looks as if the main daemon does not try to instruct the clientized daemon...
I can provide more info if needed.
Thanks,
Tom
P.S.: config.json:
Code:
{
"devices": {
"temperatur1": {
"protocol": [ "alecto_ws1700" ],
"id": [{
"id": 76
}],
"temperature": 24.1,
"humidity": 43.0,
"battery": 1
},
"switch_ID_12345678": {
"uuid": "0000-b8-27-eb-caec10",
"protocol": [ "intertechno_switch" ],
"id": [{
"id": 12345678,
"unit": 0
}],
"state": "on"
},
"temperatur2": {
"protocol": [ "alecto_ws1700" ],
"id": [{
"id": 1
}],
"temperature": 7.5,
"humidity": 58.0,
"battery": 1
},
"next": {
"protocol": [ "program" ],
"id": [{
"name": "Next"
}],
"program": "/etc/pilight/next.sh",
"arguments": "",
"stop-command": "/etc/pilight/next1.sh",
"start-command": "/etc/pilight/./next.sh",
"state": "stopped",
"pid": 0
},
"toggle": {
"protocol": [ "program" ],
"id": [{
"name": "Toggle"
}],
"program": "/etc/pilight/toggle.sh",
"arguments": "",
"stop-command": "/etc/pilight/toggle.sh",
"start-command": "/etc/pilight/./toggle.sh",
"state": "stopped",
"pid": 0
},
"switch_R16_0": {
"protocol": [ "intertechno_old" ],
"id": [{
"id": 0,
"unit": 10
}],
"state": "off"
},
"switch_R16_1": {
"uuid": "0000-b8-27-eb-caec10",
"protocol": [ "intertechno_old" ],
"id": [{
"id": 1,
"unit": 10
}],
"state": "on"
},
"switch_R16_2": {
"protocol": [ "intertechno_old" ],
"id": [{
"id": 2,
"unit": 10
}],
"state": "on"
},
"switch_R16_3": {
"protocol": [ "intertechno_old" ],
"id": [{
"id": 3,
"unit": 10
}],
"state": "off"
},
"switch_R16_4": {
"protocol": [ "intertechno_old" ],
"id": [{
"id": 4,
"unit": 10
}],
"state": "off"
},
"switch_R16_13": {
"uuid": "0000-b8-27-eb-caec10",
"protocol": [ "intertechno_old" ],
"id": [{
"id": 13,
"unit": 10
}],
"state": "off"
},
"switch_R16_14": {
"protocol": [ "intertechno_old" ],
"id": [{
"id": 14,
"unit": 10
}],
"state": "off"
},
"switch_R16_15": {
"uuid": "0000-b8-27-eb-7a60d0",
"protocol": [ "intertechno_old" ],
"id": [{
"id": 15,
"unit": 10
}],
"state": "off"
},
"switch_R2_0": {
"protocol": [ "elro_400_switch" ],
"id": [{
"systemcode": 21,
"unitcode": 15
}],
"state": "off"
},
"switch_R2_1": {
"protocol": [ "elro_400_switch" ],
"id": [{
"systemcode": 21,
"unitcode": 23
}],
"state": "off"
},
"switch_R1_0": {
"protocol": [ "intertechno_switch" ],
"id": [{
"id": 24962886,
"unit": 0
}],
"state": "on"
},
"switch_R1_1": {
"uuid": "0000-b8-27-eb-caec10",
"protocol": [ "intertechno_switch" ],
"id": [{
"id": 24962886,
"unit": 1
}],
"state": "off"
},
"switch_R1_2": {
"uuid": "0000-b8-27-eb-caec10",
"protocol": [ "intertechno_switch" ],
"id": [{
"id": 24962886,
"unit": 2
}],
"state": "off"
},
"switch_R1_3": {
"uuid": "0000-b8-27-eb-caec10",
"protocol": [ "intertechno_switch" ],
"id": [{
"id": 24962886,
"unit": 3
}],
"state": "off"
},
"switch_R5_0": {
"uuid": "0000-b8-27-eb-caec10",
"protocol": [ "intertechno_switch" ],
"id": [{
"id": 24960866,
"unit": 4
}],
"state": "off"
},
"switch_R5_1": {
"uuid": "0000-b8-27-eb-caec10",
"protocol": [ "intertechno_switch" ],
"id": [{
"id": 24960866,
"unit": 5
}],
"state": "on"
},
"switch_R5_2": {
"uuid": "0000-b8-27-eb-caec10",
"protocol": [ "intertechno_switch" ],
"id": [{
"id": 24960866,
"unit": 6
}],
"state": "off"
},
"switch_R5_3": {
"uuid": "0000-b8-27-eb-caec10",
"protocol": [ "intertechno_switch" ],
"id": [{
"id": 24960866,
"unit": 7
}],
"state": "off"
},
"wallswitch1_R": {
"uuid": "0000-b8-27-eb-7a60d0",
"protocol": [ "kaku_switch" ],
"id": [{
"id": 16881998,
"unit": 10
}],
"state": "off"
},
"wallswitch1_L": {
"protocol": [ "kaku_switch" ],
"id": [{
"id": 16881998,
"unit": 11
}],
"state": "off"
},
"motion_sensors_hall": {
"protocol": [ "kaku_switch" ],
"id": [{
"id": 20750698,
"unit": 9
},
{
"id": 20752322,
"unit": 9
},
{
"id": 22502738,
"unit": 9
}],
"state": "off"
},
"virtual_switch_hall": {
"uuid": "0000-b8-27-eb-7a60d0",
"protocol": [ "intertechno_switch" ],
"id": [{
"id": 11111111,
"unit": 10
}],
"state": "off"
},
"hall_led_strip_master": {
"uuid": "0000-b8-27-eb-7a60d0",
"protocol": [ "intertechno_switch" ],
"id": [{
"id": 11111333,
"unit": 10
}],
"state": "on"
},
"roller_lr4": {
"uuid": "0000-b8-27-eb-caec10",
"protocol": [ "kaku_switch" ],
"id": [{
"id": 22222223,
"unit": 4
}],
"state": "off"
},
"roller_lr1": {
"uuid": "0000-b8-27-eb-caec10",
"protocol": [ "kaku_switch" ],
"id": [{
"id": 22222223,
"unit": 1
}],
"state": "off"
},
"roller_lr2": {
"uuid": "0000-b8-27-eb-caec10",
"protocol": [ "kaku_switch" ],
"id": [{
"id": 22222223,
"unit": 2
}],
"state": "on"
},
"roller_lr3": {
"uuid": "0000-b8-27-eb-caec10",
"protocol": [ "kaku_switch" ],
"id": [{
"id": 22222223,
"unit": 3
}],
"state": "on"
},
"roller_lr5": {
"uuid": "0000-b8-27-eb-caec10",
"protocol": [ "kaku_switch" ],
"id": [{
"id": 22222223,
"unit": 5
}],
"state": "on"
},
"roller_k1": {
"uuid": "0000-b8-27-eb-caec10",
"protocol": [ "kaku_switch" ],
"id": [{
"id": 22222223,
"unit": 11
}],
"state": "on"
},
"roller_k2": {
"uuid": "0000-b8-27-eb-caec10",
"protocol": [ "kaku_switch" ],
"id": [{
"id": 22222223,
"unit": 12
}],
"state": "on"
},
"roller_k3": {
"uuid": "0000-b8-27-eb-caec10",
"protocol": [ "kaku_switch" ],
"id": [{
"id": 22222223,
"unit": 13
}],
"state": "on"
},
"roller_br1": {
"uuid": "0000-b8-27-eb-caec10",
"protocol": [ "kaku_switch" ],
"id": [{
"id": 22222223,
"unit": 14
}],
"state": "on"
},
"roller_sh1": {
"uuid": "0000-b8-27-eb-7a60d0",
"protocol": [ "kaku_switch" ],
"id": [{
"id": 18888888,
"unit": 0
}],
"state": "off"
},
"roller_sh2": {
"uuid": "0000-b8-27-eb-7a60d0",
"protocol": [ "kaku_switch" ],
"id": [{
"id": 18888888,
"unit": 15
}],
"state": "off"
},
"steering_roller_lr4": {
"protocol": [ "generic_dimmer" ],
"id": [{
"id": 204
}],
"state": "on",
"dimlevel": 2
},
"steering_roller_lr1": {
"protocol": [ "generic_dimmer" ],
"id": [{
"id": 201
}],
"state": "on",
"dimlevel": 2
},
"steering_roller_lr2": {
"protocol": [ "generic_dimmer" ],
"id": [{
"id": 202
}],
"state": "on",
"dimlevel": 2
},
"steering_roller_lr3": {
"protocol": [ "generic_dimmer" ],
"id": [{
"id": 203
}],
"state": "on",
"dimlevel": 2
},
"steering_roller_lr5": {
"protocol": [ "generic_dimmer" ],
"id": [{
"id": 205
}],
"state": "on",
"dimlevel": 2
},
"steering_roller_k1": {
"protocol": [ "generic_dimmer" ],
"id": [{
"id": 211
}],
"state": "on",
"dimlevel": 2
},
"steering_roller_k2": {
"protocol": [ "generic_dimmer" ],
"id": [{
"id": 212
}],
"state": "on",
"dimlevel": 2
},
"steering_roller_k3": {
"protocol": [ "generic_dimmer" ],
"id": [{
"id": 213
}],
"state": "on",
"dimlevel": 2
},
"state2_roller_k1": {
"protocol": [ "generic_dimmer" ],
"id": [{
"id": 221
}],
"state": "on",
"dimlevel": 5
},
"state2_roller_k2": {
"protocol": [ "generic_dimmer" ],
"id": [{
"id": 222
}],
"state": "on",
"dimlevel": 4
},
"state2_roller_k3": {
"protocol": [ "generic_dimmer" ],
"id": [{
"id": 223
}],
"state": "on",
"dimlevel": 5
},
"steering_roller_br1": {
"protocol": [ "generic_dimmer" ],
"id": [{
"id": 214
}],
"state": "on",
"dimlevel": 2
},
"steering_roller_sh1": {
"protocol": [ "generic_dimmer" ],
"id": [{
"id": 200
}],
"state": "on",
"dimlevel": 3
},
"steering_roller_sh2": {
"protocol": [ "generic_dimmer" ],
"id": [{
"id": 215
}],
"state": "on",
"dimlevel": 3
},
"target_temperature_living_room": {
"protocol": [ "generic_dimmer" ],
"id": [{
"id": 900
}],
"state": "on",
"dimlevel": 30
},
"virtual_switch_sun": {
"protocol": [ "generic_dimmer" ],
"id": [{
"id": 100
}],
"state": "on",
"dimlevel": 2
},
"virtual_switch_wall_light_hall": {
"uuid": "0000-b8-27-eb-7a60d0",
"protocol": [ "kaku_dimmer" ],
"id": [{
"id": 11111112,
"unit": 9
}],
"state": "off",
"dimlevel": 11
},
"virtual_switch_PC": {
"protocol": [ "kaku_switch" ],
"id": [{
"id": 11111114,
"unit": 0
}],
"state": "off"
},
"switch_R3_0": {
"uuid": "0000-b8-27-eb-caec10",
"protocol": [ "intertechno_switch" ],
"id": [{
"id": 18910202,
"unit": 0
}],
"state": "off"
},
"switch_R3_1": {
"protocol": [ "intertechno_switch" ],
"id": [{
"id": 18910202,
"unit": 1
}],
"state": "off"
},
"switch_R3_2": {
"protocol": [ "kaku_dimmer" ],
"id": [{
"id": 18910202,
"unit": 2
}],
"state": "on",
"dimlevel": 7
},
"light_sensor": {
"uuid": "0000-b8-27-eb-caec10",
"protocol": [ "kaku_switch" ],
"id": [{
"id": 2070528,
"unit": 1
}],
"state": "on"
},
"label": {
"protocol": [ "generic_label" ],
"id": [{
"id": 100
}],
"label": "file_chg_roof: 2018-12-16_21:38 | file_chg_bw: 2018-12-16_21:35 | ws_roof: 2.4 | ws_buttwil: 3.2 | tempr_roof: 0.6 | age_bw: 5 minutes ago",
"color": "black"
},
"test-slave": {
"uuid": "0000-b8-27-eb-caec10",
"protocol": [ "intertechno_switch" ],
"id": [{
"id": 26473098,
"unit": 1
}],
"state": "off"
},
"test-master": {
"uuid": "0000-b8-27-eb-caec10",
"protocol": [ "intertechno_switch" ],
"id": [{
"id": 11118888,
"unit": 2
}],
"state": "off"
},
"dimmer_serial412100028": {
"protocol": [ "kaku_dimmer" ],
"id": [{
"id": 11111113,
"unit": 1
}],
"state": "off",
"dimlevel": 7
}
},
"rules": {
"switch_hall_on": {
"rule": "IF motion_sensors_hall.state == on AND virtual_switch_sun.dimlevel == 1 THEN switch DEVICE virtual_switch_hall TO on",
"active": 1
},
"switch_hall_off": {
"rule": "IF motion_sensors_hall.state == off THEN switch DEVICE virtual_switch_hall TO off AFTER '205 SECOND'",
"active": 1
},
"switch_wall_light_hall_on": {
"rule": "IF motion_sensors_hall.state == on AND virtual_switch_sun.dimlevel == 1 THEN dim DEVICE virtual_switch_wall_light_hall TO 11",
"active": 1
},
"randomize_dining_light": {
"rule": "IF datetime.hour == 19 AND datetime.minute == RANDOM(18, 19) THEN switch DEVICE switch_R1_1 TO on",
"active": 0
},
"switch_wall_light_hall_on_2": {
"rule": "IF motion_sensors_hall.state == on AND virtual_switch_sun.dimlevel == 2 THEN dim DEVICE virtual_switch_wall_light_hall TO 1",
"active": 1
},
"switch_wall_light_hall_off": {
"rule": "IF motion_sensors_hall.state == off THEN switch DEVICE virtual_switch_wall_light_hall TO off AFTER '204 SECOND'",
"active": 1
}
},
"gui": {
"label": {
"name": "Messwerte",
"group": [ "Wetter & Temperatur" ],
"media": [ "all" ]
},
"temperatur1": {
"name": "wohnzimmer",
"group": [ "Wetter & Temperatur" ],
"media": [ "all" ],
"show-battery": 1
},
"temperatur2": {
"name": "Batterieraum",
"group": [ "Wetter & Temperatur" ],
"media": [ "all" ],
"show-battery": 1
},
"switch_R1_1": {
"name": "Esszimmer",
"group": [ "Kueche & Wohnzimmer" ],
"media": [ "all" ],
"readonly": 0
},
"switch_R1_2": {
"name": "Sonne",
"group": [ "Kueche & Wohnzimmer" ],
"media": [ "all" ],
"readonly": 0
},
"switch_R1_3": {
"name": "LED_Unterbau",
"group": [ "Kueche & Wohnzimmer" ],
"media": [ "all" ],
"readonly": 0
},
"switch_R5_0": {
"name": "Lampe_1",
"group": [ "Kueche & Wohnzimmer" ],
"media": [ "all" ]
},
"switch_R5_1": {
"name": "Wandbild",
"group": [ "Kueche & Wohnzimmer" ],
"media": [ "all" ]
},
"switch_ID_12345678": {
"name": "Lichterkette",
"group": [ "Kueche & Wohnzimmer" ],
"media": [ "all" ]
},
"virtual_switch_PC": {
"name": "PC",
"group": [ "Kueche & Wohnzimmer" ],
"media": [ "all" ],
"confirm": 1
},
"switch_R16_15": {
"name": "Terrasse_Haustür",
"group": [ "Outside" ],
"media": [ "all" ]
},
"switch_R16_13": {
"name": "Parkplatz",
"group": [ "Outside" ],
"media": [ "all" ]
},
"virtual_switch_sun": {
"name": "day: 0, evening: 1, night: 2",
"group": [ "Outside" ],
"media": [ "all" ],
"dimlevel-minimum": 0,
"dimlevel-maximum": 2
},
"light_sensor": {
"name": "Nacht",
"group": [ "Outside" ],
"media": [ "all" ]
},
"wallswitch1_R": {
"name": "Gästezimmer_Deckenlampe",
"group": [ "Zimmer" ],
"media": [ "all" ]
},
"motion_sensors_hall": {
"name": "Bewegungsmelder Flur",
"group": [ "Zimmer" ],
"media": [ "all" ]
},
"virtual_switch_hall": {
"name": "Flur",
"group": [ "Zimmer" ],
"media": [ "all" ]
},
"virtual_switch_wall_light_hall": {
"name": "Wandlicht Flur",
"group": [ "Zimmer" ],
"media": [ "all" ]
},
"hall_led_strip_master": {
"name": "LED Flur Master",
"group": [ "Zimmer" ],
"media": [ "all" ]
},
"roller_lr4": {
"name": "Beschattung Wohnzimmer Nord-Ost",
"group": [ "Beschattung" ],
"media": [ "all" ]
},
"roller_lr1": {
"name": "Beschattung Wohnzimmer Ost",
"group": [ "Beschattung" ],
"media": [ "all" ]
},
"roller_lr2": {
"name": "Beschattung Wohnzimmer Sued-Ost",
"group": [ "Beschattung" ],
"media": [ "all" ]
},
"roller_lr3": {
"name": "Beschattung Wohnzimmer Sued",
"group": [ "Beschattung" ],
"media": [ "all" ]
},
"roller_lr5": {
"name": "Beschattung Wohnzimmer Sued-West",
"group": [ "Beschattung" ],
"media": [ "all" ]
},
"roller_k1": {
"name": "Beschattung Kueche links",
"group": [ "Beschattung" ],
"media": [ "all" ]
},
"roller_k2": {
"name": "Beschattung Kueche mitte",
"group": [ "Beschattung" ],
"media": [ "all" ]
},
"roller_k3": {
"name": "Beschattung Kueche rechts",
"group": [ "Beschattung" ],
"media": [ "all" ]
},
"roller_br1": {
"name": "Beschattung Bad",
"group": [ "Beschattung" ],
"media": [ "all" ]
},
"roller_sh1": {
"name": "Beschattung Solarthermie",
"group": [ "Beschattung" ],
"media": [ "all" ]
},
"roller_sh2": {
"name": "Beschattung Solarthermie 2",
"group": [ "Beschattung" ],
"media": [ "all" ]
},
"steering_roller_lr4": {
"name": "Wohnzimmer Nord-Ost 0: oben, 1: unten, 2: auto, 3:manuell",
"group": [ "Beschattung" ],
"media": [ "all" ],
"dimlevel-minimum": 0,
"dimlevel-maximum": 3
},
"steering_roller_lr1": {
"name": "Wohnzimmer Ost 0: oben, 1: unten, 2: auto, 3:manuell",
"group": [ "Beschattung" ],
"media": [ "all" ],
"dimlevel-minimum": 0,
"dimlevel-maximum": 3
},
"steering_roller_lr2": {
"name": "Wohnzimmer Sued-Ost 0: oben, 1: unten, 2: auto, 3:manuell",
"group": [ "Beschattung" ],
"media": [ "all" ],
"dimlevel-minimum": 0,
"dimlevel-maximum": 3
},
"steering_roller_lr3": {
"name": "Wohnzimmer Sued 0: oben, 1: unten, 2: auto, 3:manuell",
"group": [ "Beschattung" ],
"media": [ "all" ],
"dimlevel-minimum": 0,
"dimlevel-maximum": 3
},
"steering_roller_lr5": {
"name": "Wohnzimmer Sued-West 0: oben, 1: unten, 2: auto, 3:manuell",
"group": [ "Beschattung" ],
"media": [ "all" ],
"dimlevel-minimum": 0,
"dimlevel-maximum": 3
},
"steering_roller_k1": {
"name": "Kueche links 0: oben, 1: unten, 2: auto, 3:manuell",
"group": [ "Beschattung" ],
"media": [ "all" ],
"dimlevel-minimum": 0,
"dimlevel-maximum": 5
},
"steering_roller_k2": {
"name": "Kueche Mitte 0: oben, 1: unten, 2: auto, 3:manuell",
"group": [ "Beschattung" ],
"media": [ "all" ],
"dimlevel-minimum": 0,
"dimlevel-maximum": 5
},
"steering_roller_k3": {
"name": "Kueche rechts 0: oben, 1: unten, 2: auto, 3:manuell",
"group": [ "Beschattung" ],
"media": [ "all" ],
"dimlevel-minimum": 0,
"dimlevel-maximum": 5
},
"steering_roller_br1": {
"name": "Bad 0: oben, 1: unten, 2: auto, 3:manuell",
"group": [ "Beschattung" ],
"media": [ "all" ],
"dimlevel-minimum": 0,
"dimlevel-maximum": 3
},
"steering_roller_sh1": {
"name": "Solarthermie 1: 0: oben, 1: unten, 2: auto, 3:manuell",
"group": [ "Beschattung" ],
"media": [ "all" ],
"confirm": 1,
"dimlevel-minimum": 0,
"dimlevel-maximum": 3
},
"steering_roller_sh2": {
"name": "Solarthermie 2: 0: oben, 1: unten, 2: auto, 3:manuell",
"group": [ "Beschattung" ],
"media": [ "all" ],
"confirm": 1,
"dimlevel-minimum": 0,
"dimlevel-maximum": 3
},
"target_temperature_living_room": {
"name": "Temperatur Soll Wohnzimmer",
"group": [ "Beschattung" ],
"media": [ "all" ],
"dimlevel-minimum": 21,
"dimlevel-maximum": 30
},
"test-master": {
"name": "Test-Master",
"group": [ "Test" ],
"media": [ "all" ]
},
"test-slave": {
"name": "Test-Slave",
"group": [ "Test" ],
"media": [ "all" ]
}
},
"settings": {
"log-level": 6,
"pid-file": "/var/run/pilight.pid",
"log-file": "/var/log/pilight.log",
"webserver-enable": 1,
"webserver-root": "/usr/local/share/pilight/webgui",
"webserver-http-port": 5001,
"webserver-cache": 1,
"webgui-websockets": 1,
"gpio-platform": "raspberrypi3"
},
"hardware": {
"433gpio": {
"sender": 0,
"receiver": 1
}
},
"registry": {
"pilight": {
"version": {
"current": "8.1.4"
}
},
"webgui": {
"tabs": 0
},
"webserver": {
"ssl": {
"certificate": {
"location": "/etc/pilight/pilight.pem"
}
}
}
}
}
note: i'm doing most automation with python scripts and cron