I was able to run the script if configured in a different manner.
I read here:
But no mentioning when the script is in a file under packages directory.
Now I set a file with this content
script:
pulse_gate:
sequence:
- service: switch.turn_on
entity_id: switch.xxxx
milliseconds: 600
- service: switch.turn_off
entity_id: switch.xxxx
Assumed that switch.xxxx is a proper entity.
The check_config is not approving my intent, what’s wrong?
I tried different indenting, but I can’t figure why I get
Error loading /var/lib/hass/configuration.yaml: while parsing a block collection
in "/var/lib/hass/packages/pulse_xxxx.yaml", line 4, column 7
expected <block end>, but found '?'
in "/var/lib/hass/packages/pulse_xxxx.yaml", line 5, column 7