Closed webdandy closed 7 years ago
Well, without more I can't. :(
Maybe the WebSocket connection could not be reconnected, and it's broken internally.
What for information can I share, so that you may have a look? ;-)
Any hints in the log before that event?
This is the complete log if I start the homebridge in debug mode:
[2017-08-03 10:36:52] Loaded plugin: homebridge-cmd [2017-08-03 10:36:52] Registering accessory 'homebridge-cmd.CMD' [2017-08-03 10:36:52] --- [2017-08-03 10:36:52] Loaded plugin: homebridge-pilight [2017-08-03 10:36:52] Registering accessory 'homebridge-pilight.pilight' [2017-08-03 10:36:52] --- [2017-08-03 10:36:52] Loaded plugin: homebridge-wakeonlan [2017-08-03 10:36:52] Registering accessory 'homebridge-wakeonlan.WakeOnLan' [2017-08-03 10:36:52] --- [2017-08-03 10:36:53] Loaded config.json with 14 accessories and 0 platforms. [2017-08-03 10:36:53] --- [2017-08-03 10:36:53] Loading 14 accessories... [2017-08-03 10:36:53] [Samsung] Initializing pilight accessory... [2017-08-03 10:36:53] [Samsung] [homebridge-pilight] Plugin 'homebridge-pilight 1.4.0' registered as: plugin='homebridge-pilight', accessory='pilight', name='Samsung'undefined [2017-08-03 10:36:53] [Samsung] [homebridge-pilight] [WebSocket] Connecting to "ws://192.168.1.4:8080/"...undefinedundefined [2017-08-03 10:36:53] [Stehlampe] Initializing pilight accessory... [2017-08-03 10:36:53] [Stehlampe] [homebridge-pilight] Plugin 'homebridge-pilight 1.4.0' registered as: plugin='homebridge-pilight', accessory='pilight', name='Stehlampe'undefined [2017-08-03 10:36:53] [Stehlampe] [homebridge-pilight] [WebSocket] Connecting to "ws://192.168.1.4:8080/"...undefinedundefined [2017-08-03 10:36:53] [Weihnachtsbeleuchtung] Initializing pilight accessory... [2017-08-03 10:36:53] [Weihnachtsbeleuchtung] [homebridge-pilight] Plugin 'homebridge-pilight 1.4.0' registered as: plugin='homebridge-pilight', accessory='pilight', name='Weihnachtsbeleuchtung'undefined [2017-08-03 10:36:53] [Weihnachtsbeleuchtung] [homebridge-pilight] [WebSocket] Connecting to "ws://192.168.1.4:8080/"...undefinedundefined [2017-08-03 10:36:53] [Fensterbankbeleuchtung] Initializing pilight accessory... [2017-08-03 10:36:53] [Fensterbankbeleuchtung] [homebridge-pilight] Plugin 'homebridge-pilight 1.4.0' registered as: plugin='homebridge-pilight', accessory='pilight', name='Fensterbankbeleuchtung'undefined [2017-08-03 10:36:53] [Fensterbankbeleuchtung] [homebridge-pilight] [WebSocket] Connecting to "ws://192.168.1.4:8080/"...undefinedundefined [2017-08-03 10:36:53] [Ambilight] Initializing pilight accessory... [2017-08-03 10:36:53] [Ambilight] [homebridge-pilight] Plugin 'homebridge-pilight 1.4.0' registered as: plugin='homebridge-pilight', accessory='pilight', name='Ambilight'undefined [2017-08-03 10:36:53] [Ambilight] [homebridge-pilight] [WebSocket] Connecting to "ws://192.168.1.4:8080/"...undefinedundefined [2017-08-03 10:36:53] [LG] Initializing pilight accessory... [2017-08-03 10:36:53] [LG] [homebridge-pilight] Plugin 'homebridge-pilight 1.4.0' registered as: plugin='homebridge-pilight', accessory='pilight', name='LG'undefined [2017-08-03 10:36:53] [LG] [homebridge-pilight] [WebSocket] Connecting to "ws://192.168.1.4:8080/"...undefinedundefined [2017-08-03 10:36:53] [Schlafzimmerbeleuchtung] Initializing pilight accessory... [2017-08-03 10:36:53] [Schlafzimmerbeleuchtung] [homebridge-pilight] Plugin 'homebridge-pilight 1.4.0' registered as: plugin='homebridge-pilight', accessory='pilight', name='Schlafzimmerbeleuchtung'undefined [2017-08-03 10:36:53] [Schlafzimmerbeleuchtung] [homebridge-pilight] [WebSocket] Connecting to "ws://192.168.1.4:8080/"...undefinedundefined [2017-08-03 10:36:53] [Drucker] Initializing pilight accessory... [2017-08-03 10:36:53] [Drucker] [homebridge-pilight] Plugin 'homebridge-pilight 1.4.0' registered as: plugin='homebridge-pilight', accessory='pilight', name='Drucker'undefined [2017-08-03 10:36:53] [Drucker] [homebridge-pilight] [WebSocket] Connecting to "ws://192.168.1.4:8080/"...undefinedundefined [2017-08-03 10:36:53] [Küchenbeleuchtung] Initializing pilight accessory... [2017-08-03 10:36:53] [Küchenbeleuchtung] [homebridge-pilight] Plugin 'homebridge-pilight 1.4.0' registered as: plugin='homebridge-pilight', accessory='pilight', name='Küchenbeleuchtung'undefined [2017-08-03 10:36:53] [Küchenbeleuchtung] [homebridge-pilight] [WebSocket] Connecting to "ws://192.168.1.4:8080/"...undefinedundefined [2017-08-03 10:36:53] [Bedroom alles aus] Initializing pilight accessory... [2017-08-03 10:36:53] [Bedroom alles aus] [homebridge-pilight] Plugin 'homebridge-pilight 1.4.0' registered as: plugin='homebridge-pilight', accessory='pilight', name='Bedroom alles aus'undefined [2017-08-03 10:36:53] [Bedroom alles aus] [homebridge-pilight] [WebSocket] Connecting to "ws://192.168.1.4:8080/"...undefinedundefined [2017-08-03 10:36:53] [Wohnzimmer alles aus] Initializing pilight accessory... [2017-08-03 10:36:53] [Wohnzimmer alles aus] [homebridge-pilight] Plugin 'homebridge-pilight 1.4.0' registered as: plugin='homebridge-pilight', accessory='pilight', name='Wohnzimmer alles aus'undefined [2017-08-03 10:36:53] [Wohnzimmer alles aus] [homebridge-pilight] [WebSocket] Connecting to "ws://192.168.1.4:8080/"...undefinedundefined [2017-08-03 10:36:53] [Desktop] Initializing pilight accessory... [2017-08-03 10:36:53] [Desktop] [homebridge-pilight] Plugin 'homebridge-pilight 1.4.0' registered as: plugin='homebridge-pilight', accessory='pilight', name='Desktop'undefined [2017-08-03 10:36:53] [Desktop] [homebridge-pilight] [WebSocket] Connecting to "ws://192.168.1.4:8080/"...undefinedundefined [2017-08-03 10:36:53] [NAS] Initializing pilight accessory... [2017-08-03 10:36:53] [NAS] [homebridge-pilight] Plugin 'homebridge-pilight 1.4.0' registered as: plugin='homebridge-pilight', accessory='pilight', name='NAS'undefined [2017-08-03 10:36:53] [NAS] [homebridge-pilight] [WebSocket] Connecting to "ws://192.168.1.4:8080/"...undefinedundefined [2017-08-03 10:36:53] [Flurbeleuchtung] Initializing CMD accessory... Scan this code with your HomeKit App on your iOS device to pair with Homebridge:
┌────────────┐
│ 243-39-894 │
└────────────┘
[2017-08-03 10:36:53] Homebridge is running on port 51826. [2017-08-03 10:36:53] [Samsung] [homebridge-pilight] [WebSocket] Connection established successfullyundefinedundefined [2017-08-03 10:36:53] [Samsung] [homebridge-pilight] Requesting initial states...undefined [2017-08-03 10:36:53] [Stehlampe] [homebridge-pilight] [WebSocket] Connection established successfullyundefinedundefined [2017-08-03 10:36:53] [Stehlampe] [homebridge-pilight] Requesting initial states...undefined [2017-08-03 10:36:53] [Weihnachtsbeleuchtung] [homebridge-pilight] [WebSocket] Connection established successfullyundefinedundefined [2017-08-03 10:36:53] [Weihnachtsbeleuchtung] [homebridge-pilight] Requesting initial states...undefined [2017-08-03 10:36:53] [Fensterbankbeleuchtung] [homebridge-pilight] [WebSocket] Connection established successfullyundefinedundefined [2017-08-03 10:36:53] [Fensterbankbeleuchtung] [homebridge-pilight] Requesting initial states...undefined [2017-08-03 10:36:53] [Ambilight] [homebridge-pilight] [WebSocket] Connection established successfullyundefinedundefined [2017-08-03 10:36:53] [Ambilight] [homebridge-pilight] Requesting initial states...undefined [2017-08-03 10:36:53] [LG] [homebridge-pilight] [WebSocket] Connection established successfullyundefinedundefined [2017-08-03 10:36:53] [LG] [homebridge-pilight] Requesting initial states...undefined [2017-08-03 10:36:53] [Schlafzimmerbeleuchtung] [homebridge-pilight] [WebSocket] Connection established successfullyundefinedundefined [2017-08-03 10:36:53] [Schlafzimmerbeleuchtung] [homebridge-pilight] Requesting initial states...undefined [2017-08-03 10:36:53] [Drucker] [homebridge-pilight] [WebSocket] Connection established successfullyundefinedundefined [2017-08-03 10:36:53] [Drucker] [homebridge-pilight] Requesting initial states...undefined [2017-08-03 10:36:53] [Küchenbeleuchtung] [homebridge-pilight] [WebSocket] Connection established successfullyundefinedundefined [2017-08-03 10:36:53] [Küchenbeleuchtung] [homebridge-pilight] Requesting initial states...undefined [2017-08-03 10:36:53] [Bedroom alles aus] [homebridge-pilight] [WebSocket] Connection established successfullyundefinedundefined [2017-08-03 10:36:53] [Bedroom alles aus] [homebridge-pilight] Requesting initial states...undefined [2017-08-03 10:36:53] [Wohnzimmer alles aus] [homebridge-pilight] [WebSocket] Connection established successfullyundefinedundefined [2017-08-03 10:36:53] [Wohnzimmer alles aus] [homebridge-pilight] Requesting initial states...undefined [2017-08-03 10:36:53] [Desktop] [homebridge-pilight] [WebSocket] Connection established successfullyundefinedundefined [2017-08-03 10:36:53] [Desktop] [homebridge-pilight] Requesting initial states...undefined [2017-08-03 10:36:53] [NAS] [homebridge-pilight] [WebSocket] Connection established successfullyundefinedundefined [2017-08-03 10:36:53] [NAS] [homebridge-pilight] Requesting initial states...undefined [2017-08-03 10:37:04] [Samsung] [homebridge-pilight] No power state foundundefined [2017-08-03 10:37:04] [LG] [homebridge-pilight] No power state foundundefined [2017-08-03 10:37:04] [Weihnachtsbeleuchtung] [homebridge-pilight] No power state foundundefined [2017-08-03 10:37:04] [Bedroom alles aus] [homebridge-pilight] No power state foundundefined [2017-08-03 10:37:04] [Wohnzimmer alles aus] [homebridge-pilight] No power state foundundefined [2017-08-03 10:37:04] [Stehlampe] [homebridge-pilight] No power state foundundefined [2017-08-03 10:37:04] [Fensterbankbeleuchtung] [homebridge-pilight] No power state foundundefined [2017-08-03 10:37:04] [Schlafzimmerbeleuchtung] [homebridge-pilight] No power state foundundefined [2017-08-03 10:37:07] [Wohnzimmer alles aus] [homebridge-pilight] No power state foundundefined [2017-08-03 10:37:11] [Wohnzimmer alles aus] [homebridge-pilight] No power state foundundefined
It this issue reproducible after restart? Still not working?
yes of course ;-(
I restarted pilight and homebridge. And still the same errors. With the WebGui pilight is working fine.
Okay then: It looks like the connection via WS is not working correctly any more. Although it states "successfully", there are apparently no payload data (undefined).
Can you verify the WebSocket is still working on the appropriate socket?
Anything changes? NodeJS? npm packages updated?
I'm using the nightly pilight and I figured out that there was an update: Upgrade: pilight:armhf (7.0.198-g1c5c59b, 7.0.200-gaa24171)
How can I test the WebSocket?
Easiest way would be using a small NodeJS script with the WebSocket client. That package is using the websocket
library.
Alternatively a js web page should also connect to this websocket.
My setup has not being updated/touched for some weeks, and it's still working (and no nightly version).
Which versions are you using and working fine?
The stable from some months ago. I can give more details later.
That's my system. It's a Raspbian (Jessie) earlier this year.
pi@raspberrypi:~ $ uname -a
Linux raspberrypi 4.4.38+ #938 Thu Dec 15 15:17:54 GMT 2016 armv6l GNU/Linux
pi@raspberrypi:~ $ dpkg-query --show | grep pilight
pilight 7.0
pilight-webgui 7.0
pi@raspberrypi:~ $ cat /etc/apt/sources.list.d/pilight.list
deb http://apt.pilight.org/ stable main
Running apt-get update/upgrade does not offer any update for pilight.
I'm using a newer Kernel and therfor I needed to install the pilight nightly. pilight stable was not working with the new kernel...
That's the only difference ;-(
root@osmc-Wohnzimmer-Pi3 ~ # uname -a Linux osmc-Wohnzimmer-Pi3 4.9.29-9-osmc #1 SMP PREEMPT Sat Jul 29 01:44:42 UTC 2017 armv7l GNU/Linux root@osmc-Wohnzimmer-Pi3 ~ # dpkg-query --show | grep pilight pilight 7.0.202-g6e03cdd pilight-webgui 7.6
Could you please be so kind and give me some more details how I should test the websocket connection? I have no clue how to do this ;-(
Thanks so much for your help!
Hmmm, atm I haven't a second Pi left, I will not break my setup. Maybe a virtual maschine makes me able to check the new kernel.
Regarding websocket. Well, I had hoped you were able to this on your own ;) I will prepare a script.
That would be so nice, thank you ;-)
It seems that the json response for "request values" is different. I changed two lines in "handleMessage()" to make it work again.
from:
if (utils.isMessageOfTypeValues(json)) {
// bulk update ("request values")
item = json.find((item) => {
return item.devices.indexOf(this.config.deviceId) !== -1;
});
to:
if (utils.isMessageOfTypeValues(json.values)) {
// bulk update ("request values")
item = json.values.find((item) => {
return item.devices.indexOf(this.config.deviceId) !== -1;
});
Cool! Can you please let me know in which file I need to do the changes? Thanks!
i‘ve changed this in index.js
@marcelkordek Thank you for the hint.
Here is a minimal sample connecting to Pilight via WebSocket: https://gist.github.com/knalli/88d52b93b696aaee221163538c276e32
Maybe you have to change the target address in index.js
from raspberrypi:5001
to something else matching you local Pi. Press CTRL+C for exit.
In my case the output is
$ npm -s start
> message { type: 'utf8',
utf8Data: '[{"type":1,"devices":["A"],"values":{"timestamp":1502498730,"state":"on"}},{"type":1,"devices":["B"],"values":{"timestamp":1502498731,"state":"off"}},{"type":1,"devices":["C"],"values":{"timestamp":0,"state":"off"}},{"type":1,"devices":["D"],"values":{"timestamp":1487031007,"state":"off"}},{"type":1,"devices":["E"],"values":{"timestamp":1496698486,"state":"off"}}]' }
> message { type: 'utf8',
utf8Data: '{"values":{"cpu":0.2119122169131324,"ram":0.6947065696054642},"origin":"core","type":-1,"uuid":"0000-00-00-00-000000"}' }
^C%
Edit: Like this docs currently state: https://www.pilight.org/development/api/
[{
"type": 4,
"devices": [ "televisie" ],
"values": {
"timestamp": 0,
"state": "off"
}
},
{
"type": 1,
"devices": [ "bookShelfLight" ],
"values": {
"timestamp": 0,
"state": "off"
}
}]
Thank you so much. It's working again ;-)
@webdandy Can you send me your output? I would like to verify this.
I don't know exactly how to start the script. But I modified the IP and port from my raspberry and this is the output
`module.js:341 throw err; ^
Error: Cannot find module 'websocket'
at Function.Module._resolveFilename (module.js:339:15)
at Function.Module._load (module.js:290:25)
at Module.require (module.js:367:17)
at require (internal/module.js:20:19)
at Object.
Oh, I had thought you are familiar with npm.
# this clones the gist into a local dir; alternatively save both files in a dir
git clone https://gist.github.com/88d52b93b696aaee221163538c276e32.git pilight-ws-debug
cd pilight-ws-debug
# install dependencies
npm install
# run
npm start
Great, this is the output:
`~/test/pilight-ws-debug # npm start
pilight-ws-debug@0.0.0 start /root/test/pilight-ws-debug node index.js
message { type: 'utf8', utf8Data: '{"message":"values","values":[{"type":1,"devices":["Steckdose1"],"values":{"timestamp":1502612654,"state":"on"}},{"type":1,"devices":["Steckdose2"],"values":{"timestamp":1502636256,"state":"off"}},{"type":1,"devices":["Steckdose3"],"values":{"timestamp":1502613354,"state":"off"}},{"type":1,"devices":["Steckdose4"],"values":{"timestamp":0,"state":"off"}},{"type":1,"devices":["Steckdose5"],"values":{"timestamp":0,"state":"on"}},{"type":1,"devices":["Steckdose6"],"values":{"timestamp":0,"state":"on"}},{"type":1,"devices":["Steckdose7"],"values":{"timestamp":0,"state":"on"}},{"type":1,"devices":["Steckdose8"],"values":{"timestamp":0,"state":"on"}},{"type":1,"devices":["Steckdose9"],"values":{"timestamp":1502626912,"state":"on"}},{"type":1,"devices":["Steckdose10"],"values":{"timestamp":0,"state":"off"}},{"type":1,"devices":["Steckdose11"],"values":{"timestamp":0,"state":"off"}},{"type":1,"devices":["Steckdose12"],"values":{"timestamp":0,"state":"off"}},{"type":1,"devices":["Steckdose13"],"values":{"timestamp":0,"state":"off"}},{"type":1,"devices":["Steckdose14"],"values":{"timestamp":0,"state":"off"}},{"type":1,"devices":["Steckdose15"],"values":{"timestamp":0,"state":"on"}},{"type":1,"devices":["Steckdose16"],"values":{"timestamp":0,"state":"off"}},{"type":7,"devices":["Flur"],"values":{"timestamp":1502612193,"state":"stopped","arguments":"/root/Skripte/pilight/flurlicht-on-off.sh","pid":0,"program":"/bin/sh","stop-command":"/bin/sh /root/Skripte/pilight/flurlicht-on-off.sh","start-command":"/bin/sh /root/Skripte/pilight/flurlicht-on-off.sh"}},{"type":7,"devices":["MinkeMau-NAS-PowerONp"],"values":{"timestamp":1502612193,"state":"stopped","arguments":"/root/Skripte/pilight/start-nas.sh","pid":0,"program":"/bin/sh","stop-command":"/bin/sh /root/Skripte/pilight/start-nas.sh","start-command":"/bin/sh /root/Skripte/pilight/start-nas.sh"}},{"type":7,"devices":["MinkeMau-NAS-PowerOFFp"],"values":{"timestamp":1502612193,"state":"stopped","arguments":"/root/Skripte/pilight/stop-nas.sh","pid":0,"program":"/bin/sh","stop-command":"/bin/sh /root/Skripte/pilight/stop-nas.sh","start-command":"/bin/sh /root/Skripte/pilight/stop-nas.sh"}},{"type":7,"devices":["Fabian-01p"],"values":{"timestamp":1502612193,"state":"stopped","arguments":"/root/Skripte/pilight/start-fabian.sh","pid":0,"program":"/bin/sh","stop-command":"/bin/sh /root/Skripte/pilight/start-fabian.sh","start-command":"/bin/sh /root/Skripte/pilight/start-fabian.sh"}},{"type":7,"devices":["Manfred-01p"],"values":{"timestamp":1502612193,"state":"stopped","arguments":"/root/Skripte/pilight/start-manfred.sh","pid":0,"program":"/bin/sh","stop-command":"/bin/sh /root/Skripte/pilight/start-manfred.sh","start-command":"/bin/sh /root/Skripte/pilight/start-manfred.sh"}},{"type":7,"devices":["Jutta-01p"],"values":{"timestamp":1502612193,"state":"stopped","arguments":"/root/Skripte/pilight/start-jutta.sh","pid":0,"program":"/bin/sh","stop-command":"/bin/sh /root/Skripte/pilight/start-jutta.sh","start-command":"/bin/sh /root/Skripte/pilight/start-jutta.sh"}},{"type":7,"devices":["Eltern-NAS-PowerONp"],"values":{"timestamp":1502612193,"state":"stopped","arguments":"/root/Skripte/pilight/start-eltern-nas.sh","pid":0,"program":"/bin/sh","stop-command":"/bin/sh /root/Skripte/pilight/start-eltern-nas.sh","start-command":"/bin/sh /root/Skripte/pilight/start-eltern-nas.sh"}},{"type":7,"devices":["Eltern-NAS-PowerOFFp"],"values":{"timestamp":1502612193,"state":"stopped","arguments":"/root/Skripte/pilight/stop-eltern-nas.sh","pid":0,"program":"/bin/sh","stop-command":"/bin/sh /root/Skripte/pilight/stop-eltern-nas.sh","start-command":"/bin/sh /root/Skripte/pilight/stop-eltern-nas.sh"}},{"type":7,"devices":["Katrin-NAS-PowerONp"],"values":{"timestamp":1502612193,"state":"stopped","arguments":"/root/Skripte/pilight/start-katrin-nas.sh","pid":0,"program":"/bin/sh","stop-command":"/bin/sh /root/Skripte/pilight/start-katrin-nas.sh","start-command":"/bin/sh /root/Skripte/pilight/start-katrin-nas.sh"}},{"type":7,"devices":["Katrin-NAS-PowerOFFp"],"values":{"timestamp":1502612193,"state":"stopped","arguments":"/root/Skripte/pilight/stop-katrin-nas.sh","pid":0,"program":"/bin/sh","stop-command":"/bin/sh /root/Skripte/pilight/stop-katrin-nas.sh","start-command":"/bin/sh /root/Skripte/pilight/stop-katrin-nas.sh"}},{"type":7,"devices":["SchlafzimmerALLOFF"],"values":{"timestamp":1502612193,"state":"stopped","arguments":"/root/Skripte/pilight/schlafzimmer_all-off.sh","pid":0,"program":"/bin/sh","stop-command":"/bin/sh /root/Skripte/pilight/schlafzimmer_all-off.sh","start-command":"/bin/sh /root/Skripte/pilight/schlafzimmer_all-off.sh"}},{"type":7,"devices":["WohnzimmerALLOFF"],"values":{"timestamp":1502612193,"state":"stopped","arguments":"/root/Skripte/pilight/wohnzimmer_all-off.sh","pid":0,"program":"/bin/sh","stop-command":"/bin/sh /root/Skripte/pilight/wohnzimmer_all-off.sh","start-command":"/bin/sh /root/Skripte/pilight/wohnzimmer_all-off.sh"}},{"type":7,"devices":["Schlafzimmer-Licht-ON"],"values":{"timestamp":1502612193,"state":"stopped","arguments":"/root/Skripte/pilight/schlafzimmer_licht-on.sh","pid":0,"program":"/bin/sh","stop-command":"/bin/sh /root/Skripte/pilight/schlafzimmer_licht-on.sh","start-command":"/bin/sh /root/Skripte/pilight/schlafzimmer_licht-on.sh"}},{"type":7,"devices":["Schlafzimmer-Licht-OFF"],"values":{"timestamp":1502612193,"state":"stopped","arguments":"/root/Skripte/pilight/schlafzimmer_licht-off.sh","pid":0,"program":"/bin/sh","stop-command":"/bin/sh /root/Skripte/pilight/schlafzimmer_licht-off.sh","start-command":"/bin/sh /root/Skripte/pilight/schlafzimmer_licht-off.sh"}},{"type":7,"devices":["Schlafzimmer-TV-ON"],"values":{"timestamp":1502612193,"state":"stopped","arguments":"/root/Skripte/pilight/schlafzimmer_tv-on.sh","pid":0,"program":"/bin/sh","stop-command":"/bin/sh /root/Skripte/pilight/schlafzimmer_tv-on.sh","start-command":"/bin/sh /root/Skripte/pilight/schlafzimmer_tv-on.sh"}},{"type":7,"devices":["Schlafzimmer-TV-OFF"],"values":{"timestamp":1502612193,"state":"stopped","arguments":"/root/Skripte/pilight/schlafzimmer_tv-off.sh","pid":0,"program":"/bin/sh","stop-command":"/bin/sh /root/Skripte/pilight/schlafzimmer_tv-off.sh","start-command":"/bin/sh /root/Skripte/pilight/schlafzimmer_tv-off.sh"}},{"type":7,"devices":["Stehlampe-ON"],"values":{"timestamp":1502636254,"state":"stopped","arguments":"/root/Skripte/pilight/stehlampe-on.sh","pid":0,"program":"/bin/sh","stop-command":"/bin/sh /root/Skripte/pilight/stehlampe-on.sh","start-command":"/bin/sh /root/Skripte/pilight/stehlampe-on.sh"}},{"type":7,"devices":["Stehlampe-OFF"],"values":{"timestamp":1502636257,"state":"stopped","arguments":"/root/Skripte/pilight/stehlampe-off.sh","pid":0,"program":"/bin/sh","stop-command":"/bin/sh /root/Skripte/pilight/stehlampe-off.sh","start-command":"/bin/sh /root/Skripte/pilight/stehlampe-off.sh"}},{"type":7,"devices":["Ambilight-ON"],"values":{"timestamp":1502612193,"state":"stopped","arguments":"/root/Skripte/pilight/ambilight-on.sh","pid":0,"program":"/bin/sh","stop-command":"/bin/sh /root/Skripte/pilight/ambilight-on.sh","start-command":"/bin/sh /root/Skripte/pilight/ambilight-on.sh"}},{"type":7,"devices":["Ambilight-OFF"],"values":{"timestamp":1502612193,"state":"stopped","arguments":"/root/Skripte/pilight/ambilight-off.sh","pid":0,"program":"/bin/sh","stop-command":"/bin/sh /root/Skripte/pilight/ambilight-off.sh","start-command":"/bin/sh /root/Skripte/pilight/ambilight-off.sh"}},{"type":7,"devices":["Weihnachtsbeleuchtung-ON"],"values":{"timestamp":1502613352,"state":"stopped","arguments":"/root/Skripte/pilight/weihnachtsbeleuchtung-on.sh","pid":0,"program":"/bin/sh","stop-command":"/bin/sh /root/Skripte/pilight/weihnachtsbeleuchtung-on.sh","start-command":"/bin/sh /root/Skripte/pilight/weihnachtsbeleuchtung-on.sh"}},{"type":7,"devices":["Weihnachtsbeleuchtung-OFF"],"values":{"timestamp":1502613355,"state":"stopped","arguments":"/root/Skripte/pilight/weihnachtsbeleuchtung-off.sh","pid":0,"program":"/bin/sh","stop-command":"/bin/sh /root/Skripte/pilight/weihnachtsbeleuchtung-off.sh","start-command":"/bin/sh /root/Skripte/pilight/weihnachtsbeleuchtung-off.sh"}},{"type":7,"devices":["LED-Stripes-Wohnzimmer-ON"],"values":{"timestamp":1502612193,"state":"stopped","arguments":"/root/Skripte/pilight/LED-stripes-wohnzimmer-on.sh","pid":0,"program":"/bin/sh","stop-command":"/bin/sh /root/Skripte/pilight/LED-stripes-wohnzimmer-on.sh","start-command":"/bin/sh /root/Skripte/pilight/LED-stripes-wohnzimmer-on.sh"}},{"type":7,"devices":["LED-Stripes-Wohnzimmer-OFF"],"values":{"timestamp":1502612193,"state":"stopped","arguments":"/root/Skripte/pilight/LED-stripes-wohnzimmer-off.sh","pid":0,"program":"/bin/sh","stop-command":"/bin/sh /root/Skripte/pilight/LED-stripes-wohnzimmer-off.sh","start-command":"/bin/sh /root/Skripte/pilight/LED-stripes-wohnzimmer-off.sh"}},{"type":7,"devices":["Wohnzimmer-TV-ON"],"values":{"timestamp":1502612655,"state":"stopped","arguments":"/root/Skripte/pilight/wohnzimmer_tv-on.sh","pid":0,"program":"/bin/sh","stop-command":"/bin/sh /root/Skripte/pilight/wohnzimmer_tv-on.sh","start-command":"/bin/sh /root/Skripte/pilight/wohnzimmer_tv-on.sh"}},{"type":7,"devices":["Wohnzimmer-TV-OFF"],"values":{"timestamp":1502612648,"state":"stopped","arguments":"/root/Skripte/pilight/wohnzimmer_tv-off.sh","pid":0,"program":"/bin/sh","stop-command":"/bin/sh /root/Skripte/pilight/wohnzimmer_tv-off.sh","start-command":"/bin/sh /root/Skripte/pilight/wohnzimmer_tv-off.sh"}},{"type":7,"devices":["LED-Stripes-Kueche-ON"],"values":{"timestamp":1502612193,"state":"stopped","arguments":"/root/Skripte/pilight/LED-stripes-kueche-on.sh","pid":0,"program":"/bin/sh","stop-command":"/bin/sh /root/Skripte/pilight/LED-stripes-kueche-on.sh","start-command":"/bin/sh /root/Skripte/pilight/LED-stripes-kueche-on.sh"}},{"type":7,"devices":["LED-Stripes-Kueche-OFF"],"values":{"timestamp":1502612193,"state":"stopped","arguments":"/root/Skripte/pilight/LED-stripes-kueche-off.sh","pid":0,"program":"/bin/sh","stop-command":"/bin/sh /root/Skripte/pilight/LED-stripes-kueche-off.sh","start-command":"/bin/sh /root/Skripte/pilight/LED-stripes-kueche-off.sh"}},{"type":7,"devices":["Drucker-ON"],"values":{"timestamp":1502626913,"state":"stopped","arguments":"/root/Skripte/pilight/drucker-on.sh","pid":0,"program":"/bin/sh","stop-command":"/bin/sh /root/Skripte/pilight/drucker-on.sh","start-command":"/bin/sh /root/Skripte/pilight/drucker-on.sh"}},{"type":7,"devices":["Drucker-OFF"],"values":{"timestamp":1502626907,"state":"stopped","arguments":"/root/Skripte/pilight/drucker-off.sh","pid":0,"program":"/bin/sh","stop-command":"/bin/sh /root/Skripte/pilight/drucker-off.sh","start-command":"/bin/sh /root/Skripte/pilight/drucker-off.sh"}},{"type":7,"devices":["PC-Fabian-ON"],"values":{"timestamp":1502612194,"state":"stopped","arguments":"/root/Skripte/pilight/pc-fabian-on.sh","pid":0,"program":"/bin/sh","stop-command":"/bin/sh /root/Skripte/pilight/pc-fabian-on.sh","start-command":"/bin/sh /root/Skripte/pilight/pc-fabian-on.sh"}},{"type":7,"devices":["PC-Fabian-OFF"],"values":{"timestamp":1502612194,"state":"stopped","arguments":"/root/Skripte/pilight/pc-fabian-off.sh","pid":0,"program":"/bin/sh","stop-command":"/bin/sh /root/Skripte/pilight/pc-fabian-off.sh","start-command":"/bin/sh /root/Skripte/pilight/pc-fabian-off.sh"}},{"type":7,"devices":["CinemaMode-enable-ON"],"values":{"timestamp":1502612194,"state":"stopped","arguments":"/root/Skripte/pilight/cinemamode-enable-on.sh","pid":0,"program":"/bin/sh","stop-command":"/bin/sh /root/Skripte/pilight/cinemamode-enable-on.sh","start-command":"/bin/sh /root/Skripte/pilight/cinemamode-enable-on.sh"}},{"type":7,"devices":["CinemaMode-enable-OFF"],"values":{"timestamp":1502612194,"state":"stopped","arguments":"/root/Skripte/pilight/cinemamode-enable-off.sh","pid":0,"program":"/bin/sh","stop-command":"/bin/sh /root/Skripte/pilight/cinemamode-enable-off.sh","start-command":"/bin/sh /root/Skripte/pilight/cinemamode-enable-off.sh"}},{"type":7,"devices":["NAS-available-p"],"values":{"timestamp":1502612194,"state":"stopped","arguments":"/root/Skripte/pilight/nas-available.sh","pid":0,"program":"/bin/sh","stop-command":"/bin/sh /root/Skripte/pilight/nas-available.sh","start-command":"/bin/sh /root/Skripte/pilight/nas-available.sh"}},{"type":7,"devices":["KODI-restart-p"],"values":{"timestamp":1502621400,"state":"stopped","arguments":"/root/Skripte/pilight/restart-kodi.sh","pid":0,"program":"/bin/sh","stop-command":"/bin/sh /root/Skripte/pilight/restart-kodi.sh","start-command":"/bin/sh /root/Skripte/pilight/restart-kodi.sh"}},{"type":3,"devices":["Wetter-Schlafzimmer"],"values":{"timestamp":1502645066,"battery":1,"humidity":18.0,"temperature":23.5}},{"type":3,"devices":["Wetter-Wohnzimmer"],"values":{"timestamp":1502645084,"battery":1,"humidity":24.0,"temperature":25.4}},{"type":3,"devices":["Wetter-Terrasse"],"values":{"timestamp":1502642197,"battery":1,"humidity":24.0,"temperature":-50.8}},{"type":9,"devices":["xbmcControls"],"values":{"timestamp":1502643479,"media":"none","action":"home"}},{"type":8,"devices":["CurrentDateTime"],"values":{"timestamp":1502645085,"dst":1,"second":45,"minute":24,"hour":19,"weekday":1,"day":13,"month":8,"year":2017}},{"type":3,"devices":["sunriseset-mod"],"values":{"timestamp":1502612193,"sun":"rise","sunset":20.38,"sunrise":5.45}},{"type":1,"devices":["CinemaMode"],"values":{"timestamp":0,"state":"off"}},{"type":1,"devices":["Wohnzimmer"],"values":{"timestamp":0,"state":"off"}},{"type":1,"devices":["Schlafzimmer"],"values":{"timestamp":0,"state":"off"}},{"type":1,"devices":["Schlafzimmerbeleuchtung"],"values":{"timestamp":0,"state":"off"}},{"type":1,"devices":["Schlafzimmer-TV"],"values":{"timestamp":0,"state":"off"}},{"type":1,"devices":["Flurbeleuchtung"],"values":{"timestamp":0,"state":"off"}},{"type":1,"devices":["Fabian-01-wol"],"values":{"timestamp":0,"state":"off"}},{"type":1,"devices":["MinkeMau-NAS-PowerON"],"values":{"timestamp":0,"state":"off"}},{"type":1,"devices":["MinkeMau-NAS-PowerOFF"],"values":{"timestamp":0,"state":"off"}},{"type":1,"devices":["Eltern-NAS-PowerON"],"values":{"timestamp":0,"state":"off"}},{"type":1,"devices":["Eltern-NAS-PowerOFF"],"values":{"timestamp":0,"state":"off"}},{"type":1,"devices":["Katrin-NAS-PowerON"],"values":{"timestamp":0,"state":"off"}},{"type":1,"devices":["Katrin-NAS-PowerOFF"],"values":{"timestamp":0,"state":"off"}},{"type":1,"devices":["Jutta-01-wol"],"values":{"timestamp":0,"state":"off"}},{"type":1,"devices":["Manfred-01-wol"],"values":{"timestamp":0,"state":"off"}},{"type":1,"devices":["CinemaMode-enable"],"values":{"timestamp":0,"state":"off"}},{"type":1,"devices":["Stehlampe"],"values":{"timestamp":1502636256,"state":"off"}},{"type":1,"devices":["Ambilight"],"values":{"timestamp":0,"state":"on"}},{"type":1,"devices":["Weihnachtsbeleuchtung"],"values":{"timestamp":1502613354,"state":"off"}},{"type":1,"devices":["LED-Stripes-Wohnzimmer"],"values":{"timestamp":0,"state":"off"}},{"type":1,"devices":["Wohnzimmer-TV"],"values":{"timestamp":1502612654,"state":"on"}},{"type":1,"devices":["LED-Stripes-Kueche"],"values":{"timestamp":0,"state":"off"}},{"type":1,"devices":["Drucker"],"values":{"timestamp":1502626911,"state":"on"}},{"type":1,"devices":["PC-Fabian"],"values":{"timestamp":0,"state":"off"}},{"type":1,"devices":["CinemaMode-enable-p"],"values":{"timestamp":0,"state":"off"}},{"type":1,"devices":["NAS-available"],"values":{"timestamp":0,"state":"off"}},{"type":1,"devices":["NAS-available-2"],"values":{"timestamp":0,"state":"off"}},{"type":1,"devices":["KODI-restart"],"values":{"timestamp":1502621399,"state":"off"}}]}' } message { type: 'utf8', utf8Data: '{"origin":"update","type":8,"devices":["CurrentDateTime"],"values":{"timestamp":1502645086,"year":2017,"month":8,"day":13,"hour":19,"minute":24,"second":46,"weekday":1,"dst":1}}' } message { type: 'utf8', utf8Data: '{"message":{"longitude":13.406290,"latitude":52.524268,"year":2017,"month":8,"day":13,"weekday":1,"hour":19,"minute":24,"second":46,"dst":1},"origin":"receiver","protocol":"datetime","uuid":"0000-b8-27-eb-8945ae"}' } message { type: 'utf8', utf8Data: '{"origin":"update","type":8,"devices":["CurrentDateTime"],"values":{"timestamp":1502645087,"year":2017,"month":8,"day":13,"hour":19,"minute":24,"second":47,"weekday":1,"dst":1}}' } message { type: 'utf8', utf8Data: '{"message":{"longitude":13.406290,"latitude":52.524268,"year":2017,"month":8,"day":13,"weekday":1,"hour":19,"minute":24,"second":47,"dst":1},"origin":"receiver","protocol":"datetime","uuid":"0000-b8-27-eb-8945ae"}' } message { type: 'utf8', utf8Data: '{"origin":"update","type":8,"devices":["CurrentDateTime"],"values":{"timestamp":1502645088,"year":2017,"month":8,"day":13,"hour":19,"minute":24,"second":48,"weekday":1,"dst":1}}' } message { type: 'utf8', utf8Data: '{"message":{"longitude":13.406290,"latitude":52.524268,"year":2017,"month":8,"day":13,"weekday":1,"hour":19,"minute":24,"second":48,"dst":1},"origin":"receiver","protocol":"datetime","uuid":"0000-b8-27-eb-8945ae"}' } message { type: 'utf8', utf8Data: '{"values":{"cpu":22.2160276643825227},"origin":"core","type":-1,"uuid":"0000-b8-27-eb-8945ae"}' } message { type: 'utf8', utf8Data: '{"origin":"update","type":8,"devices":["CurrentDateTime"],"values":{"timestamp":1502645089,"year":2017,"month":8,"day":13,"hour":19,"minute":24,"second":49,"weekday":1,"dst":1}}' } message { type: 'utf8', utf8Data: '{"message":{"longitude":13.406290,"latitude":52.524268,"year":2017,"month":8,"day":13,"weekday":1,"hour":19,"minute":24,"second":49,"dst":1},"origin":"receiver","protocol":"datetime","uuid":"0000-b8-27-eb-8945ae"}' } message { type: 'utf8', utf8Data: '{"origin":"update","type":8,"devices":["CurrentDateTime"],"values":{"timestamp":1502645090,"year":2017,"month":8,"day":13,"hour":19,"minute":24,"second":50,"weekday":1,"dst":1}}' } message { type: 'utf8', utf8Data: '{"message":{"longitude":13.406290,"latitude":52.524268,"year":2017,"month":8,"day":13,"weekday":1,"hour":19,"minute":24,"second":50,"dst":1},"origin":"receiver","protocol":"datetime","uuid":"0000-b8-27-eb-8945ae"}' } message { type: 'utf8', utf8Data: '{"message":{"id":"E1","unit":41,"state":"off"},"origin":"receiver","protocol":"rev2_switch","uuid":"0000-b8-27-eb-8945ae","repeats":1}' } message { type: 'utf8', utf8Data: '{"message":{"id":"E1","unit":41,"state":"off"},"origin":"receiver","protocol":"clarus_switch","uuid":"0000-b8-27-eb-8945ae","repeats":1}' } message { type: 'utf8', utf8Data: '{"origin":"update","type":8,"devices":["CurrentDateTime"],"values":{"timestamp":1502645091,"year":2017,"month":8,"day":13,"hour":19,"minute":24,"second":51,"weekday":1,"dst":1}}' } message { type: 'utf8', utf8Data: '{"message":{"longitude":13.406290,"latitude":52.524268,"year":2017,"month":8,"day":13,"weekday":1,"hour":19,"minute":24,"second":51,"dst":1},"origin":"receiver","protocol":"datetime","uuid":"0000-b8-27-eb-8945ae"}' } message { type: 'utf8', utf8Data: '{"values":{"cpu":21.2985314022289565},"origin":"core","type":-1,"uuid":"0000-b8-27-eb-8945ae"}' } message { type: 'utf8', utf8Data: '{"origin":"update","type":8,"devices":["CurrentDateTime"],"values":{"timestamp":1502645092,"year":2017,"month":8,"day":13,"hour":19,"minute":24,"second":52,"weekday":1,"dst":1}}' } message { type: 'utf8', utf8Data: '{"message":{"longitude":13.406290,"latitude":52.524268,"year":2017,"month":8,"day":13,"weekday":1,"hour":19,"minute":24,"second":52,"dst":1},"origin":"receiver","protocol":"datetime","uuid":"0000-b8-27-eb-8945ae"}' } message { type: 'utf8', utf8Data: '{"message":{"systemcode":2,"unitcode":0,"state":"off"},"origin":"receiver","protocol":"pollin","uuid":"0000-b8-27-eb-8945ae","repeats":1}' } message { type: 'utf8', utf8Data: '{"message":{"unitcode":524294,"state":"opened"},"origin":"receiver","protocol":"ev1527","uuid":"0000-b8-27-eb-8945ae","repeats":1}' } message { type: 'utf8', utf8Data: '{"message":{"systemcode":34,"unitcode":0,"state":"off"},"origin":"receiver","protocol":"elro_800_switch","uuid":"0000-b8-27-eb-8945ae","repeats":1}' } message { type: 'utf8', utf8Data: '{"message":{"systemcode":2,"unitcode":0,"state":"closed"},"origin":"receiver","protocol":"elro_800_contact","uuid":"0000-b8-27-eb-8945ae","repeats":1}' } message { type: 'utf8', utf8Data: '{"origin":"update","type":8,"devices":["CurrentDateTime"],"values":{"timestamp":1502645093,"year":2017,"month":8,"day":13,"hour":19,"minute":24,"second":53,"weekday":1,"dst":1}}' } message { type: 'utf8', utf8Data: '{"message":{"longitude":13.406290,"latitude":52.524268,"year":2017,"month":8,"day":13,"weekday":1,"hour":19,"minute":24,"second":53,"dst":1},"origin":"receiver","protocol":"datetime","uuid":"0000-b8-27-eb-8945ae"}' } message { type: 'utf8', utf8Data: '{"message":{"systemcode":29,"programcode":10,"state":"off"},"origin":"receiver","protocol":"impuls","uuid":"0000-b8-27-eb-8945ae","repeats":1}' } message { type: 'utf8', utf8Data: '{"origin":"update","type":8,"devices":["CurrentDateTime"],"values":{"timestamp":1502645094,"year":2017,"month":8,"day":13,"hour":19,"minute":24,"second":54,"weekday":1,"dst":1}}' } message { type: 'utf8', utf8Data: '{"message":{"longitude":13.406290,"latitude":52.524268,"year":2017,"month":8,"day":13,"weekday":1,"hour":19,"minute":24,"second":54,"dst":1},"origin":"receiver","protocol":"datetime","uuid":"0000-b8-27-eb-8945ae"}' } message { type: 'utf8', utf8Data: '{"values":{"cpu":22.0489657537932260},"origin":"core","type":-1,"uuid":"0000-b8-27-eb-8945ae"}' } message { type: 'utf8', utf8Data: '{"origin":"update","type":8,"devices":["CurrentDateTime"],"values":{"timestamp":1502645095,"year":2017,"month":8,"day":13,"hour":19,"minute":24,"second":55,"weekday":1,"dst":1}}' } message { type: 'utf8', utf8Data: '{"message":{"longitude":13.406290,"latitude":52.524268,"year":2017,"month":8,"day":13,"weekday":1,"hour":19,"minute":24,"second":55,"dst":1},"origin":"receiver","protocol":"datetime","uuid":"0000-b8-27-eb-8945ae"}' } message { type: 'utf8', utf8Data: '{"origin":"update","type":8,"devices":["CurrentDateTime"],"values":{"timestamp":1502645096,"year":2017,"month":8,"day":13,"hour":19,"minute":24,"second":56,"weekday":1,"dst":1}}' } `
And a lot of more....
Alright. I have patched this with f372739
@webdandy Please try homebridge-pilight@1.4.1-beta.0
, that should work. If anything is fine, I will publish a regular patch release asap.
How can I install the 1.4.1-beta.0? ;-)
How do you have installed the regular homebridge-pilight package?
npm install -g homebridge-pilight
=> npm install -g homebridge-pilight@1.4.1-beta.0
In case of any issues, back to the latest stable: npm install -g homebridge-pilight
again (without the specific version)
That's easy ;-)
Installed the beat version,restarted hombridge and it's still working!
Nice ;-)
@webdandy Thank you for verifying.
1.4.1 is available now. Please switch to the regular one again, in your case npm install -g homebridge-pilight
I installed iOS 13.2 today and have restarted the Homebridge and got the same error now.
Hello, since yesterday I receive the following error in the logfile and I can not switch the defined switches with homebridge:
[Samsung] [homebridge-pilight] No power state foundundefined
Version: pilight-daemon version v7.0-200-gaa24171 homebridge@0.4.22 homebridge-pilight@1.4.0
Do you know what is going wrong? Thanks for any help or any information what the root cause could be.
Best regards, Fabian