Mostly everything in HA accepts a template
But Sun a trigger offset is not accepted I don’t know why
Even it accepted the template in the blueprint from Input selected or Input number
like this example below
input:
Sunrise_Offset:
name: Sunrise Offset
description: Offset time After Sunrise event.
selector:
select:
options:
- label: None
value: "00:00:00"
- label: 15 Min
value: "00:15:00"
trigger:
platform: sun
event: sunrise
offset: !input Sunrise_Offset
# or
input:
hours:
name: Sunrise Offset Hours
description: Offset in Hours After Sunrise event.
selector:
number:
min: 0
max: 6
minutes:
name: Sunrise Offset minutes
description: Offset in minutes After Sunrise event.
selector:
number:
min: 0
max: 59
trigger:
platform: sun
event: sunrise
offset:
hours: !input hours
minutes: !input minutes
seconds: "00"
for that, we need to expand this to helpers like input_number or input_select to be able to control this time from the front end
I don’t understand…
What are you trying to do?
I assume you want to make a blueprint with A trigger at sunrise, but you want to offset that time, Correct?
Why don’t you want to use the time selector?
If you want to know where to make a time helper…
Settings > Devices & Services > Helpers
I assume you want to make a blueprint with A trigger at sunrise, but you want to offset that time, Correct? yes
Why don’t you want to use the time selector? to keep everything fixed not changeable for that I try not use selector
Otherwise why aren’t you doing this as an Automation-Script?
to keep everything simple UI for that I prefer to use a blueprint in case I need to change
my question
Is there a way to use any type of helper to modify the offset in the blueprint without using the sector method?
like import ( input_datetime or input_number or input_select ) State through (variables: ) to blueprint
like this example
A blueprint won’t make it simple. Blueprints are only any good if you want to reuse the same code.
If you want to Hard Code a time, you can.
Why do you want to use variables?
Your Entity’s are both “input_select” which has a string (word) value, so your approach from the beginning just makes everything 100 times harder. you want to use either “input_number.” or preferably “input_datetime.”
But if you must use a “input_select” then use a “choose” function (if functions for templating) to convert from a “string” to “time”.
Ok dear GoodNight
Exactly difficult because using it as a trigger “not part of the action”
According to my reading in many posts Offset in Trigger Sun is unable to templating even in normal Automation for that using elevation or azimuth method to solve this problem
All that can solve by accepting Offset for templating this what I requested in this post