My Ubiquiti UniFi G4 Doorbell Pro has a built-in speaker, but there is no native way of playing a sound via that speaker.
However, thanks to the Ubiquiti’s new Protect API, I found a way to play a sound file, via CMD
on PC:
ffmpeg -re -i "my_sound_file.opus" -c:a copy -f rtp rtp://XXX.XXX.XXX.XXX:XXXX
Is there anyway of doing the same in HomeyScript or Advanced Flow?
I.e. send data via RTP.