Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type: markdown
- content: >-
- {%- set list_exclude = ['media_player.bravia_kdl_46hx855',
- 'media_player.tv_samsung_tv_q85_series_55'] -%}
- {%- set devices = namespace(id=[]) -%}
- {%- for item in states -%}
- {%- if item.entity_id not in list_exclude and
- item.state == 'unavailable' and
- not ( item.entity_id.startswith('switch.') and item.entity_id.endswith('_shuffle_switch')) and
- not ( item.entity_id.startswith('switch.') and item.entity_id.endswith('_repeat_switch'))
- -%}
- {%- set devices.id = devices.id + [device_id(item.entity_id)] -%}
- {%- endif -%}
- {%- endfor -%}
- {%- for device in devices.id | unique -%}
- - {{ device_attr(device, 'name' ) + "\n"}}
- {%- endfor -%}
- title: Device non disponibili
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement