Hello everyone. I need you to help me finish this automation that I don’t know how to solve. The first problem I have is that I would like to activate the cinema_mode automation with a voice command that can be from a google-mini or an echo-dot. The other problem I have is with a home theater not responding to the first go command. I try to send a go command every second until the home theater (bdv_n9200w) is on. I hope someone can help me finish this automation and I thank you as always for the help of this forum.
automation:
- alias: modo_cine
trigger:
- platform: state
entity_id: ?? (voice command)
action:
- service: light.turn_off
target:
entity_id:
- light.comedor
- light.led_strip
- service: media_player.turn_on
target:
entity_id: media_player.samsung_tv
- call-service:
service: script.home_theatre
script:
home_theatre:
- wait_template: "{{ is_state('media_player.bdv_n9200w', 'on') }}"
timeout: 10
continue_on_timeout: false
- sequence:
- service: remote.send_command
target:
entity_id: remote.broadlink_m3_comedor
data:
command: b64:JgDsAE4VJBYVEyYVERUnFRMUExQSFBI+ERYmFhEXJRUSAALFThsgFRIWJxMVFCUhCRESFxEXEBQTFxAZIxURFSQYEgACxk8UJhUTFCgTEhYnExIWEhQTFREWDxgTFCYVEhohFxAAAs9MGiMTFBYnFBEWJRcRFhEVEhUTFxAUEhUnFQ8XJxURAALPTxUmFBMUJhUSGSMVExQSFhMdCRURFxAYIhgSFCYWEgACzU8VJRwKGCIYEBglFRIXEBUTFBMWEBYSFyMVExUmGA8AAs9PFCYVEhQlGw8TJRcTFhEUFBMTFRIVExYkFxEUJhURAA0FAAAAAAAAAAAAAAAA
- wait_for_trigger:
- platform: state
entity_id: media_player.bdv_n9200w
to: "on"
for: 3
timeout: "{{ wait.remaining }}"
continue_on_timeout: false