hi can someone help with this automation. it trigger and work fine, i just cant get the conditions to work. it triggers no matter what the state of the current activity. i only want it to trigger if the state is equal to one of the states in the conditions.
doorbell_tv.yaml (1.4 KB)
- alias: 'doorbell video tv'
trigger:
- platform: state
entity_id: binary_sensor.ring_15_wroot_road_ding
condition:
condition: or
conditions:
- condition: state
entity_id: sensor.current_activity
state: 'DVD On Projector'
- condition: state
entity_id: sensor.current_activity
state: 'DVD On TV'
- condition: state
entity_id: sensor.current_activity
state: 'Movies On Projector'
- condition: state
entity_id: sensor.current_activity
state: 'Movies On TV'
- condition: state
entity_id: sensor.current_activity
state: 'Sky On Projector'
- condition: state
entity_id: sensor.current_activity
state: 'sky On TV'
action:
- service: tts.google_say
entity_id: media_player.mpd
data:
message: aalexa....................show me my front door camera
- service: script.turn_on
data:
entity_id: script.tv_pause_script
- service: script.turn_on
data:
entity_id: script.tv_switch_to_fire_tv_script
- service: script.turn_on
data:
entity_id: script.turnon_fire_tv_script
- delay: 00:00:15
- service: script.turn_on
data:
entity_id: script.tv_switch_back_to_what_was_on_script
- delay: 00:00:05
- service: script.turn_on
data:
entity_id: script.tv_play_script