Extract mystrom switch energy attributes into sensors
See original GitHub issueThis issue is for the switch platform of the mystrom integration.
The switch integration has embedded sensors for energy usage. This is no longer the preferred approach. Integrations using this approach should turn this data into standalone sensors.
This is important because Home Assistant is going to introduce home energy management (HEM) in 2021.8. HEM will be able to consume the data if it is exposed as standalone sensors.
To make sure that the sensors that represent total kWh is usable for HEM, set state_class
to STATE_CLASS_TOTAL_INCREASING
. See sensor documentation for more information.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:14 (5 by maintainers)
Top Results From Across the Web
MyStrom Smart Switch in Energy Consumption Overview Page
So I managed to integrate the “MyStrom Smart Switch” with Power Consumption Meter using the following statements in configuration.yaml:
Read more >myStrom - Bindings - openHAB
myStrom Binding. This extension adds support for the myStrom devices. As of today only the Smart Plug, Bulb and the Motionsensor are implemented....
Read more >myStrom Home Guard | Smart Home
The smart motion detector that automatically switches lights and devices when you move and saves electricity when you're away. Designed in Switzerland.
Read more >Novel Feature-Extraction Methods for the Estimation of Above ...
Author to whom correspondence should be addressed. †. These authors contributed equally to this work. Sensors 2021, 21(13), 4369; ...
Read more >myStrom Home Guard | Smart Home
Buy myStrom Devices. Be it a Switch, Motion Sensor, light or Button – with Home Guard, any device can contribute to your protection....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
just opened a PR to add the power consumption as a sensor. not sure if this is the right approach as I’m new to HA internals and python. Feedback would be great. I will try to add energy sensors if this is the correct way.
https://github.com/home-assistant/core/pull/69745
will a PR for just the additional sensors be accepted or is a change to user flow required?