Sonoff Zigbee (SNZB) Sensors & Switches with Zigbee2MQTT

perfect - have fun with your new wallswitch

As for the SNZB-01 button, I find it easier with a trigger channel:

zigbee2mqtt publishes

payload '{"action":"single","battery":100,"linkquality":48,"voltage":3300}'

so

  Type trigger : action "Action"       
     [ stateTopic="zigbee2mqtt/....", 
     transformationPattern="JSONPATH:$.action"]
rule "ButtonSingle"
when
    Channel "mqtt:topic:mybutton:action" triggered "single"
then