you’re missing an ending quote
YES!!
What is the purpose of the availability_template?
It sets criteria for when the sensor should be considered available… Legacy template sensor Docs
availability_template: Defines a template to get the
available
state of the entity. If the template either fails to render or returnsTrue
,"1"
,"true"
,"yes"
,"on"
,"enable"
, or a non-zero number, the entity will beavailable
. If the template returns any other value, the entity will beunavailable
. If not configured, the entity will always beavailable
. Note that the string comparison not case sensitive;"TrUe"
and"yEs"
are allowed.
Sensors that are available
return the value of their value_template
as their state, those that are unavailable
return “unavailable” as their state.
It helps prevent errors, especially cascading errors from having an “unknown” or “unavailable” entity upstream.
Okay, thanks and thanks for helping
Thanks everyone for getting this to work