I've just completed testing of my first node-red module. You can use the nodes of this module to control and monitor the Energenie MiHome radio based smart devices such as adapters, sockets, lights and relays on a Raspberry Pi with an ENER314-RT board installed using node-red. This is instead of operating the devices using a MiHome Gateway.
There are 4 nodes in total:
- 'Blue' for switching 'Control Only' (OOK) based devices
- 'Pink' for monitoring MiHome 'Monitor' devices
- 'Purple' for monitoring and controlling 'Control & Monitor' devices
- 'Green' for sending any OOK or FSK raw byte array (Advanced node)
It was quite tricky to get this going as it uses a C library to communicate with the radio adaptor, I've used a combination of sync and async calls at the moment with a mutex on the radio calls. If anyone has recommendations about which is best (sync or async) please let me know!
I would be interested in anyone to perform testing of these nodes, it currently should work with all switches and monitor only devices; but only the Adaptor Plus in the 'control & monitor' range.
UPDATE: I have now tagged this release with 'node-red', so you can install using 'Manage palette' option directly in node-red.