I’ve recently migrated all my devices from ZHA to MQTT using a Sonoff stick, and I’m really excited about the possibilities it opens up! One area I’m particularly interested in is automating my soundmakers, especially the sirens. I want to use different melodies for various purposes—like a loud siren for presence-related warnings and a more pleasant bell for my doorbell.
In ZHA, I found a script that allowed me to send specific parameters like melody, duration, and volume through Service Data. It was super handy for varying the noise according to what I needed. Now, I’m trying to figure out how to achieve the same with MQTT. I’ve heard that payload is the way to go, but I’m not entirely sure how to implement it.
I’d love to see some examples of how others have done this. Are there any best practices or tips for structuring the payload to control these parameters effectively? I’m really looking forward to hearing from the community on this! ![]()