Hey i try to use it too, cause it looks awesome, sadly it’s just not working i have no idee why, maybe somebody could have a look:
Config
id: '1637529339671'
alias: asjnklödsnköjldfs
description: ''
use_blueprint:
path: Sbyx/wake-up-light-alarm-with-sunrise-effect.yaml
input:
light_entity: light.schrank
sunrise_duration: 5
manual_time: '22:16:00'
And Trace:
{
"trace": {
"last_step": "action/1",
"run_id": "5ed2dde219ba157c631c1f657f8a649b",
"state": "running",
"script_execution": null,
"timestamp": {
"start": "2021-11-21T21:16:00.006709+00:00",
"finish": null
},
"domain": "automation",
"item_id": "1637529339671",
"trigger": "time pattern",
"trace": {
"trigger/0": [
{
"path": "trigger/0",
"timestamp": "2021-11-21T21:16:00.007855+00:00",
"changed_variables": {
"this": {
"entity_id": "automation.asjnklodsnkojldfs",
"state": "on",
"attributes": {
"last_triggered": "2021-11-21T21:15:55.330570+00:00",
"mode": "single",
"current": 0,
"id": "1637529339671",
"friendly_name": "asjnklödsnköjldfs"
},
"last_changed": "2021-11-21T21:15:40.225207+00:00",
"last_updated": "2021-11-21T21:15:55.338753+00:00",
"context": {
"id": "20ac517926d158e53ddb7d55766c140a",
"parent_id": "0b660c1026eddf68ca293de0e8a46b40",
"user_id": null
}
},
"trigger": {
"id": "0",
"idx": "0",
"platform": "time_pattern",
"now": "2021-11-21T22:16:00.003790+01:00",
"description": "time pattern"
},
"light_entity": "light.schrank",
"sensor": "none",
"sunrise_duration": 5,
"start_brightness": 1,
"end_brightness": 254,
"range_brightness": 253,
"manual_time": "22:16:00",
"seconds": 300,
"min_mired": 0,
"start_mired": null,
"end_mired": 0,
"tick_time": 1.1857707509881423,
"check_entity": "none"
}
}
],
"action/0": [
{
"path": "action/0",
"timestamp": "2021-11-21T21:16:00.019584+00:00",
"changed_variables": {
"context": {
"id": "b5da3c6369a20d540ee438ce9c0b408b",
"parent_id": null,
"user_id": null
}
},
"result": {
"wait": {
"remaining": null,
"completed": true
}
}
}
],
"action/1": [
{
"path": "action/1",
"timestamp": "2021-11-21T21:16:00.019999+00:00",
"changed_variables": {
"wait": {
"remaining": null,
"completed": true
}
},
"result": {
"wait": {
"remaining": null,
"completed": false
}
}
}
]
},
"config": {
"variables": {
"light_entity": "light.schrank",
"sensor": "none",
"sunrise_duration": 5,
"start_brightness": 1,
"end_brightness": 254,
"range_brightness": "{{float(end_brightness)-float(start_brightness)}}",
"manual_time": "22:16:00",
"seconds": "{{float(sunrise_duration) * 60}}",
"min_mired": 0,
"start_mired": "{{state_attr(light_entity, 'max_mireds')}}",
"end_mired": "{{[state_attr(light_entity, 'min_mireds')|int(0), min_mired|int(0)]|max}}",
"tick_time": "{{float(seconds) / float(range_brightness)}}",
"check_entity": "none"
},
"trigger": [
{
"platform": "time_pattern",
"minutes": "*"
}
],
"condition": [],
"action": [
{
"wait_template": "{{sensor == 'none' or as_timestamp(states(sensor), None) != None}}"
},
{
"wait_template": "{{0 < as_timestamp(states(sensor) if sensor != 'none' else states('sensor.date') ~ ' ' ~ manual_time) - as_timestamp(states('sensor.date_time_iso')) <= float(seconds) and states(check_entity) in ['unknown', 'on', 'home']}}"
},
{
"choose": [],
"default": []
},
{
"condition": "template",
"value_template": "{{sensor == 'none' or as_timestamp(states(sensor), None) != None}}"
},
{
"condition": "template",
"value_template": "{{0 < as_timestamp(states(sensor) if sensor != 'none' else states('sensor.date') ~ ' ' ~ manual_time) - as_timestamp(now()) <= float(seconds) and states(check_entity) in ['unknown', 'on', 'home']}}"
},
{
"choose": [
{
"conditions": [
"{{state_attr(light_entity, 'min_mireds') != None}}"
],
"sequence": [
{
"service": "light.turn_on",
"data": {
"brightness": "{{start_brightness}}",
"color_temp": "{{start_mired}}"
},
"entity_id": "light.schrank"
}
]
}
],
"default": [
{
"service": "light.turn_on",
"data": {
"brightness": "{{start_brightness}}"
},
"entity_id": "light.schrank"
}
]
},
{
"repeat": {
"while": [
"{{sensor == 'none' or as_timestamp(states(sensor), None) != None}}",
"{{0 < as_timestamp(states(sensor) if sensor != 'none' else states('sensor.date') ~ ' ' ~ manual_time) - as_timestamp(now()) <= float(seconds)}}"
],
"sequence": [
{
"delay": "{{tick_time}}"
},
{
"choose": [
{
"conditions": [
"{{0 < state_attr(light_entity, 'brightness') | int(0) < end_brightness | int}}",
"{{sensor == 'none' or as_timestamp(states(sensor), None) != None}}",
"{{0 < as_timestamp(states(sensor) if sensor != 'none' else states('sensor.date') ~ ' ' ~ manual_time) - as_timestamp(now()) <= float(seconds)}}"
],
"sequence": [
{
"choose": [
{
"conditions": [
"{{state_attr(light_entity, 'min_mireds') != None}}"
],
"sequence": [
{
"service": "light.turn_on",
"data": {
"brightness": "{{(float(end_brightness) - (float(range_brightness) * (as_timestamp(states(sensor) if sensor != 'none' else states('sensor.date') ~ ' ' ~ manual_time) - as_timestamp(now())) / float(seconds))) | int(0)}}",
"color_temp": "{{(float(end_mired) + (float(start_mired) - float(end_mired)) * ((as_timestamp(states(sensor) if sensor != 'none' else states('sensor.date') ~ ' ' ~ manual_time) - as_timestamp(now())) / float(seconds))) | int(0)}}"
},
"entity_id": "light.schrank"
}
]
}
],
"default": [
{
"service": "light.turn_on",
"data": {
"brightness": "{{(float(end_brightness) - (float(range_brightness) * (as_timestamp(states(sensor) if sensor != 'none' else states('sensor.date') ~ ' ' ~ manual_time) - as_timestamp(now())) / float(seconds))) | int(0)}}"
},
"entity_id": "light.schrank"
}
]
}
]
}
]
}
]
}
},
{
"choose": [],
"default": []
}
],
"mode": "single",
"max_exceeded": "silent",
"id": "1637529339671",
"alias": "asjnklödsnköjldfs",
"description": ""
},
"blueprint_inputs": {
"id": "1637529339671",
"alias": "asjnklödsnköjldfs",
"description": "",
"use_blueprint": {
"path": "Sbyx/wake-up-light-alarm-with-sunrise-effect.yaml",
"input": {
"light_entity": "light.schrank",
"sunrise_duration": 5,
"manual_time": "22:16:00"
}
}
},
"context": {
"id": "b5da3c6369a20d540ee438ce9c0b408b",
"parent_id": null,
"user_id": null
}
},
"logbookEntries": [
{
"name": "asjnklödsnköjldfs",
"message": "has been triggered by time pattern",
"source": "time pattern",
"entity_id": "automation.asjnklodsnkojldfs",
"context_id": "b5da3c6369a20d540ee438ce9c0b408b",
"when": "2021-11-21T21:16:00.008022+00:00",
"domain": "automation"
}
]
}
Thanks for any help… i’m just lost…
Oo and i can’t see anythink in the log