That is unfortunately the “official” way to do it. Two other options:
Store values in secrets.yaml
(if you don’t need to change them on the fly):
Use this nifty template entity sensor to store/recall global variables:
That is unfortunately the “official” way to do it. Two other options:
Store values in secrets.yaml
(if you don’t need to change them on the fly):
Use this nifty template entity sensor to store/recall global variables: