Hi
I’m getting an error when creating a blueprint automation, and I can’t figure out why?
ERROR (MainThread) [homeassistant.components.automation] Blueprint Light Color by Section of Day generated invalid automation with inputs OrderedDict([(‘target_light’, OrderedDict([(‘entity_id’, ‘light.dining’)]))]): Entity entity_id is neither a valid entity ID nor a valid UUID for dictionary value @ data[‘condition’][0][‘entity_id’]. Got None
The error appears when I go to create the automation, add a light, and then click save.
This is the automation:
blueprint:
name: 'Light Color by Section of Day'
description: 'test'
domain: automation
input:
target_light:
name: Light
selector:
target:
entity:
domain: light
trigger:
- platform: time_pattern
minutes: '1'
condition:
- condition: state
entity_id: !input target_light
state: 'on'
action:
- service: light.turn_on
target: !input target_light
data:
kelvin: 5000
brightness_pct: 10
mode: single
The new automation is saved on the automations.yaml file, but it doesn’t appear on the gui with other automations.
automations.yaml:
- id: '1644357598514'
alias: Light Color by Section of Day -- Dining
description: ''
use_blueprint:
path: perezbalen/light_color_by_section_of_day.yaml
input:
target_light:
entity_id: light.dining
Running: core-2021.12.7
Thanks.