Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% set connected_devices = state_attr('sensor.redmi_9t_bluetooth_connection', 'connected_paired_devices')[1:-1].split(',') %}
- {% set paired_devices = state_attr('sensor.redmi_9t_bluetooth_connection', 'paired_devices')[1:-1].split(',') %}
- {% for device in connected_devices -%}
- {% if device in paired_devices %}
- {{ device }} er tilsluttet
- {% elif loop.last %}
- Intet tilsluttet.
- {%- endif %}
- {%- endfor %}
Add Comment
Please, Sign In to add comment