How do I send a payload in Mqtt #18542
fredericf73
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi All
I'm new to zigbee2mqtt and using it in Homeseer
I have a device that i need to send a payload to it ? but i don't know how to achieve it
referencing someone information
#14424 (comment)
Just change the payload sent in MQTT.
🔊 with sound but no strobe:
{"warning": {"duration": 1, "mode": "emergency", "level": "low", "strobe": false, "strobe_duty_cycle": 5}}
🚨with strobe but no sound:
{"warning": {"duration": 1, "mode": "off", "level": "low", "strobe": true, "strobe_duty_cycle": 5}}
the variables of duration and strobe_duty_cycle will be useful to adjust the effect. The duty cycle determines amount of time the light is on or off out of a second.
"10" is on the entire duration.
"8" is on for 0.8 seconds and off for 0.2s.
"5" will be on for 50% of the time and off for 50% of the time. Extend the duration and you have a steady on/off pulsing light.
{"warning": {"duration": 8, "mode": "off", "level": "low", "strobe": true, "strobe_duty_cycle": 5}}
Shorten the duration to the minimum (1s) and lower the strobe_duty_cycle to "1" and you get a nice blink that is 100ms long.
{"warning": {"duration": 1, "mode": "off", "level": "low", "strobe": true, "strobe_duty_cycle": 1}}
Beta Was this translation helpful? Give feedback.
All reactions