Im trying to a blueprint to trigger lights after dark, however im getting the following error…
Both entities I am using are groups in helpers.
Any ideas? Thanks
Message malformed: Entity entity_id is neither a valid entity ID nor a valid UUID for dictionary value @ data['condition'][1]['entity_id']
description: ""
use_blueprint:
path: homeassistant/motion_light_conditions.yaml
input:
motion_entity: binary_sensor.outdoor_pirs
light_target:
entity_id: light.outdoor_lights
alias: New Automation
and the blueprint.
blueprint:
name: Motion-activated Light After Dark
description: Turn on a light when motion is detected after the sun is below the horizon.
domain: automation
source_url: https://github.com/home-assistant/core/blob/551fb449752e1c3f55eb688d24509876020852d1/homeassistant/components/automation/blueprints/motion_light.yaml
input:
motion_entity:
name: Motion Sensor
selector:
entity:
domain: binary_sensor
device_class: motion
light_target:
name: Light
selector:
target:
entity:
domain: light
no_motion_wait:
name: Wait time
description: Time to leave the light on after last motion is detected.
default: 120
selector:
number:
min: 0
max: 3600
unit_of_measurement: seconds
# If motion is detected within the delay,
# we restart the script.
mode: restart
max_exceeded: silent
trigger:
platform: state
entity_id: !input motion_entity
from: "off"
to: "on"
condition:
- condition: state
entity_id: sun.sun
state: below_horizon
- condition: state
entity_id: !input light_target
state: "off"
action:
- service: light.turn_on
data:
transition: 4
brightness_pct: 60
kelvin: 3000
target: !input light_target
- wait_for_trigger:
platform: state
entity_id: !input motion_entity
from: "on"
to: "off"
- delay: !input no_motion_wait
- service: light.turn_off
target: !input light_target