CurrentCost alternative

3 replies [Last post]
magill
Offline
Joined: 27 Apr 2012

Hi

Discovered this

http://jeelabs.net/projects/cafe/wiki/Electricity_consumption_meter

and have got it working with a few amendments to roomnode script. Works well.

magill
Offline
Joined: 27 Apr 2012
persona non grata

Have I been sent to Coventry.

2 recent posts..zero response!

derek
Offline
Glasgow, United Kingdom
Joined: 26 Oct 2009
Good work John

Not ignoring you - it's just a quiet time of year for 'things HA'. The sun is shining and outdoors type stuff is on the go.

Nice to see a way to get an accurate elctricity meter reading. I was rather annoyed when my 'old' electricity meter (which had a flashing LED) was replaced by a new one which did not.

Do post some photos of your setup and the work that you did on the Lua script.

Cheers,
Derek.

magill
Offline
Joined: 27 Apr 2012
whoopee...I have a friend!

Anyway no photos, my temp lash up has a small block of wood with a 6mm ? hole to hold the sensor and this is just taped to the meter.

I attach the sketch. Obviously this will require a PSU to run. Add the JMleccy.lua script and also add 2 lines to the jeenode.lua ie

RoomNodeTwin = require("xap.roomnodetwin").RoomNode
OutputNode = require("xap.outputnode").OutputNode
JMOilNode = require("JMoilnode2").JMOilNode
JMLeccy = require("JMleccy").JMLeccy  ######### add this line ###################
IRNode = require("xap.irnode").IRNode
info={
   version="2.0", description="JeeNode"
}

local jeemon={
      port="/dev/ttyUSB0",
      baud=57600,
      stop=1,
      databits=8,
      parity="none",
      flow="none"
}


-- Keyed by NODE ID
local nodes = {
[2] = RoomNode{base="dbzoo.livebox.jeenode:livingroom", endpoints={temp=1,light=1,moved=1}, ttl=360},
 
[4] = RoomNodeTwin{base="dbzoo.livebox.jeenode:hottank", endpoints={temp="water_in",temp2="water_out"}, ttl=360},

[5] = JMOilNode{base="dbzoo.livebox.jeenode:outside", endpoints={oil=1,temp="outside",temp2="boilerroom"}, ttl=360},
[6] = JMLeccy{base="dbzoo.livebox.jeenode:leccy", endpoints={watts=1}, ttl=360}  ############## add this line ###########

AttachmentSize
JMleccy.lua 671 bytes
leccy.ino_.txt 2.05 KB
Hardware Info