question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Extract mystrom switch energy attributes into sensors

See original GitHub issue

This 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.

Link to the architecture discussion.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:2
  • Comments:14 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
OneCyruscommented, Apr 9, 2022

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

1reaction
OneCyruscommented, Apr 7, 2022

Can this issue be fixed in a timely manner?

It’s not an issue, it’s a deprecation of an old feature, that is no longer available.

Other options to implement this are available, unfortunately, no one has contributed it until now.

Feel free to jump in to make that happen 👍

…/Frenck

will a PR for just the additional sensors be accepted or is a change to user flow required?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found