Trying to get the opposite of a binary_sensor workday so a holiday (on when is holiday, off when is workday. The below template is wrong. Need help fixing it
value_template: ‘{% if is_state(“binary_sensor.workday”, “on”) off {% else %} on {% endif %}’
{{is_state('binary_sensor.workday_sensor','off')}}
this is true for holidays And weekends though, not sure if thats what you need, but it is what you asked for
Yep that what I need (holiday and weekends are same in my user case: I want to sleep longer and have off some automation (some lights going on early morning)
Edit for me weekend are non working days, sorry for the confusion caused