hi @armedad
sorry fo replying late, i was away…
thanx , i know the usage of a number helper, but i see it much complicated to define a “global” helper “somewhere” else then the automation-script, just to use a variable or constant only for such automation?
i had expected something simple like in a declaration of variables in VB “Dim strVariable as String” whatever… .honestly i need more a constant than a variable… but only withing this automation…
i had tried to use something like described here…
variables:
var_disklimit: 40
to reuse var_disklimit
in code… but it fails even by saving automation with the following error
i had tired the following as well, but with same error…
declaration:
var_disklimit: ‘40’
var_disklimit: 40
usage:
{{var_disklimit}}
{{var_disklimit}} | float
herer the extract (beginning) of my automation…
alias: Disc Usage Warning v3
description: variable usage
variables:
var_disklimit: 40
trigger:
- platform: time
at: sensor.last_boot
- platform: time_pattern
seconds: "6"
enabled: false
condition: []
action:
- service: notify.notify
data:
title: |
{% if states('sensor.disk_use_percent_config') | float > {{var_disklimit}} | float %}
...