I have made a blueprint out of an automation I have made (which 100 percent works)
Error occurs when I try to make an automation from my blueprint. Can enter all fields, but when to save it makes an error.
blueprint:
name: Motion 3 scenes Guest Auto Light
description: Turn a light on based on detected motion m.m
domain: automation
input:
motion_sensor:
name: Motion Sensor
selector:
entity:
domain:
- binary_sensor
device_class:
- motion
multiple: false
target_light:
name: Light
selector:
target:
entity:
- domain:
- light
lightsensor_entity:
name: Illuminance Sensor
selector:
entity:
domain:
- sensor
device_class:
- illuminance
multiple: false
illuminace_level:
name: Max Illuminance
description: Maximal immuminance level in lux. If illuminance is higher, light
will not be enabled
default: 50
selector:
number:
min: 0.0
max: 5000.0
unit_of_measurement: lux
mode: slider
step: 1.0
circadian_entity:
name: Circadian
description: circadian day and evening.
selector:
entity:
domain:
- switch
multiple: false
circadian_switch:
name: Circadian On/Off
selector:
entity:
domain:
- switch
multiple: false
guest_switch:
name: Guest
selector:
entity:
domain:
- switch
multiple: false
scene_guest:
name: Scene for the Guest
default: scene.none
selector:
entity:
domain:
- scene
multiple: false
scene_morning:
name: Scene for the morning
default: scene.none
selector:
entity:
domain:
- scene
multiple: false
time_scene_morning:
name: Time for the Morning scene
description: A time input which defines the time from which on the scene will
be activated if motion is detected. Default value = scene.none
default: 00:00:00
selector:
time: {}
time_scene_day:
name: Time for the day scene
description: A time input which defines the time from which on the scene will
be activated if motion is detected. Default value = scene.none
default: 00:00:00
selector:
time: {}
scene_dinner:
name: Scene for the dinner
default: scene.none
selector:
entity:
domain:
- scene
multiple: false
time_scene_dinner:
name: Time for the Dinner scene
description: A time input which defines the time from which on the scene will
be activated if motion is detected. Default value = scene.none
default: 00:00:00
selector:
time: {}
time_scene_evening:
name: Time for the Evening scene
description: A time input which defines the time from which on the scene will
be activated if motion is detected. Default value = scene.none
default: 00:00:00
selector:
time: {}
scene_night:
name: Scene for the Night
default: scene.none
selector:
entity:
domain:
- scene
multiple: false
time_scene_night:
name: Time for the Night scene
description: A time input which defines the time from which on the scene will
be activated if motion is detected. Default value = scene.none
default: 00:00:00
selector:
time: {}
trigger:
- platform: state
entity_id: !input motion_sensor
to: "on"
id: "on"
from: "off"
- platform: state
entity_id: !input motion_sensor
to: "on"
for:
hours: 0
minutes: 0
seconds: 1
id: ontid
- platform: time_pattern
seconds: /30
id: sek
- platform: state
entity_id: !input motion_sensor
to: "off"
for:
hours: 0
minutes: 0
seconds: 1
id: off3min
from: "on"
condition:
- condition: numeric_state
entity_id: !input lightsensor_entity
below: !input illuminace_level
action:
- choose:
- conditions:
- condition: time
after: !input time_scene_morning
before: !input time_scene_day
- condition: trigger
id:
- "on"
- ontid
- condition: state
entity_id: !input guest_switch
state: "off"
sequence:
- service: scene.turn_on
data: {}
target:
entity_id: !input scene_morning
- conditions:
- condition: time
after: !input time_scene_day
before: !input time_scene_dinner
- condition: trigger
id:
- "on"
- ontid
- condition: state
entity_id: !input guest_switch
state: "off"
- condition: state
entity_id: !input circadian_switch
state: "on"
sequence:
- service: switch.turn_on
data: {}
target:
entity_id: !input circadian_entity
- service: light.turn_on
data: {}
target:
entity_id: !input target_light
#Circadian OFF
- conditions:
- condition: time
after: !input time_scene_day
before: !input time_scene_dinner
- condition: trigger
id:
- "on"
- ontid
- condition: state
entity_id: !input guest_switch
state: "off"
- condition: state
entity_id: !input circadian_switch
state: "off"
sequence:
- service: switch.turn_off
data: {}
target:
entity_id: !input circadian_entity
- service: light.turn_on
data: {}
target:
entity_id: !input target_light
- conditions:
- condition: time
after: !input time_scene_dinner
before: !input time_scene_evening
- condition: trigger
id:
- "on"
- ontid
- condition: state
entity_id: !input guest_switch
state: "off"
sequence:
- service: scene.turn_on
data: {}
target:
entity_id: !input scene_dinner
#Circadian ON
- conditions:
- condition: time
after: !input time_scene_evening
before: !input time_scene_night
- condition: trigger
id:
- "on"
- ontid
- condition: state
entity_id: !input guest_switch
state: "off"
- condition: state
entity_id: !input circadian_switch
state: "on"
sequence:
- service: switch.turn_on
data: {}
target:
entity_id: !input circadian_entity
- service: light.turn_on
data: {}
target:
entity_id: !input target_light
#Circadian OFF
- conditions:
- condition: time
after: !input time_scene_evening
before: !input time_scene_night
- condition: trigger
id:
- "on"
- ontid
- condition: state
entity_id: !input guest_switch
state: "off"
- condition: state
entity_id: !input circadian_switch
state: "off"
sequence:
- service: switch.turn_on
data: {}
target:
entity_id: !input circadian_entity
- service: light.turn_off
data: {}
target:
entity_id: !input target_light
- conditions:
- condition: time
after: !input time_scene_evening
before: !input time_scene_night
- condition: trigger
id:
- "on"
- ontid
- condition: state
entity_id: !input guest_switch
state: "off"
sequence:
- service: scene.turn_on
data: {}
target:
entity_id: !input scene_night
- conditions:
- condition: trigger
id:
- "on"
- ontid
- condition: state
entity_id: !input guest_switch
state: "on"
sequence:
- service: switch.turn_off
data: {}
target:
entity_id: !input circadian_entity
- service: scene.turn_on
data: {}
target:
entity_id: !input scene_guest
- choose:
- conditions:
- condition: trigger
id:
- sek
- off3min
- condition: state
entity_id: !input motion_sensor
state: "off"
for:
hours: 0
minutes: 0
seconds: 1
- condition: state
entity_id: !input guest_switch
state: "off"
sequence:
- service: light.turn_off
data: {}
target:
entity_id: !input target_light
mode: single
input:
motion_sensor:
name: Motion Sensor
selector:
entity:
domain:
- binary_sensor
device_class:
- motion
multiple: false
target_light:
name: Light
selector:
target:
entity:
- domain:
- light
lightsensor_entity:
name: Illuminance Sensor
selector:
entity:
domain:
- sensor
device_class:
- illuminance
multiple: false
illuminace_level:
name: Max Illuminance
description: Maximal immuminance level in lux. If illuminance is higher, light
will not be enabled
default: 50
selector:
number:
min: 0.0
max: 5000.0
unit_of_measurement: lux
mode: slider
step: 1.0
circadian_entity:
name: Circadian
description: circadian day and evening.
selector:
entity:
domain:
- switch
multiple: false
circadian_switch:
name: Circadian On/Off
selector:
entity:
domain:
- switch
multiple: false
guest_switch:
name: Guest
selector:
entity:
domain:
- switch
multiple: false
scene_guest:
name: Scene for the Guest
default: scene.none
selector:
entity:
domain:
- scene
multiple: false
scene_morning:
name: Scene for the morning
default: scene.none
selector:
entity:
domain:
- scene
multiple: false
time_scene_morning:
name: Time for the Morning scene
description: A time input which defines the time from which on the scene will
be activated if motion is detected. Default value = scene.none
default: 00:00:00
selector:
time: {}
time_scene_day:
name: Time for the day scene
description: A time input which defines the time from which on the scene will
be activated if motion is detected. Default value = scene.none
default: 00:00:00
selector:
time: {}
scene_dinner:
name: Scene for the dinner
default: scene.none
selector:
entity:
domain:
- scene
multiple: false
time_scene_dinner:
name: Time for the Dinner scene
description: A time input which defines the time from which on the scene will
be activated if motion is detected. Default value = scene.none
default: 00:00:00
selector:
time: {}
time_scene_evening:
name: Time for the Evening scene
description: A time input which defines the time from which on the scene will
be activated if motion is detected. Default value = scene.none
default: 00:00:00
selector:
time: {}
scene_night:
name: Scene for the Night
default: scene.none
selector:
entity:
domain:
- scene
multiple: false
time_scene_night:
name: Time for the Night scene
description: A time input which defines the time from which on the scene will
be activated if motion is detected. Default value = scene.none
default: 00:00:00
selector:
time: {}
trigger:
-
platform: state
entity_id: !input motion_sensorto: “on”
id: “on”
from: “off” -
platform: state
entity_id: !input motion_sensor
to: “on”
for:
hours: 0
minutes: 0
seconds: 1
id: ontid -
platform: time_pattern
seconds: /30
id: sek -
platform: state
entity_id: !input motion_sensor
to: “off”
for:
hours: 0
minutes: 0
seconds: 1
id: off3min
from: “on”
condition: -
condition: numeric_state
entity_id: !input lightsensor_entity
below: !input illuminace_level
action:
- choose:
- conditions:
- condition: time
after: !input time_scene_morning
before: !input time_scene_day - condition: trigger
id:- “on”
- ontid
- condition: state
entity_id: !input guest_switch
state: “off”
sequence: - service: scene.turn_on
data: {}
target:
entity_id: !input scene_morning
- condition: time
- conditions:
- condition: time
after: !input time_scene_day
before: !input time_scene_dinner - condition: trigger
id:- “on”
- ontid
- condition: state
entity_id: !input guest_switch
state: “off” - condition: state
entity_id: !input circadian_switch
state: “on”
sequence: - service: switch.turn_on
data: {}
target:
entity_id: !input circadian_entity - service: light.turn_on
data: {}
target:
entity_id: !input target_light
#Circadian OFF
- condition: time
- conditions:
- condition: time
after: !input time_scene_day
before: !input time_scene_dinner - condition: trigger
id:- “on”
- ontid
- condition: state
entity_id: !input guest_switch
state: “off” - condition: state
entity_id: !input circadian_switch
state: “off”
sequence: - service: switch.turn_off
data: {}
target:
entity_id: !input circadian_entity - service: light.turn_on
data: {}
target:
entity_id: !input target_light
- condition: time
- conditions:
- condition: time
after: !input time_scene_dinner
before: !input time_scene_evening - condition: trigger
id:- “on”
- ontid
- condition: state
entity_id: !input guest_switch
state: “off”
sequence: - service: scene.turn_on
data: {}
target:
entity_id: !input scene_dinner
#Circadian ON
- condition: time
- conditions:
- condition: time
after: !input time_scene_evening
before: !input time_scene_night - condition: trigger
id:- “on”
- ontid
- condition: state
entity_id: !input guest_switch
state: “off” - condition: state
entity_id: !input circadian_switch
state: “on”
sequence: - service: switch.turn_on
data: {}
target:
entity_id: !input circadian_entity - service: light.turn_on
data: {}
target:
entity_id: !input target_light
#Circadian OFF
- condition: time
- conditions:
- condition: time
after: !input time_scene_evening
before: !input time_scene_night - condition: trigger
id:- “on”
- ontid
- condition: state
entity_id: !input guest_switch
state: “off” - condition: state
entity_id: !input circadian_switch
state: “off”
sequence: - service: switch.turn_on
data: {}
target:
entity_id: !input circadian_entity - service: light.turn_off
data: {}
target:
entity_id: !input target_light
- condition: time
- conditions:
- condition: time
after: !input time_scene_evening
before: !input time_scene_night - condition: trigger
id:- “on”
- ontid
- condition: state
entity_id: !input guest_switch
state: “off”
sequence: - service: scene.turn_on
data: {}
target:
entity_id: !input scene_night
- condition: time
- conditions:
- condition: trigger
id:- “on”
- ontid
- condition: state
entity_id: !input guest_switch
state: “on”
sequence: - service: switch.turn_off
data: {}
target:
entity_id: !input circadian_entity - service: scene.turn_on
data: {}
target:
entity_id: !input scene_guest
- condition: trigger
- conditions:
- choose:
- conditions:
- condition: trigger
id:- sek
- off3min
- condition: state
entity_id: !input motion_sensor
state: “off”
for:
hours: 0
minutes: 0
seconds: 1 - condition: state
entity_id: !input guest_switch
state: “off”
sequence: - service: light.turn_off
data: {}
target:
entity_id: !input target_light
mode: single
- condition: trigger
- conditions: