I am trying to trigger an automation on an mqtt payload.
My trigger code is
trigger:
- platform: mqtt
topic: home/conservatory/celling_light/setautomation
# Optional
payload: 'ON'
# encoding: ''
but no responce.
Using MQTT SPY the payload data is {“State”:“ON”}
Tried lots of variations for the pay load but none seem to work.
Any idea what I should be using.