Hello
I’ve had a couple of automations that have worked flawlessly for years, till recently. 1 is my landing hue light is on low, till motion is detected when it goes brighter, then after a certain time with no motion, it dims down. Recently it has stopped getting brighter when motion is detected. Does anyone know what could have changed please?
I have started to get this error
2022-02-16 16:01:33 ERROR (MainThread) [homeassistant.components.automation.landing_light_back_to_normal_brightness] Landing light back to normal brightness: Error executing script. Error for call_service at pos 1: Error rendering data template: TypeError: 'int' object is not iterable
2022-02-16 16:01:33 ERROR (MainThread) [homeassistant.components.automation.landing_light_back_to_normal_brightness] Error while executing automation automation.landing_light_back_to_normal_brightness: Error rendering data template: TypeError: 'int' object is not iterable
- alias: Landing Light Bright on motion
initial_state: 'on'
trigger:
platform: state
entity_id: binary_sensor.stairs
from: 'off'
to: 'on'
condition:
- condition: state
entity_id: light.landing
state: 'on'
action:
- service: light.turn_on
entity_id: light.landing
data_template:
brightness: '{{ ((states.light.landing.attributes.brightness or 0) + 150) | min(255) }}'