Input boolean set using sun and time

you’re missing an ending quote

YES!! :+1: :slight_smile:

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 returns True, "1", "true", "yes", "on", "enable", or a non-zero number, the entity will be available. If the template returns any other value, the entity will be unavailable. If not configured, the entity will always be available. 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 :slight_smile:

Thanks everyone for getting this to work :slight_smile: