Trying to make a notification sensor

hey guys,

i want to do a notification-sensor that checks the state of various entities or sensors.
problem is that not all of them are on or off.

i want to use the sensor to display a mushroom-chip-card that changes the color if the state is on/off.
guess i´ll make a popup when i tap it that shows what entity is triggering the on-state using auto-entities.

if someone has an idea what´s the best way to use auto-entities to show the entity that trigged the sensor i´d be thankfull :slight_smile:

entitiy/sensor i want to track:

entity: binary_sensor.lueften
state: 'on'

entity: vacuum.roborock_vacuum_s5
state_not: docked

entity: sensor.hacs
state_not: '0'

entity: binary_sensor.home_assistant_versions_update_available
state_not: 'off'

entity: sensor.devices_with_low_battery
 state_not: '0'

entity: fan.ventilator
state: 'on'

entity: switch.adguard_filtering
state: 'off'

entity: switch.mase_pc
state: 'on'

ok got it, now i only need to figure how to use auto-entities :slight_smile:

  - sensor:
      - name: Notification
        unique_id: 'notification'
        icon: mdi:message-badge
        state: |
          {% if is_state('binary_sensor.lueften', 'off') %} on
          {% elif not is_state('sensor.hacs', '0') %} on
          {% elif not is_state('vacuum.roborock_vacuum_s5', 'docked') %} on
          {% elif not is_state('binary_sensor.home_assistant_versions_update_available', 'off') %} on
          {% elif not is_state('sensor.devices_with_low_battery', '0') %} on
          {% elif is_state('fan.ventilator', 'on') %} on
          {% elif is_state('switch.adguard_filtering', 'off') %} on
          {% elif is_state('switch.mase_pc', 'on') %} on
          {% else %}
          off
          {% endif %}