dahua icon indicating copy to clipboard operation
dahua copied to clipboard

Service call to play audio tone

Open Sian-Lee-SA opened this issue 2 years ago • 2 comments

I had just received the IPC-HDW3649H-AS-PV-ANZ today and deployed your integration and things seem good, the Light Alarm (red blue) works and the siren (although I had to restart Home Assistant for this switch to show) so kudos on all that!

As I continue to play around with the device and it's webpage, I've succesfully uploaded custom "Alarm Tones" and played them via the web interface. My request would to have a service call where I could play these tones (depending on name, id or whatever) directly from Home Assistant.

I figured I could implement this by reviewing your code and cross reference with the network tab on the browser but would appreciate if this was native to your integration.

image

FWIW: The siren seems to use the alarm.wav file

Sian-Lee-SA avatar Jul 27 '23 10:07 Sian-Lee-SA