Deprecate current_power_w and today_energy_kwh switch properties #579
|
As per Switch Entity properties switch entity has two properties which are sensor related data: Sensor data is usually having higher frequency updates, in case of power the state of the sensor may be change in short intervals in terms of seconds, making it part of the switch entity will cause the switch state to be updated in higher frequency while the switch state may be static for a long period. Sensors also support state class which will allow better history for the data: Sensor Entity state classes There are currently 19 uses for |
Replies: 5 comments 4 replies
|
When migrating the |
|
I created a PR to update the documentation: home-assistant/developers.home-assistant#982 |
|
I have created issues for all integrations that currently use one of the two electricity related attributes: https://github.com/home-assistant/core/issues?q=is%3Aissue+is%3Aopen+%22switch+energy+attributes+into+sensors%22 |
|
We use now the rest sensor workaround. This works, but since the mystrom switches are WIFI switches, the readings result in Timeouts from time to time, and some automations with numeric trigger will be triggered after one bad + one good reading. |
@frenck @emontnemery What do you think?