Energenie ENER314-RT aka Two Way Pi-Mote (RFM69W)

Others (MiLight, Hue, Toon etc...)

Moderator: leecollings

Post Reply
User avatar
Marci
Posts: 532
Joined: Friday 22 January 2016 18:00
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Location: Wakefield, West Yorkshire UK
Contact:

Energenie ENER314-RT aka Two Way Pi-Mote (RFM69W)

Post by Marci »

Evening folks...

I’ve scavenged the forums for Energenie info but can only find stuff for the ENER314 Pi-Mote - their basic model. There’s nothing for the newer ENER314-RT Two Way, which is a proper Pi Hat with built-in antennae, with RFM69W onboard supporting FSK, OOK etc for £20 8-) . More info yonder: https://energenie4u.co.uk/index.phpcata ... ENER314-RT

The full docs for the RFM69W are here: http://www.hoperf.com/upload/rf/RFM69W-V1.3.pdf

They provide HopeRF’s c scripts for running the device, which are fairly convoluted with no guidance to get users up & running out of the box. Alternatively there’s an in-development python library over at https://github.com/whaleygeek/pyenergenie, but again, guidance is patchy.

The matter is further complicated by it communicating with the Pi via SPI1. Their provided docs (https://energenie4u.co.uk/res/pdfs/ENER ... 0Guide.pdf) infer it can be controlled by manipulating the GPIO pins. It can’t. It can only be controlled via SPI, and modification / recompilation of hoperf_trx into custom c executables to turn the bundle ENER002 dumb switches on and off (they aren’t actually supported in the default-compiled hoperf_trx app which is in full-on FSK mode for monitoring). To get the board up and running users need to manually config/make/make-install bcm2835 c libs (ver 1.37 if using RaspPi A / B, ver 1.5 if using RaspPi2). You can find them attached to this post.

Obviously, this would be a superb (and cheap) little device to cover a plethora of things with Domoticz if support could be added... especially as I’ve got one here!

Currently Domoticz is running on RaspiB #1 with an RFXTRX433E (which I purchased specifically because I couldn’t figure out how to get the ENER314-RT working with Domoticz) and the Energenie Pi-mote IR Hat, however the RFX's range won’t extend to the shed at the bottom of my garden.

I _do_ have CAT6 running to the shed however, so I’ve plonked a second RaspiB in the shed with the ENER314-RT attached so I can control devices in there. At the moment I’m using python to send OpenSoundControl commands over the network from Domoticz virtual sensors (on RaspiB #1) to communicate with it which suffices... RaspiB #2 then runs a python script listening for the OpenSoundControl commands and triggers running the various c scripts I’ve compiled to turn ENER002 sockets on and off.

I’d deeply love to be able to make RaspiB#2 into a fully-fledged Domoticz slave, with proper rx/tx capability for the ENER314-RT, and be able to monitor other devices I may add.

Any suggestions? 8-)

EDIT: P’raps I should’ve put this in the Suggestions forum rather than Compatibility. If a mod wants to shift it, feel free...
Attachments
hoperf_trx.zip
hoperf_trx RFM69W software
(41.24 KiB) Downloaded 70 times
bcm2835-1.5.tar.gz
bcm2835 libs ver 1.5
(215.4 KiB) Downloaded 113 times
bcm2835-1.37.tar.gz
bcm2835 libs ver 1.37
(242.3 KiB) Downloaded 98 times
Extended Domoticz homebridge-plugin for latest Homebridge - adds temp/humidity/pressure sensors, power consumption sensors, DarkSkies virtual weather station support, YouLess Meter support, general % usage support & switch/lamp status checking!
whaleygeek
Posts: 3
Joined: Tuesday 07 June 2016 22:18
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Energenie ENER314-RT aka Two Way Pi-Mote (RFM69W)

Post by whaleygeek »

Hi Marci,

There has been a lot of improvements to the Python code here recently: https://github.com/whaleygeek/pyenergenie

Do take another look. I now have support for both the older green button OOK devices that a lot of your users are using, as well as the two way MiHome range. I've also done a lot of work these last couple of weeks building on top of the raw message send/receive API and I have build a 'nice to use' object oriented API with a device class for each type of supported device.

There are also some out of the box demos that you can use to get started, and also a setup_tool.py program that can be used to experiment directly with devices.

I've also started to engage with others in the Pi community, to get other 'useful' demo's written.

Let me know what you think of the new version, it is greatly improved compared to the version you probably looked at back in January.

Also, unlike the 'C' code you've been using from Energenie, this code works on all variants of the Raspberry Pi right up to the V3 (I tested them all).

You are right, this two-way radio is controlled via SPI, not via GPIO pins. But all the details of that are now handled by a (hopefully) zero install python package - just 'DownloadZip' from github, unzip, and run, and it should work.

I *might* look later at hosting on pipy for those that like pip install.

I'm interested in perhaps looking at getting this working inside Domoticz directly. I'm a bit busy implementing support for other devices at the moment, but I will have a play with Domoticz in a few weeks and see if it is something I could get working with this code. Or others could have a stab at doing it, if anyone is interested?

David
@whaleygeek
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest