HouseAgent - my home automation software
HouseAgent - my home automation software
It looks like you are using ext-js for the interface? a good basis for good looking software! Can I ask what language you are programing in?
HouseAgent - my home automation software
Woops didn't see this before. Indeed I'm using ext-js I like it, although debugging is some times really hard.
I'm programming in the python language.
--
Maarten Damen
www.maartendamen.com
I'm programming in the python language.
--
Maarten Damen
www.maartendamen.com
HouseAgent - my home automation software
I've been busy during the holidays, here's a screenshot of my plugwise power statistics (per device). Everything you see is generated without using "the source" running on my Synology DS-207+ (Linux)

--
Maarten Damen
www.maartendamen.com

--
Maarten Damen
www.maartendamen.com
HouseAgent - my home automation software
Looking very nice, I suppose you'll use your app pol to get the power usage. With the -w option we get the current power usage. Can you already read the total usage (counter) of the plug without source?
If this is not the case then when the device wich is connected to the plug uses more between the interval you pol it you don't see that usage.
If this is not the case then when the device wich is connected to the plug uses more between the interval you pol it you don't see that usage.
HouseAgent - my home automation software
I can read the power buffers from the circle's.
Been busy reverse engineering this part these holidays. So no information is missed.
I will post some details on these buffers in the plugwise forum when I'm finished writing the documentation about it.
--
Maarten Damen
www.maartendamen.com
Been busy reverse engineering this part these holidays. So no information is missed.
I will post some details on these buffers in the plugwise forum when I'm finished writing the documentation about it.
--
Maarten Damen
www.maartendamen.com
HouseAgent - my home automation software
Very nice Maarten and running on the Synology!
And also again one step further reversing the Plugwise circle
Can you now read total power from a circle when ever you want?
Looking forward on your explaining post.
And also again one step further reversing the Plugwise circle

Can you now read total power from a circle when ever you want?
Looking forward on your explaining post.
HouseAgent - my home automation software
Pieter I've posted some details in the plugwise forum, I hope it is usefull and clear.
I cannot read the totals whenever I want, I calculate the totals like this:
The energy tariff information is still fixed, still working on a configuration menu.
--
Maarten Damen
www.maartendamen.com
I cannot read the totals whenever I want, I calculate the totals like this:
Code: Select all
# costs
query = "select SUM(plugwise_log.value) FROM plugwise_log where plugwise_log.device_id = %s AND HOUR(plugwise_log.logtime) BETWEEN 7 AND 23" % device.id
queryresults = conn.queryAll(query)
peakusage = queryresults[0][0]
query = "select SUM(plugwise_log.value) FROM plugwise_log where plugwise_log.device_id = %s AND HOUR(plugwise_log.logtime) NOT BETWEEN 7 AND 23" % device.id
queryresults = conn.queryAll(query)
offpeakusage = queryresults[0][0]
costs = (peakusage * 0.2312) + (offpeakusage * 0.1720)
costs = round(costs,2)
--
Maarten Damen
www.maartendamen.com
- Willem4ever
- Global Moderator
- Posts: 805
- Joined: Mon Oct 30, 2006 3:48 pm
- Location: Uithoorn / Netherlands
HouseAgent - my home automation software
Maybe I overlook, but isn't the weekend offpeakusage as well?
HouseAgent - my home automation software
Hmmm.. you might be right on that one! I'll check it with the energy provider.. thanks!
--
Maarten Damen
www.maartendamen.com
--
Maarten Damen
www.maartendamen.com
HouseAgent - my home automation software
Yes Saturday and Sunday and other official celebrations days are nighttime.
And Thanks for the post.
And Thanks for the post.
HouseAgent - my home automation software
Hmm I don't think "the source" takes that in consideration. Looking at the energy settings.
--
Maarten Damen
www.maartendamen.com
--
Maarten Damen
www.maartendamen.com
HouseAgent - my home automation software
Nuon site says this:
Uitleg standaard tarieftijden stroom*
Continutarief: 24 uur per dag hetzelfde tarief per kilowattuur (kWh)
Nacht-actieftarief: 's nachts (van 23.00 tot 7.00 uur) en in het weekend geldt een lagere prijs per kWh dan overdag en 's avonds. In Amsterdam en Oostzaan is dit in de zomer van 24.00 tot 8.00 uur.
Avond-actieftarief: 's avonds en 's nachts (van 21.00 tot 7.00 uur) en in het weekend geldt een lagere prijs per kWh dan overdag. Dit tarief is slechts in een beperkt aantal regio's verkrijgbaar.
* De plaatselijke netbeheerder schakelt de telwerken van uw meter van hoogtarief naar laagtarief en omgekeerd. Afhankelijk van waar u woont start de laagtariefperiode om 21.00 uur of om 23.00 uur.
Nothing about official celebration days.
--
Maarten Damen
www.maartendamen.com
Uitleg standaard tarieftijden stroom*
Continutarief: 24 uur per dag hetzelfde tarief per kilowattuur (kWh)
Nacht-actieftarief: 's nachts (van 23.00 tot 7.00 uur) en in het weekend geldt een lagere prijs per kWh dan overdag en 's avonds. In Amsterdam en Oostzaan is dit in de zomer van 24.00 tot 8.00 uur.
Avond-actieftarief: 's avonds en 's nachts (van 21.00 tot 7.00 uur) en in het weekend geldt een lagere prijs per kWh dan overdag. Dit tarief is slechts in een beperkt aantal regio's verkrijgbaar.
* De plaatselijke netbeheerder schakelt de telwerken van uw meter van hoogtarief naar laagtarief en omgekeerd. Afhankelijk van waar u woont start de laagtariefperiode om 21.00 uur of om 23.00 uur.
Nothing about official celebration days.
--
Maarten Damen
www.maartendamen.com
HouseAgent - my home automation software
Eneco does have celebration days included [:)]
De tarieven voor een dubbeltariefmeter gelden alleen als er sprake is van twee aangesloten telwerken. Standaard daluren (periode waarin laagtarief
wordt berekend) gelden doordeweeks van 23:00-7:00 uur (of van 21:00-7:00 uur), in de weekenden en op de volgende feestdagen:
1 januari, 2e paasdag, koninginnedag, hemelvaartsdag, 2e pinksterdag, 1e en 2e kerstdag.
Guess I'll include some option for the calculate celebration days.
--
Maarten Damen
www.maartendamen.com
De tarieven voor een dubbeltariefmeter gelden alleen als er sprake is van twee aangesloten telwerken. Standaard daluren (periode waarin laagtarief
wordt berekend) gelden doordeweeks van 23:00-7:00 uur (of van 21:00-7:00 uur), in de weekenden en op de volgende feestdagen:
1 januari, 2e paasdag, koninginnedag, hemelvaartsdag, 2e pinksterdag, 1e en 2e kerstdag.
Guess I'll include some option for the calculate celebration days.
--
Maarten Damen
www.maartendamen.com
HouseAgent - my home automation software
<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote"><i>Originally posted by Bwired</i>
<br />Yes Saturday and Sunday and <b>other official celebrations days are nighttime.</b>
And Thanks for the post.<hr height="1" noshade id="quote"></font id="quote"></blockquote id="quote">In Belgium are official celebrations NOT nighttime. Are you sure it's in the Netherlands also?
Site electrabel-> http://www.electrabel.be/residential/he ... ff_nl.aspx<i>
Meestal vallen de piekuren van maandag tot en met vrijdag (ook op feestdagen) tussen 7 en 22 uur.</i>
Lesley.
<br />Yes Saturday and Sunday and <b>other official celebrations days are nighttime.</b>
And Thanks for the post.<hr height="1" noshade id="quote"></font id="quote"></blockquote id="quote">In Belgium are official celebrations NOT nighttime. Are you sure it's in the Netherlands also?
Site electrabel-> http://www.electrabel.be/residential/he ... ff_nl.aspx<i>
Meestal vallen de piekuren van maandag tot en met vrijdag (ook op feestdagen) tussen 7 en 22 uur.</i>
Lesley.
HouseAgent - my home automation software
ESSENT:
http://www.essent.nl/content/thuis/prod ... tijden.jsp
Het piek- en daltarief geldt wanneer u woont in Noord-Brabant of Limburg.
Het piektarief geldt op werkdagen van 7.00 uur tot 21.00 uur.
<i><b>Het daltarief geldt op werkdagen van 21.00 tot 7.00 uur en op zaterdag, zondag en nationaal erkende feestdagen.</b></i>
In totaal heeft een week 98 uren voor het daltarief
Het normaal- en laagtarief geldt in heel Nederland, behalve in Noord-Brabant en Limburg.
Het normaaltarief geldt op werkdagen van 7.00 uur tot 23.00 uur.
Het laagtarief geldt op werkdagen van 23.00 tot 7.00 uur en op zaterdag, zondag en nationaal erkende feestdagen.
In totaal heeft een week 88 uren voor het laagtarief
Het piek- en daltarief heeft meer uren in het goedkope tarief dan het normaal- en laagtarief. Om die reden is het normaal- en laagtarief ook iets lager dan het piek- en daltarief.
Per saldo maakt het daardoor niet uit in welke provincie u woont en welk tarief u betaalt
http://www.essent.nl/content/thuis/prod ... tijden.jsp
Het piek- en daltarief geldt wanneer u woont in Noord-Brabant of Limburg.
Het piektarief geldt op werkdagen van 7.00 uur tot 21.00 uur.
<i><b>Het daltarief geldt op werkdagen van 21.00 tot 7.00 uur en op zaterdag, zondag en nationaal erkende feestdagen.</b></i>
In totaal heeft een week 98 uren voor het daltarief
Het normaal- en laagtarief geldt in heel Nederland, behalve in Noord-Brabant en Limburg.
Het normaaltarief geldt op werkdagen van 7.00 uur tot 23.00 uur.
Het laagtarief geldt op werkdagen van 23.00 tot 7.00 uur en op zaterdag, zondag en nationaal erkende feestdagen.
In totaal heeft een week 88 uren voor het laagtarief
Het piek- en daltarief heeft meer uren in het goedkope tarief dan het normaal- en laagtarief. Om die reden is het normaal- en laagtarief ook iets lager dan het piek- en daltarief.
Per saldo maakt het daardoor niet uit in welke provincie u woont en welk tarief u betaalt