Fix motion sensor dashboards

This commit is contained in:
2022-06-11 16:46:22 +03:00
parent 85b6d36f70
commit 28b3dda4d9
5 changed files with 15 additions and 25 deletions
@@ -54,11 +54,13 @@ card:
entity: sensor.average_humidity
- type: custom:button-card
template: v3_badge_icon
entity: sensor.active_motion_sensors
entity: group.all_motion_sensors
icon: |
[[[
return entity.state === 0 ? 'mdi:motion-sensor-off' : 'mdi:motion-sensor';
return entity.state === 'off' ? 'mdi:motion-sensor-off' : 'mdi:motion-sensor';
]]]
tap_action:
action: more-info
state:
- value: 0
operator: '!='