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.

"Invalid config" error when using nested groups

See original GitHub issue

When I attempt to configure powercalc with nested groups, I get an “Invalid config” error. The readme says “Each entry under entities can use the same configuration as when defined directly under sensor”, so this seems like a bug. Here is the error:

2022-01-03 21:46:44 ERROR (MainThread) [homeassistant.config] Invalid config for [sensor.powercalc]: [create_group] is an invalid option for [sensor.powercalc]. Check: sensor.powercalc->entities->0->create_group. (See /config/configuration.yaml, line 498). Please check the docs at https://github.com/bramstroker/homeassistant-powercalc

Here’s an example of the type of config I am trying to use:

sensor:
  - platform: powercalc
    create_group: Total
    entities:
      - create_group: All Lights
        entities:
          - entity_id: light.living_room
          - entity_id: light.kitchen
          - entity_id: light.hallway
      - entity_id: switch.tv
      - entity_id: switch.pc
      - entity_id: switch.freezer

This would create two groups: one that contains only the lights, and another that contains the lights as well as the other devices.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
bramstrokercommented, Jan 13, 2022

Release in v0.15.0-beta.2

1reaction
bramstrokercommented, Jan 4, 2022

This is not a bug because nesting has never been implemented.

I agree this would be a nice addition though. Not sure about the feasibility yet, need to have a look into that.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Nested groups - Configuration - Home Assistant Community
I get this message: Invalid config for [group]: Entity ID group.working.room.lights is an invalid entity ID for dictionary value @ data['group'][ ...
Read more >
Current handling of groups leaves room for user error/confusion
We can configure sibling groups. Yabeda.configure do group :g1 # config group :g2 # config end. or attempt to have nested groups.
Read more >
LDAP Nested Groups Fail Due to BaseDN and FQDN mismatch
Nested Group Memberships are not reflected in Confluence, despite using the correct configuration, and having it properly setup in LDAP.
Read more >
LDAP/AD nested groups problem - Grafana Community
The error says that the configured ldap groups cannot be found. Please use ldapsearch tool or similar to verify what information you get...
Read more >
Technical Tip: LDAP Nested Group settings and chan...
Description This article describes how to modify the LDAP Nested group settings. In order to authenticate user via LDAP while the user is ......
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