This commit is contained in:
2022-05-07 10:58:10 +03:00
parent 4272699dc7
commit 245153b49e
7 changed files with 16 additions and 60 deletions
@@ -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