If this is your first visit, be sure to check out the FAQ. You must register before you can post. Your first post will be checked for appropriate content
(SPAM) - please allow a bit of time for that. After that, you'll be able to post at will!
I have a script which runs each night which reads the value of a few devices, updates a couple of virtual devices with the values, then zeros the devices which it just read. This works fine for my rain measuring devices and 99.99% of the time for my electricity consumption reading. Essentially, all I do is read the total daily power consumption from CC and write the log and update a "Previous Day Consumption" device with what was used the prior day.
The few lines of code for this particular device are:
I have a script which runs each night which reads the value of a few devices, updates a couple of virtual devices with the values, then zeros the devices which it just read. This works fine for my rain measuring devices and 99.99% of the time for my electricity consumption reading. Essentially, all I do is read the total daily power consumption from CC and write the log and update a "Previous Day Consumption" device with what was used the prior day.
The few lines of code for this particular device are:
Leave a comment: