I am seeing this error now:
ERROR (MainThread) [homeassistant.core] Invalid service data for light.turn_on: expected int for dictionary value @ data[‘brightness’]. Got ‘’
I am using an ISY994 and I see it as a result of this (and other) automations
- alias: Fix Livingroom 3-way
hide_entity: True
trigger:
platform: state
entity_id: light.living_room_lights
action:
service: homeassistant.turn_on
entity_id:
- light.living_room_lights_2
data_template:
brightness: '{{ trigger.to_state.attributes.brightness }}'
When I look at the web interface in HA, when the light is off, I do not see a brightness attribute on ‘light.living_room_lights’. When I turn it on, I see one pop up at 255. I think, what is happening is that sometimes the automation runs before the attribute actually updates. I believe the reverse sometimes actually happens.
I guess I could try implementing a small delay to see if that is really the problem. This worked before. I believe I was on .36 then.