I’m trying to create a simple script that sends a remote command via my Broadlink RM4. Every time I try to save it via the UI, it doesn’t show in the Scripts tab. My script:
I’ve tried saving the YAML to scripts/spripts.yaml, but it still doesn’t show in the Scripts tab in the UI, nor as an entity. YAML:
primary_bedroom_fan_high: alias: Primary Bedroom Fan - High sequence: - service: remote.send_command data: num_repeats: 1 delay_secs: 0.4 hold_secs: 0 device: Primary Bedroom Fan command: Fan - High target: entity_id: remote.broadlink_rm4_pro_primary_bedroom mode: single icon: mdi:fan-chevron-up
In configuration.yaml, I have
default_config:, as well as
script: !include scripts/scripts.yaml.
What am I missing?
Edit: I just realized I have scripts.yaml in \config and another scripts.yaml in \config\scripts. The latter has the three scripts that show in the Scripts tab in the UI. The former has the new script I’ve been trying to create. How do I resolve these duplicative scripts.yaml files?