Trying to figure out how to make my lights increase \ decrease based on the payload in zigbee2mqtt
Every time I turn the know I get an updated level in the payload, so I guess I need to have this a conditional somehow where "if number greater than last, then increase light" and "if number smaller than last then decrease light"
Anyone done an automation like that before ? Couldn't find any good hints in the forums
[2025-03-14 11:15:43] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Stue Rotor', payload '{"action":"brightness_move_to_level","action_group":64257,"action_level":25,"action_transition_time":0,"battery":200,"last_seen":"2025-03-14T10:15:43.126Z","linkquality":61,"update":{"installed_version":22,"latest_version":22,"state":"idle"},"voltage":3300}'