RTTTL Repeat
Posted: 08 Jan 2019, 21:53
Hi,
I'm using ESPEasy with Home Assistant and have a buzzer hooked up and I currently use MQTT to play a tone with PWM. I want to actually use RTTTL so it's not just a continuous droning tone. Is there a way to repeat the sequence until a send MQTT message is received to stop? I want to create a sort of siren/two tone alarm for one condition (Side gate being left open too long etc). I suppose I could just repeat the RTTTL sequence multiple times and then every X second get Home Assistant to re-send the MQTT to start it again but that's not really the most efficient way to do it.
Thanks
Tom
I'm using ESPEasy with Home Assistant and have a buzzer hooked up and I currently use MQTT to play a tone with PWM. I want to actually use RTTTL so it's not just a continuous droning tone. Is there a way to repeat the sequence until a send MQTT message is received to stop? I want to create a sort of siren/two tone alarm for one condition (Side gate being left open too long etc). I suppose I could just repeat the RTTTL sequence multiple times and then every X second get Home Assistant to re-send the MQTT to start it again but that's not really the most efficient way to do it.
Thanks
Tom