zigpy recently made a change to the values of args and params in the event.data, and I cannot figure out how to fix my automation blueprint to compare the new values.
This is a relevant snippet taken from an Automation Trace of what args used to look like after pressing the dim up button on my zigbee dimmer switch:
command: move
args: '[0, 255]'
This is what args look like now after pressing the dim up button:
command: move
args: '[<MoveMode.Up: 0>, 255]'
This is my comparison that is no longer working:
"{{ 254 if args == [0,255] else 1 }}"
Now that args equals “[<MoveMode.Up: 0>, 255]” instead of “[0,255]”, my comparison to “0” does not return true.
How do I match the 0 or the “MoveMode.Up” constant?