Re: [154] - CurrentCost Envir support
Posted: Saturday 26 December 2015 21:27
CurrentCost devices are now integrated as hardware device. CC owners can now test this new opportunity to get their CC device into Domoticz.
Open source Home Automation System
https://forum.domoticz.com/
ok, what steps should i take to test it ?JC38 wrote:CurrentCost devices are now integrated as hardware device. CC owners can now test this new opportunity to get their CC device into Domoticz.
Code: Select all
CurrentCost Smart Meter: connected to: 192.168.1.xxx:80
Only occationally, I should have tracked to see if it actually works in the wild.JC38 wrote: Hope he comes here...
Almost certainly, I've got a CC-128 I think which only has basic output, if I can some real xml generated by other devices I can play with adding more things. Id' be good to see the xml with as many different numbers of devices and types connected as possible.JC38 wrote:John, is-it possible to add support for other devices monitored by the CC ?
Actually, only the sensor 0 (whole house) is logged however getting also the others in separate Domoticz devices would be interesting.
Seems to be every time the value change and it's sampled every few seconds. Can smooth it if requiredJC38 wrote: Another question : how often new values are inserted into Dz database ?
The history would be useful, was probably going to add this by integrating the Watt figures eventually just like in asjmcguire's script.Rene wrote:Also does not keep track of kwh history so far.
The LAN interface requires a serial to lan converter somewhere else probably with a different port, more than likely you just want the plain USB and get the right serial port.rostyk wrote:No devices added when using CurrentCost Meter with LAN interface (i assume port should be 80)
In a log i just can see:Code: Select all
CurrentCost Smart Meter: connected to: 192.168.1.xxx:80
John, thank you for coming here, and thank you for your job.JohnAdders wrote: Almost certainly, I've got a CC-128 I think which only has basic output, if I can some real xml generated by other devices I can play with adding more things. Id' be good to see the xml with as many different numbers of devices and types connected as possible.
John, I think the CC128 is transmetting its data through a "queue", the day and time pushed are not necessarly the same when it is decrypted by the client (Domoticz). And I don't think you are recording the date/time value from the CC, but the Domoticz timestamp.JohnAdders wrote: Seems to be every time the value change and it's sampled every few seconds. Can smooth it if required
The history would be useful, was probably going to add this by integrating the Watt figures eventually just like in asjmcguire's script.Rene wrote:Also does not keep track of kwh history so far.
Hi,JohnAdders wrote: The LAN interface requires a serial to lan converter somewhere else probably with a different port, more than likely you just want the plain USB and get the right serial port.
John
CorrectNautilus wrote: just to confirm - do I understand correctly that the LAN interface option is not meant to be working with CurrenCost Bridge (available for EnviR at least)? But the USB option should work just by hooking the unit (EnviR in my case) to the Pi running Domoticz?
I'm using the real time, agree that I shouldn't trust the timestamps which is why I haven't done anything with the history yet. Haven't played for a while but will check what the discrepancy between integrating the real time and the history is.JC38 wrote: In case you are logging the "Real-Time Output" watt values from the CC128, it's not a problem, because you are nearly the real time. And in fact, this is the best method, as the CC can easily be out of time (no daylight timesaving support, no ntp synchronization).
I think I can automatically create new indexes when I see the sensor xml. Will have a look tomorrow.JC38 wrote: As you will see, if you want to manage a CC with multiple devices (sensors) you will have to change the settings to ask people for the index (sensor id) of each one. And you also have to create a Domoticz device (type usage / subtype electric) per sensor.
The updates are every 6 seconds, do you think it's worth averaging every 10 for all readings to thottle to once a minute for the power as well?JC38 wrote: Regarding the temperature, it's useless to upload it again when reading a sensor which id > 0. And even if you upload a new tmpr value each time you get a sensor 0 record, I think this is too much. My script was recording tmpr each time a value was received, and I think it explains why my database size was growing so fast.
I think updating the temperature only once per 10 values received per sensor with id0 is enough
John, for my point of view you can keep each watt value you catch into the xml. In my opinion only the temperature sensor doesnt need to be updated with each record. 1 value par min = 1440 values/day.... Even a Oregon sensor doesn't send so many data. Once per 5 minutes would be enough. Or even better, send a new value for the tempr only if it's diffrent from the previous oneJohnAdders wrote: The updates are every 6 seconds, do you think it's worth averaging every 10 for all readings to thottle to once a minute for the power as well?
John