Play sound when switch is on (using Frontpage)
Posted: Friday 17 July 2020 9:14
Hi there,
I'm using Frontpage (which works very nice) and I would like to play a sound when for example a motion sensor is set On.
So when I open Frontpage in the browser, the sound plays on the affected device.
It should be somewhere in the frontpage.js file I think.
if(item.idx == idx_motion && vdata == 'On'){
???????; // play sound when switch is on
}
Does anyone have an idea?
I'm using Frontpage (which works very nice) and I would like to play a sound when for example a motion sensor is set On.
So when I open Frontpage in the browser, the sound plays on the affected device.
It should be somewhere in the frontpage.js file I think.
if(item.idx == idx_motion && vdata == 'On'){
???????; // play sound when switch is on
}
Does anyone have an idea?