Hi guys,
I’m having some troubles to create a blueprint to send external temperature measurement to my zigbee radiator valves.
Most of the job works except a minor time parameter feature.
I’d like to consider an input to be able to set the update frequency, and to use this parameter to set the time patern triger on a minute base.
I tried the folowing with no parameters, it works :
trigger:
- platform: time_pattern
id: temp_update
minutes: "/5"
Then I tried to expand to this, which doesn’t works :
input:
update_frequency:
name: Update frequency
description: Update frequency
default: 5
selector:
number:
min: 5
max: 30
unit_of_measurement: min
mode: slider
variables:
update_frequency_var: !input update_frequency
trigger:
- platform: time_pattern
id: temp_update
seconds: >-
{{ '/' + (update_frequency_var | string) }}
I also tried a variety of templates but I had no more success.
Any help would be welecome, I’m still not that comfortable with the jinja things
Could someone also explain me why we should sometimes use a variable between the input and the automation use?
Thanks!