I have 2 programs, one with entity in condition with State OFF and another with State ON.
The with OFF gives a green test check but the one with ON does not. Why ???
alias: S1b. Music Shabbat-Jagim - Sunset OFF
description: ''
trigger:
- platform: sun
event: sunset
offset: 0
condition:
- condition: state
entity_id: binary_sensor.jewish_calendar_issur_melacha_in_effect
state: 'off'
action:
- service: media_player.play_media
data:
media_content_id: http://stream.jewishmusicstream.com:8000/ stream/;.m3u
media_content_type: audio/m3u
mode: single
````Preformatted text`
alias: S1b. Music Shabbat-Jagim - Sunset ON
description: ''
trigger:
- platform: sun
event: sunset
offset: 0
condition:
- condition: state
entity_id: binary_sensor.jewish_calendar_issur_melacha_in_effect
state: 'on'
action:
- service: media_player.play_media
data:
media_content_id: http://stream.jewishmusicstream.com:8000/ stream/;.m3u
media_content_type: audio/m3u
mode: single
WITH ON
alias: S1b. Music Shabbat-Jagim - Sunset ON
description: ''
trigger:
- platform: sun
event: sunset
offset: 0
condition:
- condition: state
entity_id: binary_sensor.jewish_calendar_issur_melacha_in_effect
state: 'on'
action:
- service: media_player.play_media
data:
media_content_id: http://stream.jewishmusicstream.com:8000/ stream/;.m3u
media_content_type: audio/m3u
mode: single