Guys, can I get a little help with this automation. It’s supposed to trigger scenes to control my 3 thermostats. The scenes work, but automation is errorring out with:
Error: Error rendering service target template: TypeError: ‘int’ object is not callable
YAML:
alias: Thermostat Schedule
description: ''
trigger:
- platform: time
at: '08:00:00'
- platform: time
at: '09:30:00'
- platform: time
at: '21:30:00'
condition: []
action:
- service: scene.turn_on
target:
entity_id: |-
{% if (now().hour() <21) %}
{% if (now().weekday() < 5) %} scene.weekday_thermostat
{% else %} scene.weekend_thermostat
{% endif %}
{% else %} scene.night_thermostat
{% endif %}
mode: single