Hello everyone,
Today I noticed something strange while trying to debug a script. I’m using the trace for this script, and I noticed the first step in the script is shown above the starting of the script (turned on). This does not seem logical at all, but maybe I am missing something? Here is the yaml for the script, I run it manually for debugging.
alias: TV kijken
sequence:
- service: remote.send_command
target:
entity_id: remote.rm_pro_plus
data:
device: radio
command: cd
alias: Stereo aanzetten (cd)
- delay:
hours: 0
minutes: 0
seconds: 2
milliseconds: 0
- service: remote.send_command
target:
entity_id: remote.rm_pro_plus
data:
device: radio
command: tvsound
alias: Stereo op tv geluid (tv-sound)
- service: switch.turn_on
target:
entity_id:
- switch.stopcontact_tv_woonkamer
data: {}
alias: TV schakelaar aanzetten
- service: media_player.turn_off
target:
entity_id: media_player.woonkamer_stereo
data: {}
alias: Woonkamer stereo uitzetten
- alias: >-
Als script niet wordt gestart vanuit playstation script, dan volume
regelen
if:
- condition: not
conditions:
- condition: template
value_template: " {{ from_playstation }}"
alias: Testen of variabele niet bestaat
then:
- service: script.stereo_volume_regulier
data: {}
alias: Script 'Volume regulier' starten
mode: single
I also added a screenshot of the trace.
Does anybody have some guidance maybe?
Thanks everybody!!