How can I find entities with state ON in a group from a Get Entities node

Let’s say I have an old-style group with mixed entities types:

all_devices:
  name: All House Devices
  entities:
    # Fans
    - fan.guest_room
    # Lights
    - light.guest_room
    # Switches
    - light.bathroom_light_switch_hs200 # turns into light using helpers but really is a switch.bathroom_light_hs200
    # Media Player
    - media_player.fire_tv_living_room

Currently, I have a get_entities node with a huge list of devices comma separated which every 60 min check which ones are one and send me a notification. As I keep adding new smart devices to my home I have to edit the flow and start adding new entities so everything keeps working as it should but this is a nightmare.

Wonder if I can pass the group to the get entities and from there get which entities are ON … need some ideas :thinking:

1 Like

Exactly what I was looking for, thank you