Hi.
I’m having some problems with a mqtt.publish script for the xiaomi smoke detector.
I want to write a script to test the detector as it is explained here.
However, I can’t make the payload string to work.
I’m sure I’m missing a quotation mark or something like that, but I’m clueless right now.
If anyone could help me, I would appreciate it very much.
smoke_test:
alias: Smoke test
sequence:
service: mqtt.publish
data:
topic: zigbee2mqtt/0x000000000000/set
payload: "{"selftest": ""}"