Can I group devices of different types?

Hi there, wonder if different device types can be grouped, and if so how? :thinking: I know there is a Group option but this one only works for the same type of device and you can also create a zone where you can have different types however my idea is to create an automation to turn off things at my kid bedroom like:

  • a Fan
  • a Light
  • a Samsung Tv
  • a FireTv

and those call different services to turn off things

Create a traditional group entity. It’s configured exclusively via YAML.

Be advised that it simply controls on/off for its members. You intend to include media_players whose state can be more than merely on/off so I am not sure the group’s state will always be a correct reflection of its member’s state.

If it fails to work as desired, your other option is to use an Area.

Create a Helper and select “Change device type of a switch”. Change all devices to the same type, then you can group them using Helper.

1 Like

The suggested feature is only able to convert a switch to a different type.

How do you foresee using it with the entities listed by reypm? None are switch entities.

Samsung Tv
1 Like

To combine non-switches (e.g. a light) into a switch group, you can create a template switch like this:

  - platform: template
        friendly_name: "Outdoor Bar Light as Switch"
        unique_id: 'outdoor_bar_light_as_switch'
        value_template: "{{ is_state('light.outdoor_bar_light', 'on') }}"
          service: light.turn_on
            entity_id: light.outdoor_bar_light
          service: light.turn_off
            entity_id: light.outdoor_bar_light