Hi everyone,
I’m creating blueprints to remove some of my double code around my installation, especially around motion detection and light handling.
In this case I have created a blueprint for motion where I’m able to set different variables for configuration (activate automation, time interval is should be active etc.).
To code can be found here: https://github.com/kefdk/ha-blueprints/tree/main/presence-light?fbclid=IwAR2BIPqtlwaBNsNLCI74TzhwhCC9Nskyp3R95or-cAwSc6xyXN4xnr2q0q0
When I use the blueprint in an automation it gives me an error:
Blueprint Activate Light on Motion generated invalid automation with inputs
OrderedDict([
('motion_entity', 'binary_sensor.guestbathroom_presence'),
('light_target', OrderedDict([('entity_id', ['light.guestbathroom_ceiling', 'light.guestbathroom_under_sink'])])),
('timer_entity', OrderedDict([('entity_id', 'input_number.guestbathroom_presence_timer')])),
('active_entity', OrderedDict([('entity_id', 'input_boolean.guestbathroom_presence_active')])),
('active_after_entity', OrderedDict([('entity_id', 'input_datetime.guestbathroom_presence_active_after')])),
('active_before_entity', OrderedDict([('entity_id', 'input_datetime.guestbathroom_presence_active_before')]))
]):
Entity ID entity_id is an invalid entity id for dictionary value @ data['condition'][0]['conditions'][0]['entity_id']. Got None
Does anyone have a take on why this error is given? I have read a lot of documentation about blueprints, but can see to find the issue.
Thanks in advance.
/Kristian