Open enkrypt3d opened 2 years ago
Thanks for the report! All of the ones mentioning last_reset can safely be ignored for now, I'm planning on swapping off of total_increasing and will actually need to update the last_reset calculation when doing so.
The errors toward the bottom with setting up the switch is a new one. If I had to guess what would cause that, you have an outlet that has no name defined in the Emporia app. If that's the case, it's not something I had considered. I'll have to think about how to handle that in the future but you could probably get rid of that error by naming it. If you don't have any unnamed outlets then that's extra strange.
ah ok I had an old smart outlet that wasn't working so I removed that. so hopefully it should clear up some of the noise. As far as updating, will it be included in HA core or HACS? thanks!
For now this is only going to be in HACS but there's a chance I try to get it into HA core one of these days.
Sounds great thanks again!
On Fri, Mar 4, 2022 at 9:23 PM Michael Marvin @.***> wrote:
For now this is only going to be in HACS but there's a chance I try to get it into HA core one of these days.
— Reply to this email directly, view it on GitHub https://github.com/magico13/ha-emporia-vue/issues/110#issuecomment-1059654637, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWHLHRVSPTGNEO5D5KF4DV3U6LAQ5ANCNFSM5P67WSCA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you authored the thread.Message ID: @.***>
Last question for you, why are these 2 entities different? shouldn't they be the same?
Balance is the difference between what's measured at the main breaker and the monitored circuits. For a basic setup with no solar, it's the Mains minus all the individual sensors. How it works with solar might be a bit different, I can't say because I don't have solar unfortunately. It should correspond to the Balance at the bottom of the app.
Ok so I have extensions so that I can put the 200A CT's on the mains in front of the hot tub which has taps just behind the main breaker. and then the main panel which is fed by solar & battery backup is where the emporia vue is. so the difference would be the hot tub circuit then since it does not have direct monitoring? Hopefully that makes sense...
On Sun, Mar 6, 2022 at 3:42 PM Michael Marvin @.***> wrote:
Balance is the difference between what's measured at the main breaker and the monitored circuits. For a basic setup with no solar, it's the Mains minus all the individual sensors. How it works with solar might be a bit different, I can't say because I don't have solar unfortunately. It should correspond to the Balance at the bottom of the app.
[image: Screenshot_20220306-154001] https://user-images.githubusercontent.com/5289685/156941371-4e9f5a0b-9118-481f-a674-373ea43c6bc3.png
— Reply to this email directly, view it on GitHub https://github.com/magico13/ha-emporia-vue/issues/110#issuecomment-1060035427, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWHLHRXERTO7JDVTEMC7O53U6UKD3ANCNFSM5P67WSCA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you authored the thread.Message ID: @.***>
May help the illustration. hot tub is on top and you can see when it runs... and when I'm exporting to the grid after my batteries are charged up.
What can I do to get rid of these errors? Logger: homeassistant.components.sensor.recorder Source: components/sensor/recorder.py:331 Integration: Sensor (documentation, issues) First occurred: 3:25:10 PM (3 occurrences) Last logged: 3:50:10 PM
Entity sensor.home_123_1mon from integration emporia_vue has state class total_increasing, but its state is negative. Triggered by state -17.399 with last_updated set to 2022-04-07T19:19:59.999999+00:00. Please report it to the custom component author. Entity sensor.home_balance_1mon from integration emporia_vue has state class total_increasing, but its state is negative. Triggered by state -174.89 with last_updated set to 2022-04-07T19:19:59.999999+00:00. Please report it to the custom component author. Entity sensor.home_balance_1d from integration emporia_vue has state class total_increasing, but its state is negative. Triggered by state -0.007 with last_updated set to 2022-04-07T19:49:03.003639+00:00. Please report it to the custom component author.
Logger: homeassistant.components.sensor.recorder Source: components/sensor/recorder.py:311 Integration: Sensor (documentation, issues) First occurred: 3:25:10 PM (3 occurrences) Last logged: 4:00:10 PM
Entity sensor.home_123_1d from integration emporia_vue has state class total_increasing, but its state is not strictly increasing. Triggered by state 9.511 (9.647) with last_updated set to 2022-04-07T19:21:51.003368+00:00. Please report it to the custom component author. Entity sensor.home_balance_1d from integration emporia_vue has state class total_increasing, but its state is not strictly increasing. Triggered by state 2.858 (2.998) with last_updated set to 2022-04-07T19:21:51.004911+00:00. Please report it to the custom component author. Entity sensor.totalusage_totalusage_1d from integration emporia_vue has state class total_increasing, but its state is not strictly increasing. Triggered by state 6.8 (7.507) with last_updated set to 2022-04-07T19:55:03.207580+00:00. Please report it to the custom component author.
Currently there's nothing you can do. I'm testing a change where the state class is changed to total
and I have some other things I'm going to be testing in the near future that will also fix this.
Sounds great! Let me know if you need someone to test. Thanks!
Is there a way to make the "mainstogrid" entity read a negative value instead of positive when it is exporting to the grid? This would reflect net metering a bit more accurately....
I believe the Home Assistant dashboard requires it to be positive, at least it definitely used to, since I had to flip the sign between the API and the sensor to get it to work properly for other people. You could set up a template sensor that flips the sign to negative if you wanted it that way but I don't believe that it'll operate correctly as the "export" sensor in the energy dashboard, unless they updated that.
If you look at the bottom graph above, it shows negative values for some of the entities but not everything. Of course some sensors will never go negative, but some need to be able to. I'll look into adding a template to see if I can get it done that way.
I have the same error with state_class total_increasing has set last_reset. Setting last_reset for entities with state_class other than 'total' is not supported. Please update your configuration if state_class is manually configured, otherwise report it to the custom component author
Also regarding negative values because solar panels generate power I want to have negative values registered as power generation.
There's a pre-release available that includes a change from total_increasing
to total
if you're willing to try out "beta" versions. It fixes these error messages and behaves better when the API gives bad data and then corrects itself later. I still have a couple fixes I intend to put in there so that's the main reason it hasn't been promoted to a full release.
Bump & Thanks for the hard work and effort!
Getting these errors in the logs. Running Home Assistant 2022.2.9. Let me know if I can provide more details. thanks!