kol
1
On start is a component is unavailable it does not exist among components in hassio
How to test its state in script ?
nothing from below condition catch it
- condition: or
conditions:
- condition: state
entity_id: media_player.amazon_tv_stick
state: 'unavailable'
- condition: state
entity_id: media_player.amazon_tv_stick
state: ' '
petro
(Petro)
2
condition: template
value_template: "{{ states('media_player.amazon_tv_stick') == None }}"
kol
3
does not work
sequence:
- condition: or
conditions:
- condition: state
entity_id: media_player.amazon_tv_stick
state: 'unavailable'
- condition: template
value_template: "{{ states('media_player.amazon_tv_stick') == None }}"
- service: logger.set_level
data:
homeassistant.components.media_player: error
homeassistant.components.androidtv.media_player: error
androidtv.adb_manager: error
petro
(Petro)
4
looks like it returns unknown now.
condition: template
value_template: "{{ states('media_player.amazon_tv_stick') == 'unknown' }}"
kol
5
Bingo! Caught it up! ))) Thanks!