Over recent months I've added a few Z-Wave devices with energy reporting features so I've been having a play with the energy graphing features of HS3.
OH DEAR....
Some of the "energy" capable devices appeared to work OK and the charts were producing meaningful results until a few days ago. I added a new Aeon smart energy switch but it didn't appear in the device selector drop down on the energy page. I tried restarting HS3 a couple of times but still no joy so I decided to investigate the energy database in my quest to see why it wasn't there.
Seems like the device name as well as the ref is stored in the Energy table. I renamed the new Aeon device shortly after adding it but the DB still had the old name. I changed the name to match the current name of the device and hey-presto it appeared in the list and was chartable. Seems a bit strange to me to be using the name to verify the device for inclusion in the selector drop down. I thought the dvref would have been used here as it is unique.
Another issue is that the database is not kept in sync with HS3 devices, so if a device is removed from HS3 then it stays in the DB which could be interesting if/when that dvref is reused for a new device.
Everything seemed to work OK for a couple of weeks until yesterday. On viewing a chart for my new Aeon device I noticed it had a negative value which I know couldn't have been true. Back into the database and a see a right old mish-mash of data for this device. The device in question has reporting set to 20 minutes and image 1 is a snippet of resulting data stored in the EnergyData table.
Image 2 shows another snippet of data for the same device where things seems to have gone hay-wire. As you can see there are 8 entries in the DB for the same device for the same time period. On further investigation it would appear that this has happened for other devices at various times and appears to cause corruption with the charts.
I may well be wrong but I suspect the energy data is queued and then de-queued into the DB and the problem occurs in this procedure.
My only reason for looking at the integrated charting was for ease of getting charts into HSTouch but in light of these findings I have decided to abandon this approach and investigate the third party alternatives before embarking on my own creation.
Unless I'm missing something there does not appear to be a way of switching off energy reporting to the DB for a device. Anyone know if setting the energy database size to 0 switches the whole thing off?
Paul..
OH DEAR....
Some of the "energy" capable devices appeared to work OK and the charts were producing meaningful results until a few days ago. I added a new Aeon smart energy switch but it didn't appear in the device selector drop down on the energy page. I tried restarting HS3 a couple of times but still no joy so I decided to investigate the energy database in my quest to see why it wasn't there.
Seems like the device name as well as the ref is stored in the Energy table. I renamed the new Aeon device shortly after adding it but the DB still had the old name. I changed the name to match the current name of the device and hey-presto it appeared in the list and was chartable. Seems a bit strange to me to be using the name to verify the device for inclusion in the selector drop down. I thought the dvref would have been used here as it is unique.
Another issue is that the database is not kept in sync with HS3 devices, so if a device is removed from HS3 then it stays in the DB which could be interesting if/when that dvref is reused for a new device.
Everything seemed to work OK for a couple of weeks until yesterday. On viewing a chart for my new Aeon device I noticed it had a negative value which I know couldn't have been true. Back into the database and a see a right old mish-mash of data for this device. The device in question has reporting set to 20 minutes and image 1 is a snippet of resulting data stored in the EnergyData table.
Image 2 shows another snippet of data for the same device where things seems to have gone hay-wire. As you can see there are 8 entries in the DB for the same device for the same time period. On further investigation it would appear that this has happened for other devices at various times and appears to cause corruption with the charts.
I may well be wrong but I suspect the energy data is queued and then de-queued into the DB and the problem occurs in this procedure.
My only reason for looking at the integrated charting was for ease of getting charts into HSTouch but in light of these findings I have decided to abandon this approach and investigate the third party alternatives before embarking on my own creation.
Unless I'm missing something there does not appear to be a way of switching off energy reporting to the DB for a device. Anyone know if setting the energy database size to 0 switches the whole thing off?
Paul..
Comment