knalli / homebridge-pilight

Accessory plugin for Homebridge allowing to manage and control pilight devices
MIT License
16 stars 3 forks source link

Compatibility with pilight 8 #36

Closed aebgit closed 6 years ago

aebgit commented 6 years ago

The current version of homekit-pilight seems to be incompatible with pilight v8 (which is now the default when loading it via apt-get from deb http://apt.pilight.org/ stable main).

I receive lots of errors like these:

[2018-4-6 11:54:48] Homebridge is running on port 51826.
[2018-4-6 11:54:49] [Config] Using Form Authentication
[2018-4-6 11:54:49] [Config] Console is listening on port 8080.
[2018-4-6 11:54:49] [Wohnzimmer_Ecke] [homebridge-pilight] [WebSocket] Connection established successfullyundefinedundefined
[2018-4-6 11:54:49] [Wohnzimmer_Ecke] [homebridge-pilight] Requesting initial states...undefined
[2018-4-6 11:54:49] [Wohnzimmer_Ecke] [homebridge-pilight] [WebSocket] Something went wrong, cannot parse message. Error: Cannot read property 'values' of undefinedundefinedundefined
[2018-4-6 11:54:49] [Wohnzimmer_Ecke] [homebridge-pilight] Something went wrong, cannot parse message. Error: TypeError: Cannot read property 'values' of undefinedundefined
knalli commented 6 years ago

Are you sure you are using 1.4.1+? I had added support for the nightly (hopefully), but maybe it was broken from the beginning. bef3b92d2f6f66d3303992c3beeb8761732ce0ff

aebgit commented 6 years ago

I tested on 1.5.0, but also went back to 1.4.1 - without luck

aebgit commented 6 years ago

Sorry, I made a huge mistake on pilight-side. apt-downgrading pilight wiped my pilight-config, which explains the error mentioned in my 1st post. Nevertheless, thee are still errors when using homebridge-pilight@1.5.0 with pilight=8.0.10:

[2018-4-6 12:31:58] Homebridge is running on port 51826.
[2018-4-6 12:31:58] [Wohnzimmer_Ecke] [homebridge-pilight] [WebSocket] Connection established successfullyundefinedundefined
[2018-4-6 12:31:58] [Wohnzimmer_Ecke] [homebridge-pilight] Requesting initial states...undefined
[2018-4-6 12:32:00] [Config] Using Form Authentication
[2018-4-6 12:32:00] [Config] Console is listening on port 8080.
[2018-4-6 12:32:00] [Wohnzimmer_Strahler] [homebridge-pilight] [WebSocket] Re-using already established connection to "ws://192.168.178.7:5001/"undefinedundefined
[2018-4-6 12:32:00] [Wohnzimmer_Strahler] [homebridge-pilight] Requesting initial states...undefined
[2018-4-6 12:32:00] [Wohnzimmer_Fenster] [homebridge-pilight] [WebSocket] Re-using already established connection to "ws://192.168.178.7:5001/"undefinedundefined
[2018-4-6 12:32:00] [Wohnzimmer_Fenster] [homebridge-pilight] Requesting initial states...undefined
[2018-4-6 12:32:00] [Wohnzimmer_Leselampe] [homebridge-pilight] [WebSocket] Re-using already established connection to "ws://192.168.178.7:5001/"undefinedundefined
knalli commented 6 years ago

Which one? The undefined aren't errors.

aebgit commented 6 years ago

Ok, understood

knalli commented 6 years ago

I think it works?