I’m trying to have one light turn on and adjust it self to the same brightness as another light, when that light is turned on, or the brightness is changed. This isn’t working. I broken it out and gotten it to work with just a normal brightness service call in the third action, but as soon as I put in the data_template it doesn’t go beyond just turning on. What isn’t right about this? Thanks!
my log is giving me this error when I run the automation:
2017-12-29 15:51:37 ERROR (MainThread) [homeassistant.core] Invalid service data for light.turn_on: expected int for dictionary value @ data[‘brightness’]. Got ‘‘99’’
I think it was the lack of quotes that was causing the errors and crashing HA. I added them back in and it booted, but the automation still doesn’t work. Still getting this error:
2017-12-29 18:40:32 ERROR (MainThread) [homeassistant.core] Invalid service data for light.turn_on: expected int for dictionary value @ data[‘brightness’]. Got ‘‘99’’
This is the line I have in there:
brightness: ‘{{ states.light.cabinet_one.attributes.brightness | int }}’
alright, so, thinking that maybe it was a problem with the switch it’s trying to pull the data, I’ve now tried a different switch, and a smart bulb, but neither worked and I’m still getting this error:
2017-12-29 20:47:17 ERROR (MainThread) [homeassistant.core] Invalid service data for light.turn_on: expected int for dictionary value @ data[‘brightness’]. Got ‘‘25’’
I don’t understand what the error is saying. It’s expecting ‘int’, which is an integer. It 'Got “25” '… which is an integer… soooooo, what’s the problem!!! I’m not sure what it means by ‘dictionary value’