Group reports Unknown State instead of On/Off

I created a group within groups.yaml , but the state reports as Unknown. I’ve ensured the sensor reports status as On/Off. Does anyone know how to get the group to report On/Off?

bypass:
  name: Bypass Alert
  icon: mdi:alert
  entities:
    - sensor.monoprice_laundry_room_window_bypass
    - sensor.monoprice_basement_north_window_bypass
    - sensor.monoprice_basement_south_window_bypass
    - sensor.monoprice_office_north_window_bypass
    - sensor.monoprice_office_south_window_bypass
    - sensor.monoprice_patio_window_bypass
    - sensor.monoprice_living_room_window_bypass
    - sensor.monoprice_dining_room_window_bypass
    - sensor.monoprice_basement_backyard_door_bypass
    - sensor.monoprice_basement_frontyard_door_bypass
    - sensor.monoprice_front_door_bypass
    - sensor.monoprice_side_door_bypass

I suggest you change all of them from sensors to binary_sensors. A group of binary_sensors correctly reports it’s state as being on or off.

Speaking of “on or off”, that’s how Home Assistant stores those two states, all the letters are in lowercase. Those names have special meaning for Home Assistant.

Your sensors are storing two states called “On and Off” (using propercase). For Home Assistant, those aren’t the equivalent of on and off and have no special meaning.

1 Like

Thanks @123 ! Corrected my template sensors to report on/off state in lowercase and all is working now.

1 Like