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.

Group sensor not working

See original GitHub issue

hello there was a group sensor with all the other sensors inserted after the last two updates it stopped working

This error came from a custom integration.

Logger: custom_components.powercalc.sensor Source: custom_components/powercalc/sensor.py:245 Integration: Powercalc (documentation, issues) First occurred: 00:25:21 (2 occurrences) Last logged: 00:25:21

Could not resolve any entities in group ‘total lights’ Could not resolve any entities in group ‘total’

My config:

 - platform: powercalc
     create_group: total
     entities:
      - entity_id: light.hall_wc
      - entity_id: light.hall_left_2
      - entity_id: light.hall_right_2
      - entity_id: light.candeeiro_de_pe_2
      - entity_id: light.candeeiro_iguana_2
      - entity_id: light.patio
      - entity_id: light.ventilacao_iguana_2
      - entity_id: switch.luz_iguana_2
      - entity_id: switch.heating_iguana_2
      - entity_id: switch.panel_2
      - entity_id: switch.Luz_nocturna_2
      - entity_id: switch.source
      - entity_id: switch.heater_wc_2
      - entity_id: switch.maq_lavar_roupa
      - entity_id: switch.microwave
      - entity_id: switch.fan_2
      - entity_id: switch.bedside_table_socket_2
      - entity_id: switch.extraction_2
      - entity_id: light.ceto_cozinha
      - entity_id: light.bench
      - entity_id: switch.sonoff_10008f3d55

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Ricardoareisscommented, Jul 23, 2022

Thank you very much, it’s solved, I already have all the sensors working, continuation of an excellent work.

A sábado, 23/07/2022, 10:48, Bram Gerritsen @.***> escreveu:

Ok I see. You have to configure the entities completely under your group. Like so.

sensor:

  • platform: powercalc create_group: total entities:
    • entity_id: light.hall_wc linear: calibrate: - 1 -> 0.01 - 10 -> 0.17 - 50 -> 0.88 - 100 -> 1.76 - 255 -> 4.5
    • entity_id: light.hall_esquerda_2 linear: calibrate: - 1 -> 0.01 - 10 -> 0.17 - 50 -> 0.88 - 100 -> 1.76 - 255 -> 4.5
    • entity_id: light.hall_direita_2 #further config

There has been some changes in the group creation why your previously configuration probably worked before, but that method was unsupported, not documented, and could cause several potential issues (for example loading order of yaml matters). The configuration as I listed above is the right way to do it and supported.

When you want to split the total group into more groups have a look here: https://github.com/bramstroker/homeassistant-powercalc#multiple-entities-and-grouping and look for “Nested groups”

— Reply to this email directly, view it on GitHub https://github.com/bramstroker/homeassistant-powercalc/issues/889#issuecomment-1193097323, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWFQTF5Q5HOPSV4GUBDFVRTVVO5W3ANCNFSM54NBDSFA . You are receiving this because you authored the thread.Message ID: @.***>

0reactions
bramstrokercommented, Jul 23, 2022

Ok I see. You have to configure the entities completely under your group. Like so.

sensor:
  - platform: powercalc
    create_group: total
    entities:
     - entity_id: light.hall_wc
       linear:
         calibrate:
           - 1 -> 0.01
           - 10 -> 0.17
           - 50 -> 0.88
           - 100 -> 1.76
           - 255 -> 4.5
     - entity_id: light.hall_esquerda_2
       linear:
         calibrate:
           - 1 -> 0.01
           - 10 -> 0.17
           - 50 -> 0.88
           - 100 -> 1.76
           - 255 -> 4.5
      - entity_id: light.hall_direita_2
        #further config

There has been some changes in the group creation why your previously configuration probably worked before, but that method was unsupported, not documented, and could cause several potential issues (for example loading order of yaml matters). The configuration as I listed above is the right way to do it and supported.

When you want to split the total group into more groups have a look here: https://github.com/bramstroker/homeassistant-powercalc#multiple-entities-and-grouping and look for “Nested groups”

Read more comments on GitHub >

github_iconTop Results From Across the Web

Carbon Black Cloud: Sensor Group is not Applied after Updating
Symptoms. Sensor isn't moved to new sensor group following criteria update and stays in the old sensor group. Cause.
Read more >
Xiaomi Aqara motion sensors group not working - Configuration
If i use a single motion sensor the automation works but as soon as i use the group it does nothing. The group...
Read more >
Echo Occupancy and Vacancy Sensors Not Working as a Group
All of my Echo Occupancy and/or Vacancy sensors are assigned to the same Echo Space, but they are not acting together as a...
Read more >
How To Troubleshoot The Safety Reversing Sensors When ...
Point the sensors at each other - if both sensor LED's turn on, there is an issue with your wiring. Replace the wires...
Read more >
Troubleshooting Microsoft Defender for Identity known issues
For Windows Operating systems 2008R2 and 2012, the Defender for Identity sensor isn't supported in a Multi Processor Group mode.
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