Swifty wrote:@theo69 - I did think about that, but when I clicked the gateway doorbell sound device to 'Off' while the sound was playing it stopped the sound mid-playback.
I guess I could time the playback and set the off delay accordingly - but I figured the device should go back to 'off' once the sound finished by it's self?
@chatainsim - Sure, I will try and detail what I've done slightly more once I return home later.
Forget about blocky this doesn't fit to your need and it doesn't help to learn and understand how domoticz is powerfull...
You need to use a Lua script with :
if devicechanged = this command trigger your script only if the device ? changed of course ! he don't care about which state it was before (On off click long Click etc)
For a doorbell every body have his own way to ring, simple clikc, double click, long clik....
You start point have to be :
if devicechanged['xiaomiroundswitchbutton'] then
commendarray['Xiaomi doorbell'] = 'Set level : xx'