gpbenton / engMQTTClient

MQTT client for Energenie ener314-rt board running on a raspberry Pi
MIT License
21 stars 10 forks source link

Reset HRF initially #9

Closed barnybug closed 7 years ago

barnybug commented 7 years ago

After first booting the Pi, I found your client wasn't functioning unless I'd run https://github.com/whaleygeek/pyenergenie/ once - it turns out this does a reset of the HRF chip that seems necessary to get it into the right state, at least for me.

Great project btw - thanks very much for the work!

gpbenton commented 7 years ago

Thanks for that. I hadn't seen the problem, but I expect there are variations in hardware. The reset doesn't break my board - at least on one reboot.

Incidentally, by a remarkable coincidence, I had just pushed a change that increased the delay after sending an OOK message. This should make it possible to send two commands immediately after each other to different switches. I had been adding a delay in my scripts all Summer but this should make it unnecessary.