Hi @xaviml,
Thank you for your excellent application. I am just wondering what the best way to support the Aqara Smart Knob would be with Z2M. A simple rotation looks like this:
Info MQTT publish: topic 'zigbee2mqtt/smart_knob', payload '{"action":"start_rotating","action_rotation_angle":96,"action_rotation_angle_speed":96,"action_rotation_percent":26.66666603088379,"action_rotation_percent_speed":26.66666603088379,"action_rotation_time":200,"battery":100,"linkquality":99,"operation_mode":"event","voltage":3100}'
Info MQTT publish: topic 'zigbee2mqtt/smart_knob', payload '{"action":"","action_rotation_angle":null,"action_rotation_angle_speed":null,"action_rotation_percent":null,"action_rotation_percent_speed":null,"action_rotation_time":null,"battery":100,"linkquality":99,"operation_mode":"event","voltage":3100}'
Info MQTT publish: topic 'zigbee2mqtt/smart_knob/action', payload 'start_rotating'
Info MQTT publish: topic 'zigbee2mqtt/smart_knob', payload '{"action":"stop_rotating","action_rotation_angle":96,"action_rotation_angle_speed":0,"action_rotation_percent":26.66666603088379,"action_rotation_percent_speed":0,"action_rotation_time":500,"battery":100,"linkquality":99,"operation_mode":"event","voltage":3100}'
Info MQTT publish: topic 'zigbee2mqtt/smart_knob', payload '{"action":"","action_rotation_angle":null,"action_rotation_angle_speed":null,"action_rotation_percent":null,"action_rotation_percent_speed":null,"action_rotation_time":null,"battery":100,"linkquality":99,"operation_mode":"event","voltage":3100}'
Info MQTT publish: topic 'zigbee2mqtt/smart_knob/action', payload 'stop_rotating'
As far as I am aware, I cannot determine the direction of rotation from within controllerx as I do not see any way to access the raw mqtt payload. Is this possible from within controllerx? Do you have a suggestion on how to get this to work? Is this just the result of a poor z2m compatibility with this device?
Thanks,
snalty