Appdaemon Request pass attrributes to turn_off

I’m still having the same old issue with turning off “lights”. They start dimming, but don’t make it all the way down to 0 before they stop. I know that’s not an AD problem. Can we have the ability to pass attributes like Brightness in through the turn_off function in AD? That way as part of the turn_off for a “light” I could just pass in brightness=0 and hopefully pushing that along with a turn off would force it all the way down to 0. There may be other uses for it too, this is just the one I am thinking of currently. And it’s better than issuing a turn_on(entity,brightness=0) immediately followed by a turn_off(entity).

I’m not sure that hass will allow attributes to be passed in as part of a turn_off service call … you could give it a try with the developer tools and let me know if it works.

the turn_off service for lights allows attributes transition and flash.
switch doest allow any attributes.

turn_on with brightness is the only option then.

Good point Rene - as far as I remember turn_off() allows attributes to be passed anyway.

EDIT: Yes it does so you should be ok to try this.

according to the HA service page only transition and flash are valid, but it there is no harm in trying if it also takes brightness :wink: