mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-05-13 19:54:42 +00:00
Fix motion sensor dashboards
This commit is contained in:
@@ -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: '!='
|
||||
|
||||
Reference in New Issue
Block a user