mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-05-13 19:54:42 +00:00
Use iif
This commit is contained in:
@@ -5,10 +5,10 @@ binary_sensor:
|
||||
friendly_name: Milena Preferences
|
||||
value_template: "{{ is_state('device_tracker.iphone_de_yovcheva', 'home') }}"
|
||||
icon_template: >
|
||||
{% if is_state('device_tracker.iphone_de_yovcheva', 'home') %} mdi:star-settings
|
||||
{% else %} mdi:star-settings-outline
|
||||
{% endif %}
|
||||
|
||||
{{
|
||||
is_state('device_tracker.iphone_de_yovcheva', 'home')
|
||||
| iif('mdi:star-settings', 'mdi:star-settings-outline')
|
||||
}}
|
||||
|
||||
automation:
|
||||
- alias: Preferences · Milena · Enable
|
||||
|
||||
Reference in New Issue
Block a user