rule:
rule "Siren01ChangeSound"
when
Item Siren01_Set changed to ON
then
Siren01_Sound.sendCommand(0x04)
logInfo(“SIREN”, “Sirene Sound Police Car is played”)
Thread::sleep(5000)
sendCommand(Siren01, OFF)
sendCommand(Siren01_Set, OFF)
end
Hey Paul - were you able to get this working? I’m trying to accomplish the same thing, and I’m running into similar challenges. I’m also using OpenHAB2 with the Dome Wireless Siren.
I’m a little confused about this. I’m interested in the resolution because I have a couple Dome sirens that I haven’t set up yet…
In the case of the Dome siren, the Primary and Secondary Notification sounds are set using config parameters 5 and 6, respectively. How does one update a config parameter from within a rule, as there is no channel to which the update can be sent?
So I actually created a separate thread about this, which is more specific to what I’m trying to do - but the underlying challenge is the same. I’ve provided additional detail about the channels and configuration parameters in that thread, so it’s probably best to not repeat them here. Changing Configuration Parameters from Sitemap
To answer your question, I’m still new at this, but no, I do not think there are any channels defined in the database for the configuration parameters. Pleas see the details in the other thread though, because you may see what you’re looking for, and I may be missing it.