I have group helpers set as occupancy sensors for all my rooms. I'd like to be able to change the icons for these entities to a custom icon based on on/off state using Jinja, but none of the options in customize.yaml are working. The icons are all just coming up blank, which makes me think something is happening, just not what is intended.
Formats I've tried:
binary_sensor.lounge_room_occupied:
icon: >-
{{ is_state('binary_sensor.lounge_room_occupied','on') | iif('mdi:sofa','mdi:sofa-outline') }}
binary_sensor.bedroom_occupied:
icon: >-
"mdi:bed-king{{'' if is_state('binary_sensor.bedroom_occupied','on') else '-outline'}}"
binary_sensor.bathroom_occupied:
icon_template: "mdi:bathtub{{'' if is_state('binary_sensor.bathroom_occupied','on') else '-outline'}}"