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.

Groups don't create daily/weekly/monthly energysensors with create_utility_meters: true

See original GitHub issue

Not sure if this is intended behavior or not (or if I’ve misconfigured something - I’m new to all of this), but I’ve noticed that powercalc groups don’t seem to get the daily/weekly/monthly energy sensors that individual devices get.

My config:

 powercalc:
   scan_interval: 00:01:00 #Each minute
   power_sensor_naming: "{} Powersensor"
   energy_sensor_naming: "{} Energysensor"
   create_utility_meters: true

  - platform: powercalc # Bedroom Lights Power Usage Estimation
    create_group: Bedroom Lights
    entities: 
      - entity_id: light.bedroom_ceiling_light_1
        linear:
          min_power: 0.5
          max_power: 9
        standby_usage: 0.3
      - entity_id: light.bedroom_ceiling_light_2
        linear:
          min_power: 0.5
          max_power: 9
        standby_usage: 0.3

This results in all of the expected powersensors, as well as the following expected energy sensors:

sensor.bedroom_ceiling_light_1_energysensor
sensor.bedroom_ceiling_light_1_energysensor_daily
sensor.bedroom_ceiling_light_1_energysensor_weekly
sensor.bedroom_ceiling_light_1_energysensor_monthly

sensor.bedroom_ceiling_light_2_energysensor
sensor.bedroom_ceiling_light_2_energysensor_daily
sensor.bedroom_ceiling_light_2_energysensor_weekly
sensor.bedroom_ceiling_light_2_energysensor_monthly

sensor.bedroom_lights_energysensor

But the following energysensors are not created:

sensor.bedroom_lights_energysensor_daily
sensor.bedroom_lights_energysensor_weekly
sensor.bedroom_lights_energysensor_monthly

This behavior is consistent across all of the groups I’ve set up, not just the Bedroom Lights group I used as an example here.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
bramstrokercommented, Oct 2, 2021

@NCC1941 Yes I see, it’s also broken for me it seems. I’m on it.

1reaction
bramstrokercommented, Oct 1, 2021

This was indeed a bug.

Will be fixed with #298. Doing some final testing now. Also allows you to disable utility meter creation per group. For example:

- platform: powercalc # Bedroom Lights Power Usage Estimation
    create_group: Bedroom Lights
    create_utility_meters: false
    entities: 
      - entity_id: light.bedroom_ceiling_light_1
        linear:
          min_power: 0.5
          max_power: 9
        standby_usage: 0.3
      - entity_id: light.bedroom_ceiling_light_2
        linear:
          min_power: 0.5
          max_power: 9
        standby_usage: 0.3
Read more comments on GitHub >

github_iconTop Results From Across the Web

homeassistant-powercalc/README.md at master - GitHub
This can be used to let powercalc create energy sensors and utility meters. ... Set to true to automatically create utility meters of...
Read more >
Group - Home Assistant
Home Assistant can group multiple binary sensors, covers, fans, lights, locks, media players, switches as a single entity, with the option of hiding...
Read more >
COMPLETE power monitoring for your home! - YouTube
One year ago, Home Assistant introduced Energy Monitoring, but today we look at ultimate power and energy monitoring HACS component.
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