Automation rule: how to toggle a mqtt lamp using a mqtt switch

Hi,

I found no solution to implement a probably very easy request:
I want to create an automation between an input button and a lamp to toggle:

  • input button: zigbee2mqtt/0xAAAABBBBCCCCDDDD {‘action’: ‘single_right’, ‘battery’: 100, ‘click’: ‘right’, ‘linkquality’: 34, ‘voltage’: 3005}
  • output: MQTT Publish shellies/shelly1-11112222333/relay/(on/off)

How would a working solution in /config/automations.yaml would look like.

Thanks a lot!