New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
config.json "monitoring": false issue #82
Comments
Should this be
The
Don't forget to put your device into pairing mode for the first transmission to teach the code. Tip: modify the |
Ah - I think you may have found a bug, in that discovery is still called if the discovery_prefix is there. Remove the 'discovery_prefix' line in your config.json file as a workaround; i'll fix this now. |
Thank you, for your quick response!! I have removed the 'discovery_prefix' line in the config.json, but unfortunately the same issue occurs { mosquitto_pub -h 192.xxx.xxx.xxx -p 1883 -q 2 -t energenie/ook/504718/1/command -m "on" unfortunately the mosquitto_pub command only works when the config.json is set to "monitoring": true, |
It works with MQTT explorer. Can you post a log file for me? |
I'm on a raspberry pi 4 model B with 32bit Rasberry pi OS terminal one mosquitto_sub -h 192.168.241.121 -p 1883 -t 'energenie/' terminal two terminal three I enter the these two commands mosquitto_pub -h 192.168.241.121 -p 1883 -q 2 -t energenie/ook/504718/1/command -m "ON" mosquitto_pub -h 192.168.241.121 -p 1883 -q 2 -t energenie/ook/504718/1/command -m "OFF" config.json mqtt-energenie-ener314rt version 0.6.0: starting config.json $ node app.js I have even tried the app.js in examples https://github.com/Achronite/energenie-ener314rt and it only works if you keep function startMonitoringThread() hope this helps |
So are you saying it received the command ok but the plug didn't switch? |
yes, but the strange thing is that the ener314-rt still lights up red (LED2) and nothing happens until "monitoring": true |
Ok I'll look into it tomorrow. Are you running v0.6? |
Yes v0.6 I've be using https://github.com/whaleygeek/pyenergenie on my raspberry pi 4 I'm transitioning to a raspberry pi 5 so I know that yours is moving into that direction. |
Above issue#43 has been fixed in develop branch of dependent module |
I have tested out energenie-ener314rt module via the develop branch and it is working nicely, thank you. |
Glad to see this has fixed it for you, although I see you have a Smart Plug+, so you would benefit from BTW: If you are looking to run this on a Pi 5 you will need to switch to the hardware SPI driver. |
Yes, that is definitely the plan to switch to the [hardware SPI driver] |
I am trying out mqtt-energenie-ener314rt via the command line, for example :-
mosquitto_pub -h 192.xxx.xxx.xxx -p 1883 -q 2 -t eng/ook/504718/1/command -m "on".
I am only able to successfully transmit the on/off signal when the config.json is set to "monitoring": true
The text was updated successfully, but these errors were encountered: