Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Person w samochodzie
- - platform: template
- sensors:
- person_w_samochodzie:
- friendly_name: "Person w samochodzie"
- value_template: >
- {% if "50:5F:B5:07:9C:CA (MB-7079CCA)" in state_attr('sensor.sm_g975f_bluetooth_connection', 'connected_paired_devices') -%}
- on
- {% else -%}
- off
- {% endif -%}
- entity_picture_template: >-
- {% if "50:5F:B5:07:9C:CA (MB-7079CCA)" in state_attr('sensor.sm_g975f_bluetooth_connection', 'connected_paired_devices') -%}
- /local/mercedes.jpg
- {% else %}
- /local/parking.jpg
- {% endif %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement