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 vera switch energy attributes into sensors

See original GitHub issue

This issue is for the switch platform of the vera 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
  • Comments:39 (11 by maintainers)

github_iconTop GitHub Comments

4reactions
riclun80commented, Apr 8, 2022

You can create rest sensors in your configuration for the time being. Just did it myself so don’t know if it’s optimal. Had it already for other sensors that have worked well!

sensor:
  - platform: rest
    name: "ender_kwh"
    resource: http://IP_OF_VERA:3480/data_request?id=variableget&DeviceNum=YOUR_DEVICE_NUMBER&serviceId=urn:micasaverde-com:serviceId:EnergyMetering1&Variable=KWH
    method: GET
    unit_of_measurement: kWh
    device_class: energy
    state_class: total_increasing
1reaction
Abruzzi04commented, Apr 8, 2022

Então essa conversa ficou um pouco fora do assunto. Você poderia usar os fóruns da comunidade para conversas gerais e suporte? Obrigado👍

you’re right. I apologize

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuration - Home Assistant Community
Extract vera switch energy attributes into sensors ... What a shame! One wonders what argument dictates this direction: " In the August 2021 ......
Read more >
Implement integrated energy monitor in Vera for in switches ...
Proposed change Add integrated power/energy meter back in as independent sensors for the Vera ... Extract vera switch energy attributes into sensors #53325....
Read more >
Home Assistant Energy Dashboard With Vera/Z-Wave Sensors
Setting up the Home Assistant Energy Dashboard to work with power / energy sensors on a Vera Z-Wave controller.
Read more >
Transferring my Z-Wave Network to Home Assistant from Vera
I've been running Z-wave devices with my veralite for several years. I decided to transfer my Z-Wave network to Home Assistant.
Read more >
SiteSensor - Plugin for Vera Home Automation Controllers
The Alternate App Store is the best way to get SiteSensor. ... limited to responding to certain properties of simple devices, like sensors...
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