play sound on vibration sensor change

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
Basssment
Posts: 38
Joined: Thursday 18 October 2018 14:04
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.9700
Location: netherlands, Kuuk
Contact:

play sound on vibration sensor change

Post by Basssment »

Hi guys,

I use the latest version of dashticz and would like to have my doorbell ringing on my tablet as the virbation sensor since this is connected to my doorbell.
Now i am using the following:

blocks[scene_deurbel_aan]['playsound"] = 'sounds/door_bell.mp3';

Wich works on change of the sensor (it has options of/vibration/tilt/Drop)
but when my page reloads i also hear the doorbell as it looks like the status of the sensor changes.i only want the doorbell sound on the change to vibration. How can i create this so i do not have to much false positive doorbel sounds :)

Tried the following but this does not work.
blocks[scene_deurbel_aan]['playsoundVibration'] = 'sounds/door_bell.mp3';

Thank you for thinking with me :)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest