I tried to use the attribute off_peak_1 for an automation
this syntax on bold beyond did not work
even as a helper complained about not being a float
any idea to use this value here?
As stated above, templates are not supported in Device conditions. However, attributes cannot be accessed in the comparand of Numeric state conditions either…
You have a couple options:
Use a Numeric state condition but invert the setup so you can access the attribute:
There are other option as well, such as adding a value_template to a Numeric state condition or creating a Template sensor to hold the value from the attribute in a state. But the options above are simpler.