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.

Grouping entities with group or area.

See original GitHub issue

Hi,

Thanks a lot for your job, it’s really impressive 😃

It could be a good idear to group entities with group or area (today, le HUE intégration create an area with all lights in philips HUE group).

sensor:
  - platform: powercalc
    create_group: All hallway lights
    target : 
        group: group.allway_lights

or

sensor:
  - platform: powercalc
    create_group: All hallway lights
    target : 
        area: Hallway lights

In my case, I already group my room’s lights with HA group integration. I’m fully use Philips HUE light.

Thanks for your time. Juicy

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:21 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
bramstrokercommented, Dec 26, 2021

I have good news. Managed to add support for groups and light groups for the include functionality. Has been merged into master. Will be in release v0.14

1reaction
bramstrokercommented, Nov 21, 2021

Thanks for the release ! 😄 Very happy to test it !

Thanks for testing!

1/ I’ve got an error with the first area : No area with id 'Jardin' found in your HA instance.

I have added support to also specify an area name, not only an ID. So this error should be resolved now.

2/ The second one with the id works but it takes all domains entities like input_select or other and return an error : input_select.lumieres_jardin: Cannot autodiscover model, manufacturer or model unknown from device registry

I have changed the code to only consider lights.

3/ When the integration trying to autodiscover, Philips Hue integration was not ready yet and return the same previous error, then it skip the entity and return en error for the group : Could not create group Lumières de la véranda, no entities resolved

This is not something I can fix. Because the Hue integration was not loaded correctly (or in time), powercalc has no way to know the manufacturer / model for the given entities. So ultimately no entities from the area could be discovered, and the area can therefore not be setup (because there are no entities). So you need to have a look into your issues with the Hue API. Maybe it’s network related? Reset the bridge? etc.

4/ The anchor on the readme related to Area include was wrong : #include-are-entities instead of #include-area-entities.

Fixed

5/ There is a duplicate example on the readme related to Include area entities

Fixed

Read more comments on GitHub >

github_iconTop Results From Across the Web

Areas vs Groups or how to organize and structure?
A group can group anything. Areas can group anything too. That's not quite correct, you can group anything. But areas will only accept...
Read more >
Grouping Entities - SketchUp Help
In LayOut, groups are a way to keep related elements organized in the drawing area. Groups can also make selecting and copying multiple...
Read more >
Grouping Entities Quickly - 2019 - DraftSight Help
To group entities quickly: In the graphics area, specify the entities to group. Right-click, then click Entity Group > Quick Group (or type...
Read more >
Group
The first entity processed from the group takes any resources the group owns. Entities in a group can be grouped into a larger...
Read more >
How to group different entities, groups and sub-groups having ...
I am facing a hard time having design decision for below case. I am creating wireframe for a patient app. The platform 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