whaleygeek / pyenergenie

A python interface to the Energenie line of products
MIT License
82 stars 51 forks source link

NodeRed node development #38

Closed whaleygeek closed 5 years ago

whaleygeek commented 8 years ago

I would like to develop some NodeRed nodes for each of the different Energenie products.

This will make it possible to wire up NodeRed flows using any Energenie device.

I plan to use the same integration scheme that RPi.GPIO nodes use inside NodeRed on the Raspberry Pi - i.e. NodeRed Node calls into the python/C code.

cutec-chris commented 7 years ago

Any news on this ?

whaleygeek commented 7 years ago

No specific progress on this, due to being busy with other projects. It is still on the radar, but no timescale defined, sorry.

cutec-chris commented 7 years ago

havaned tried it now but... https://github.com/DaveThw/rpi-energenie

whaleygeek commented 7 years ago

Thanks @cutec-chris - that uses the (simpler) GPIO driven radio (one way radio). The code in this repository is more focused on the more complex two-way radio, which works with every Energenie device ever manufactured, including the whole MiHome range (for energy monitoring).

But the link will be useful I think, thanks!

Achronite commented 6 years ago

Any news on this? I have the ENER314 working with GPIO and Node-red, but I've just bought a MiHome double socket and ENER314-RT and I need to upgrade my node-red flows to use the new device.

whaleygeek commented 6 years ago

Sorry, not at the moment, got a bit busy with other projects. Although you should check in with AndySC on twitter, he does lots of NodeRed stuff and often builds on top of some of my project ideas, so he might have done something with it already.

gpbenton commented 6 years ago

You could use my ENER314-RT - MQTT project and use the Node-Red MQTT node.

Achronite commented 5 years ago

I'm currently working on this. I have a new node red-node node working that controls all of the OOK based devices, it should be released soon.

I've no plans to do the monitor device though, as I don't own any of them.

Achronite commented 5 years ago

My node-red nodes are now released into beta. The nodes caters for OOK and FSK devices, with switching & monitoring, and use @whaleygeek C code from this library. I've rewritten all of David's python routines into javascript or C so that they integrate better with node-red.

You can find the nodes here: npm github

All testing and comments welcome!

whaleygeek commented 5 years ago

Looks good. Thanks for correctly attributing the copyrights to my base work (you'd be surprised how often people don't!!)

whaleygeek commented 5 years ago

ps. The C code is mine too. I used the original C from Energenie as a benchmark, but rewrote it all from first principles. So I don't think anything in my repo came from Energenie at all. next time you update perhaps you could tweak the authors lists as appropriate. I put it in a folder called energenie because it supports their devices.

This is cracking work, well done.

Achronite commented 5 years ago

Will do. I'll stage it now in my develop branch :-)

whaleygeek commented 5 years ago

This work is now published, and written by a member of the community - nothing for me to do here :-) Thanks @Achronite for the excellent work!