-
-
Notifications
You must be signed in to change notification settings - Fork 29.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Iotawatt sensor can no longer be used with energy screen following change #55510 #55554
Comments
The documentation for iotawatt indicates to use the |
The documentation notes how to split main into import and export and then use an integration to calculate totals |
I am aware of that, but surely preventing to use directly the sensor in the energy screen and to instead force the user to create an integration, which will suffer from the exact same fate if the power read is negative (if the energy read is negative, so will the power) can't be the solution. |
having to use an integration means that there will be data loss when HA is restarted, worse if when you restart HA you have a high power read, the integration will assume that this high power read is the average since the last read and will add exceptionally high energy measurement. I've seen this happening plenty of times, same if the iotawatt stops responding (and it does so often due to my flaky wifi setup where the iotawatt is located) the integration just apply the power read on the entire lapsed duration. The day HA introduced the energy screen, I made attempt to use the integration; I've discussed at length with @dgomes on how we could resolve all the downsides of using integration. It's not a long term suitable solution. I've created #55512 to resolve all those issues |
Hey there @gtdiehl, mind taking a look at this issue as it has been labeled with an integration ( iotawatt documentation |
I do agree with @jyavenard: Using the IoTaWatt's integration feature (and query wh directly) is much preferred as the integration happens in much smaller intervals than what we are polling, leading to higher accuracy. I think where Paulus' change change came from was that when using a calculated output of certain types integration on IoTaWatt side is not possible, leading to sensors with 0 value. But that should not prevent use of IoTaWatt's integration for all other, regular input sensors or output sensors. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I just installed an IoTaWatt and just started using Home Assistant and found this integration. As this bug indicates, I can't use any of the sensors that the IoTaWatt integration is providing in the Energy screen. I also see in this other issue that the outputs are no longer included, so the documentation's suggestion of making a new sensor also doesn't work. |
If you wait for 2021.10 ; the accumulated sensor will be available with the energy screen. |
Hi Jean, |
Yes, the accumulated sensors are usable with the energy screen since 2021.10 The HACS version let you use any energy sensors in the energy screen, not just the accumulated sensor. The HACS version also have the advantage that you can rename the sensors which the official version wouldn't let us do |
Thanks for the quick response, can I assume the - platform: integration sensors are now not needed? |
that's correct. The accumulated sensor are much more accurate too |
I'm modifying the documentation as we speak |
Great stuff, thanks very much |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
The problem
PR #55510 removed the state_class attribute from the created sensor.
Without it, you can't use the sensors with the energy screen which is pretty much the only place where the iotawatt sensors are of value.
PR #55510 should be partially reverted ; no one will use the iotawatt integration otherwise.
What is version of Home Assistant Core has the issue?
core-2021.10.0.dev0
What was the last working version of Home Assistant Core?
core-2021.10.0.dev0
What type of installation are you running?
Home Assistant Core
Integration causing the issue
iotawatt
Link to integration documentation on our website
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: