I’m running a custom coded appdaemon app where I listen to brightness changed events for a shelly dimmer 2 device.
Sometimes when I set a new brightness value I get 3 events where I only expected 1 event.
Most of the time it works though.
this is what I use when changing brightness:
await self.call_service(“light/turn_on”, entity_id = entity, brightness=brightness)
I set a brightness value of 247, old value was 214.
it then changes to 247, then back to 214, then finally back to 247?
Here is an example of the problem (log excerpt)
2021-03-10 15:07:03.598632 INFO scullery_pir: on_light_brightness_changed. old='214', new='247', attrib='brightness', entity='light.spots'
2021-03-10 15:07:03.792925 INFO scullery_pir: on_light_brightness_changed. old='247', new='214', attrib='brightness', entity='light.spots'
2021-03-10 15:07:04.210004 INFO scullery_pir: on_light_brightness_changed. old='214', new='247', attrib='brightness', entity='light.spots'
Its not even sure this is a problem with the shelly (integration) as it sometimes happens on a esphome dimmer that I have also.
running shelly4hass 0.2.2 beta 3
hass core-2021.3.3