Hi,
I am trying to set my hue dimmer switches to increase/decrease the brightness of the light in the room but the code I’ve implemented is throwing an error:
homeassistant.exceptions.TemplateError: UndefinedError: 'mappingproxy object' has no attribute 'brightness'
This is the code:
- alias: "Increase Brightness of Office"
trigger:
- platform: mqtt
topic: hue/office_switch/buttonevent
payload: '2002'
action:
- service: light.turn_on
entity_id: group.office_light
data_template:
brightness: '{{ states.group.office_light.attributes.brightness + 10 }}'
The light is already on when I hit the switch / get the error. Any suggestions much appreciated.