I recent decided to explore Scenes and Transitions -- previously, my Rule Machine rules just set the lights they needed directly, which was a pain when I wanted to change something. I also like being able to semi-gradually change the lighting level rather than having the lights, say, snap to full brightness as soon as the TV turns off.
However, I'm having some issues (and a low WAF) from the fact that the levels chosen by the Scene Transition don't appear to be consistently moving in the right direction, leading the lights to brighten, dim, brighten again, and so on. They end up at the right level when all is said and done, but the path looks like a drunken sailor.
Consider this transition: The rule first sets a scene where the lights are at 20%, then transitions to another where they're at 50%:
2022-03-01 09:45:20.018 pm info Living Room Lights was turned on
2022-03-01 09:45:20.016 pm info Living Room Lights was set to 50
2022-03-01 09:45:16.722 pm info Living Room Lights was turned on
2022-03-01 09:45:16.719 pm info Living Room Lights was set to 47
2022-03-01 09:45:15.989 pm info Living Room Lights was turned on
2022-03-01 09:45:15.986 pm info Living Room Lights was set to 45
2022-03-01 09:45:15.176 pm info Living Room Lights was turned on
2022-03-01 09:45:15.173 pm info Living Room Lights was set to 42
2022-03-01 09:45:14.304 pm info Living Room Lights was turned on
2022-03-01 09:45:14.258 pm info Living Room Lights was set to 40
2022-03-01 09:45:13.491 pm info Living Room Lights was turned on
2022-03-01 09:45:13.488 pm info Living Room Lights was set to 42
2022-03-01 09:45:12.552 pm info Living Room Lights was turned on
2022-03-01 09:45:12.550 pm info Living Room Lights was set to 31
2022-03-01 09:45:11.058 pm info Living Room Lights was turned on
2022-03-01 09:45:11.055 pm info Living Room Lights was set to 37
2022-03-01 09:45:10.362 pm info Living Room Lights was turned on
2022-03-01 09:45:10.360 pm info Living Room Lights was set to 30
2022-03-01 09:45:09.856 pm info Living Room Lights was turned on
2022-03-01 09:45:09.854 pm info Living Room Lights was set to 21
2022-03-01 09:45:09.081 pm info Living Room Lights was turned on
2022-03-01 09:45:09.078 pm info Living Room Lights was set to 35
2022-03-01 09:45:08.507 pm info Living Room Lights was turned on
2022-03-01 09:45:08.479 pm info Living Room Lights was set to 32
2022-03-01 09:44:54.217 pm info Living Room Lights was turned on
2022-03-01 09:44:54.214 pm info Living Room Lights was set to 30
2022-03-01 09:44:53.476 pm info Living Room Lights was turned on
2022-03-01 09:44:53.474 pm info Living Room Lights was set to 21
2022-03-01 09:44:52.884 pm info Living Room Lights was turned on
2022-03-01 09:44:52.858 pm info Living Room Lights was set to 35
2022-03-01 09:44:51.913 pm info Living Room Lights was turned on
2022-03-01 09:44:51.912 pm info Living Room Lights was set to 20
2022-03-01 09:44:17.570 pm info Living Room Lights was turned on
2022-03-01 09:44:17.568 pm info Living Room Lights was set to 20
2022-03-01 09:43:59.552 pm info Living Room Lights was turned on
2022-03-01 09:43:59.545 pm info Living Room Lights was set to 20
It almost looks like there might be two transitions happening at the same time here, except that the logs only show a single invocation of this transition.
Another of the involved devices is mostly smooth, but is interesting because it reports some of the steps as [digital] and others as [physical], when I guarantee no one was touching the physical buttons. But even assuming the device were doing something weird, not even the digital steps are smooth:
2022-03-01 09:45:22.204 pm info Mantle Lights was set to 50% [digital]
2022-03-01 09:45:19.619 pm info Mantle Lights was set to 47% [digital]
2022-03-01 09:45:15.835 pm info Mantle Lights was set to 41% [digital]
2022-03-01 09:45:14.175 pm info Mantle Lights was set to 50% [digital]
2022-03-01 09:45:08.126 pm info Mantle Lights was set to 38% [physical]
2022-03-01 09:44:52.769 pm info Mantle Lights was set to 37% [physical]
2022-03-01 09:44:50.681 pm info Mantle Lights was set to 31% [digital]
2022-03-01 09:44:43.369 pm info Mantle Lights was set to 30% [physical]
2022-03-01 09:44:40.903 pm info Mantle Lights was set to 21% [digital]
2022-03-01 09:44:27.426 pm info Mantle Lights was set to 20% [physical]
2022-03-01 09:44:26.358 pm info Mantle Lights was set to 15% [digital]
2022-03-01 09:44:04.113 pm info Mantle Lights was set to 12% [physical]
2022-03-01 09:44:03.955 pm info Mantle Lights was set to 11% [digital]
What am I missing here?