News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu

DataLogger Plugin - Energy Monitoring

Started by los93sol, May 24, 2010, 03:40:33 PM

Previous topic - Next topic

los93sol

Apagg:  Looks like we'll have to do some further testing of the php-image-graph package, I see the sqlCVS changes were actually put in place, but I did do a sqlCVS update prior to starting on this last week and it did not work for me, I had to run pear install image_graph-0.7.1 to get the package before it would graph properly because the include was not there from the package.

Why did you decide to use the state changed event and a separate energy graph outside the generic graphing?  I have not tested your source at all, but with the way the datalogger works for graphing generically with labels for the x and y axis from the unit table of the database, I'd think that wouldn't really work out so well for this type of device since the state changed event is really targetted for generic data.  Can you post a screenshot of your work here?

apagg

here is a screenshot of the energyGraph.

QuoteWhy did you decide to use the state changed event and a separate energy graph outside the generic graphing?
The reason I use the state change event is that its the only data that was available to me for monitoring the energy consumption. I also like the fact that I can plot energy consumption per device.  The reason for making a separate energy graph was that I wanted a different look and the processing of the state data is different from sensor-data. When processing the state data you need to assume the state stays the same until the next state change.
I hope this was understandable English is not my strong point :) 



apagg

sambuca

Just to clarify on the image-graph dependency. It is the datalogger plugin that depend on this package.

btw. nice work  :)
I really like the stacked bar you made, apagg. This way one can see which device uses the most power.

best regards,
sambuca

rages

Very great job,
you could extend this function to the EIB bus?
The  new generation of actuators have on board a current detector on each output.

Emanuele

los93sol

rages:  once the code for this device is in, you can extend it to the EIB devices.  That would actually be a very good 'get-your-feet-wet' kind of project.  You think you can take it on?

rages

I'm not a coder ... unfortunately ... I know well EIB / KNX but I find it difficult to write code, I tried to take parts of LMCE and try to understand what they do, but with poor results.
I just wanted to suggest a further development, I'm not here to ask someone to do this for me, I think that sometimes there is also need ideas, the creator of this project might not know the KNX actuators.

Emanuele

Marie.O

Do you have a list of actuators supporting these current detections? And if they provide any kind of energy usage as well in READ telegrams?
If I helped you, feel free to buy me a coffee: [url="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES"]https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES[/url]

rages

I have such an actuator Merten in my house with 12 outlets, each of which has at its disposal a group address that returns a float value of the peak current used.

The Merten is not the only company that produces this type, however once implemented reading from a device KNX open several possibilities for implementation (analog inputs, energy reading tools, etc. ..).

Emanuele

Marie.O

Do you have the SKU of the Merten, so I can have a look at the details? I am not doing anything with the eib stuff atm, but am thinking of fitting my house with it.
If I helped you, feel free to buy me a coffee: [url="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES"]https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES[/url]


valent

@apagg What devices you used to gather power usage data?
LinuxMCE - If it was easy, everybody would be doing it!!
My setup - [url="http://wiki.linuxmce.org/index.php/User:Valent"]http://wiki.linuxmce.org/index.php/User:Valent[/url]

apagg

Quote@apagg What devices you used to gather power usage data?
z-wave but I think all devices that report state should work

valent

Quote from: apagg on June 05, 2010, 04:45:14 PM
Quote@apagg What devices you used to gather power usage data?
z-wave but I think all devices that report state should work

Could you please give me the link of the exact one you used, because I know that not all zwave devices are the same and not compatible, so I wouldn't like to blow money on wrong one :(

Thanks!
LinuxMCE - If it was easy, everybody would be doing it!!
My setup - [url="http://wiki.linuxmce.org/index.php/User:Valent"]http://wiki.linuxmce.org/index.php/User:Valent[/url]


valent

Quote from: apagg on June 05, 2010, 10:50:34 PM
http://wiki.linuxmce.org/index.php/User:Apagg#Home_Automation this is what I use at the moment

I updated you user page with climate and zwave categories, hope you don't mind.
LinuxMCE - If it was easy, everybody would be doing it!!
My setup - [url="http://wiki.linuxmce.org/index.php/User:Valent"]http://wiki.linuxmce.org/index.php/User:Valent[/url]