Group on/off error

I have a problem with the Group component: even if one entity is switched on, the group remains switched off. This is the structure of the group.

  cucinamensola_view:
    control: hidden
    view: no
    icon: mdi:door
    name: cucinamensola
    all: true
    entities:
       - binary_sensor.door_window_sensor_158d00015615db
       - binary_sensor.door_window_sensor_158d0001564eff  
       - binary_sensor.door_window_sensor_158d0001565000
       - binary_sensor.door_window_sensor_158d000156508e
       - binary_sensor.door_window_sensor_158d000159ff90
       - binary_sensor.door_window_sensor_158d00015c854b
       - binary_sensor.door_window_sensor_158d00019fbdc6
       - binary_sensor.door_window_sensor_158d0001a3decd
       - binary_sensor.door_window_sensor_158d0001a3e52b

and this is the automation that not work because the group stay always off

- id: 'spottini soffusi'
  alias: spottini soffusi
  trigger:
    platform: state
    entity_id: group.cucinamensola_view
    from: 'on'
    to: 'off'
    for:
      minutes: 1
  action:
    - data:
        brightness: 3
        color_temp: 333
        entity_id: light.spottino1
      service: light.turn_on
    - data:
        brightness: 3
        color_temp: 333
        entity_id: light.spottino2
      service: light.turn_on
    - data:
        brightness: 3
        color_temp: 333
        entity_id: light.spottino3
      service: light.turn_on
    - data:
        brightness: 3
        color_temp: 333
        entity_id: light.spottino4
      service: light.turn_on
    - delay: 0:10
    - data:
        entity_id: light.spottino1
      service: light.turn_off
    - data:
        entity_id: light.spottino2
      service: light.turn_off
    - data:
        entity_id: light.spottino3
      service: light.turn_off
    - data:
        entity_id: light.spottino4
      service: light.turn_off

how could this situation be solved?
thank you

I believe a group will only show as on if all entities are on.

Your group’s list of entities are all indented one space too many (3 instead of 2). Though that’s not your problem. This is:

all: true

Set it to false or leave that key : value pair out (it defaults to false).

From the docs:

all

(boolean)(Optional)Set this to true if the group state should only turn on if all grouped entities are on .

1 Like

The default behaviour is for the group to turn on if any of the listed entities are on. Exception noted in my post above.

1 Like