[OpenTRV-dev] opentrv to emoncms

Bo Herrmannsen bo.herrmannsen at gmail.com
Tue May 5 12:11:21 BST 2015


hi again

i'm going to fiddle with my bed-roller server box and i wanted to add data
from the OpenTRV units


2 ways i can think of it


1) Each Opentrv board sends the data to emoncms... they at least work on
the same freq, but they dont use the same module,... latest rfm lib that
emontx boards use are updated to be able to use rfm69 but i think their
boards are still shipped with rfm12 or was it  22....

anyways my idea was to send commands to the valve, then to emoncms... then
sleep for the 2 mins or so


2) have one emontx board grap the data it needs from one Opentrv board that
again wireless gets data from the others.... i have 2 emontx boards and one
opentrv at my hot water cylinder...

one of the emontx boards allready gets data from the heatmeter via an IR
optical serial port

the other one only monitors my water meter so most of the time it will just
sit there idle and just report 0 water usage to the emoncms system... i
think this one will be mostly suited

right now that board only sends over 2 numbers

1) liters an hour
2) clicks since last reading (liters)

it reports to emoncms every 4 sec

so for each opentrv i just need to collect and add:

1)battery voltage
2)temp
3)light level
4)valve open %

i have attached 2 files... one for each of the emontx boards

the small file is the one for the water meter and the other is for the
heatmeater, electricity pulse, and hotwater temp...

my idea is to add something to the watermeter skecth that can grab serial
data and pick what is needed... i just dont have any clue how.. also the
serial data from the opentrv must be in the same order or the emontx will
start to report false data.... maybe have the opentrv buffer the data and
just update the output when new values are there?

anyone have idea or could help out?

the zip file is the sketch for my opentrv that controls the hot water
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opentrv.org.uk/pipermail/opentrv-dev/attachments/20150505/3c91495b/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kamstrup_ds18b20_puls.ino
Type: application/octet-stream
Size: 21989 bytes
Desc: not available
URL: <http://lists.opentrv.org.uk/pipermail/opentrv-dev/attachments/20150505/3c91495b/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: _puls.ino
Type: application/octet-stream
Size: 6798 bytes
Desc: not available
URL: <http://lists.opentrv.org.uk/pipermail/opentrv-dev/attachments/20150505/3c91495b/attachment-0003.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 20150308-r4332-V0p2-Arduino-REV1-DS18B20-DHW-for-Bo.zip
Type: application/zip
Size: 475669 bytes
Desc: not available
URL: <http://lists.opentrv.org.uk/pipermail/opentrv-dev/attachments/20150505/3c91495b/attachment-0001.zip>


More information about the OpenTRV-dev mailing list