I created a script with the UI. Once it was working I editted scripts.yaml directly to add another two scripts based on the first one. But the manually editted ones didn’t appear on the dashboard.
So I created another script using the UI. That one appears too, but my others don’t. I can’t see any difference in syntax etc between the ones that appear and the ones that don’t. I’m sure I’m missing something obvious.
This is my entire scripts.yaml:
my_test_script:
alias: My Test Script
sequence:
- service: rest_command.close_blind_01
data:
blind_id: "01"
mode: single
close_blind:
alias: Close blind
sequence:
- service: rest_command.close_blind
- data:
blind_id: "02"
mode: single
open_blind:
alias: Open blind
sequence:
- service: rest_command.open_blind
- data:
blind_id: "02"
mode: single
my_new_script:
alias: My New Script
sequence:
- service: rest_command.open_blind_01
data:
blind_id: "01"
mode: single
my_test_script and my_new_script appear on the dashboard, but the others don’t. Neither are they available as an option in the ‘Scripts’ section when I create a new dashboard.
What am I missing, and/or how do I debug this?