I’m having an issue with my Inovelli blue switch that is controlled via a motion sensor through a home assistant automation - all comms on both devices using zigbee2mqtt. The automation is simple - turn on the light when motion is detected, and turn it off after 30 seconds of occupancy changing back to false. The problem I see is: if I walk in right during the light ramping down to off (it has a slow fade for pleasant-ness), instead of it ramping back up, it seems to freeze at whatever dim level it’s at when I walk in. Like the light.on event somehow instead functions as a “freeze where you’re at” during the ramp down. The ramp down is of course controlled internally by the switch. Everything works fine as long as I don’t trigger motion during a ramp down. Any ideas?
You can have your automation explicitly set the brightness that you want when you turn the light on.
This works to avoid locking in on a dim level - I set it to 100%. I may try to figure out if I can save the current brightness level right before doing the turn-off, to allow restoring to that level if motion occurs during ramp down. Not sure how to do that in the home assistant automation yaml, but might be possible.