Just starting playing around with MQTT.
in my configurantion.yaml I have:
mqtt:
broker: 192.168.188.68
username: pi
password: pi
discovery: true
I enabled this automation:
id: Snips_Test
alias: Snips Test
initial_state: ‘on’
trigger:
platform: mqtt
topic: hermes/test/voce
payload: ‘on’action:
- service: snips.say
data:
text: “DONE!”
I publish on it with:
mosquitto_pub -h 192.168.188.68 -u pi -P pi -p 1883 -t "hermes/test/voce" -m "{'payload' : 'on'}"
I subscribing the topic:
mosquitto_sub -h localhost -u pi -P pi -p 1883 -t "hermes/test/voce"
I see the output but the automation is never trigged.
Where I am doing wrong ?