andreas-fey / fhem-pilight

pilight module for FHEM
http://blog.andreas-fey.com/fhem-module-pilight/
GNU General Public License v3.0
5 stars 8 forks source link

Module not working with the latest pilight dev version #9

Closed irosaurus closed 9 years ago

irosaurus commented 9 years ago

Hey Andreas,

I have some elro_hc switches working with the latest dev of pilight (running on a Banana Pi with Bananian 14.11) and now tried to integrate it into fhem. There was a big change at pilight, now all json config files are in one single file "config.json".

I added the following to the fhem.cfg: define LedBand pilight elro_hc attr LedBand alias LED-Band attr LedBand systemcode 10 attr LedBand unitcode 15

It looks like the following in the fhem gui:

pilight

If I toogle it, I get the following output if I run pilight in debug mode:

[Nov 26 14:33:00:755387] pilight-daemon: INFO: new client, ip: 127.0.0.1, port: 44384 [Nov 26 14:33:00:755603] pilight-daemon: DEBUG: client fd: 15 [Nov 26 14:33:00:755730] pilight-daemon: DEBUG: client id: 3 [Nov 26 14:33:00:755898] pilight-daemon: DEBUG: socket recv: { "message": "client sender" } [Nov 26 14:33:00:756042] pilight-daemon: DEBUG: client disconnected, ip 127.0.0.1, port 44384

Looks like it is passed correctly to pilight, but pilight does not switch my elro.

May it's related somehow to this thread: http://forum.pilight.org/Thread-Big-configuration-API-rewrite?pid=8735#pid8735

Thanks for your efforts!

Cheers iro

andreas-fey commented 9 years ago

Hi,

latest version of pilight is working well; if not, your would see an error message in the logs. Can you switch your device using the pilight-send command? Maybe you may have a look at this: https://github.com/andreas-fey/fhem-pilight/issues/