CurrentCost alternative

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.

Member for

14 years 6 months

magill

13 years 4 months ago

Have I been sent to Coventry.

2 recent posts..zero response!

Member for

17 years

derek

13 years 4 months ago

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.

Member for

14 years 6 months

magill

13 years 4 months ago

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 ###########

Attachments
JMleccy.lua (671 bytes)
leccy.ino_.txt (2.05 KB)