MQTT Trigger Not working

Hi,

I have been struggling for a few days to get my automation to recognise my trigger event. The following automation

trigger:
    platform: mqtt
    topic: "miHome/archie/switch1/cmd"
    payload: "PUSH"
action:
    #service: scene.turn_on
    #entity_id: scene.ArchieSW1    
    service: mqtt.publish
    data: 
      topic: "miHome/archie/mainlight/cmd"
      payload: "ON"
      qos: 1

fails to produce any action either based on what is commented out or an MQTT publish.

I can track the MQTT messages which I know are going through the broker but there is no response from the automation rule.

I may well be missing something obvious but any help would be appreciated.

Thanks

Stuart

Hi,

Schoolboy error - i was missing something obvious.
The switch device was adding a trailing / to the topic - SOLVED!!

Thanks

Stuart