I’m trying to get this script work but with no luck, I keep getting an error: Message malformed: Integration ‘’ not found
alias: Test nested whiles
sequence:
- repeat:
while:
- condition: state
entity_id: binary_sensor.withings_in_bed_mohamed
state: 'on'
sequence:
- repeat:
while:
- condition: state
entity_id: binary_sensor.withings_in_bed_mohamed
state: 'on'
sequence:
- service: media_player.play_media
target:
entity_id: media_player.office_echo_dot
data:
media_content_type: custom
media_content_id: Simon says "hi"
- delay:
seconds: 2
- wait_for_trigger:
- platform: state
entity_id: binary_sensor.withings_in_bed_mohamed
to: 'on'
timeout: "00:00:20"
continue_on_timeout: false
mode: single
icon: mdi:alarm
What I’m trying to do?
I want the script to keep setting alarms to my Amazon echo until I get out of bed. But if I went to bed again within an hour it will do that all over again.