Hi All, I am having a weird issue with the Blackshome/sensor-light.yaml blueprint. Here is my config for it:
- id: '1738821316615'
alias: New automation
description: ''
use_blueprint:
path: Blackshome/sensor-light.yaml
input:
light_switch:
entity_id: script.mbed_light_on
end_scenes:
- script.mbed_light_off
motion_trigger:
- binary_sensor.4_in_1_sensor_motion_detection_2
time_delay: 0.5
It references these two scripts:
mbed_light_on:
sequence:
- alias: "Turn on MBed light"
service: rest_command.mbed_light_turn_on
mbed_light_off:
sequence:
- alias: "Turn off MBed light"
service: rest_command.mbed_light_brightness
data:
brightness: 0
The scripts and rest commands work exactly as expected. However, when I run the automation I am getting an error : The automation "Sensor Light" (automation.sensor_light) has an unknown action: switch.turn_on. So I added a light and switch to my configuration.yml and that fixed it, even though I didn't change the settings of the automation at all. How does the automation, which is only referencing the scripts, start working when I add two devices that it's not configured for?