homeassistant-powercalc: nested groups with include area not working

There seems to be a problem with creating nested groups using include area, the following does not create any sensors what so ever:

- platform: powercalc
  create_group: outdoor lights
  entities:
    - create_group: outdoor parking driveway
      include:
        area: parkering_och_uppfart
    - create_group: outdoor ambience
      include:
        area: dekoration_ute

while this does:

- platform: powercalc
  entities:
    - entity_id: light.parking_1

light.parking_1 is in the ‘parkering_and_uppfart’ area, as well as a few other lights of the same model

root@homeassistant:~# hass-cli device list| egrep 'AREA|parkering_och_uppfart'
ID                                NAME                            MODEL                            MANUFACTURER                      AREA
362c7465816d778def1a513c35a884af  parking_1                       TRADFRIbulbE27WSglobeopal1055lm  IKEA of Sweden                    parkering_och_uppfart
8ce5a9bef647894ce65fa27f0f3e46f3  parking_2                       TRADFRIbulbE27WSglobeopal1055lm  IKEA of Sweden                    parkering_och_uppfart
363bcd189cef3277ff236426aa20e86b  parking_3                       TRADFRIbulbE27WSglobeopal1055lm  IKEA of Sweden                    parkering_och_uppfart
root@homeassistant:~#

List of entities:

root@homeassistant:~# hass-cli entity list | egrep "ENTITY_ID|(light|sensor).parking_"
ENTITY_ID                                           NAME                                        DEVICE_ID                         PLATFORM             CONFIG_ENTRY_ID                   DISABLED_BY
light.parking_1                                     None                                        362c7465816d778def1a513c35a884af  deconz               2896c6bb57a1acdab6da1d7fba007c63  None
light.parking_2                                     None                                        8ce5a9bef647894ce65fa27f0f3e46f3  deconz               2896c6bb57a1acdab6da1d7fba007c63  None
light.parking_3                                     None                                        363bcd189cef3277ff236426aa20e86b  deconz               2896c6bb57a1acdab6da1d7fba007c63  None
sensor.parking_1_power                              None                                        362c7465816d778def1a513c35a884af  powercalc            None                              None
sensor.parking_1_energy                             None                                        362c7465816d778def1a513c35a884af  powercalc            None                              None
root@homeassistant:~#

About this issue

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

Most upvoted comments

Yep! That solved the problem, great work!

Thanks for providing the additional information, very useful. Will see if I can reproduce with this new findings. I am afk for a bit, so will probably be sunday I can have a look.