Interlocking devices
Posted: Monday 06 June 2016 22:18
Hi all,
New to Domoticz, but have run a Raspberry PI v2 for 2+ years linked with LightwaveRF and home-brew/adapted PHP, Python and Ruby scripts controlling various aspects.
I'm actively looking at switching to Domoticz, and have invested in a Raspberry Pi v3 and RFXCom433E.
So far, got it installed and talking to one lightwave device, and a Somfy Rollixo RTS, which is where this next question comes from.
The raspberry pi "knows" when the alarm is set, based upon a digital input on the PiFace board.
Is there an easy way to "interlock" a device, i.e. the following logic:
if (alarmSet()) {
disableGarageDoorButton();
else if (alarmUnset()) {
enableGarageDoorButton();
}
An alternative, would be to intercept the button click for "Open" and NOT take any action if the alarm is current set/armed. This will prevent any "accidental" triggering of the alarm by fumbling the door open button!
I'm guessing it might be possible via a Lua script, but I have no idea where to start and what's the *best* approach for this.
Thanks in advance.
New to Domoticz, but have run a Raspberry PI v2 for 2+ years linked with LightwaveRF and home-brew/adapted PHP, Python and Ruby scripts controlling various aspects.
I'm actively looking at switching to Domoticz, and have invested in a Raspberry Pi v3 and RFXCom433E.
So far, got it installed and talking to one lightwave device, and a Somfy Rollixo RTS, which is where this next question comes from.
The raspberry pi "knows" when the alarm is set, based upon a digital input on the PiFace board.
Is there an easy way to "interlock" a device, i.e. the following logic:
if (alarmSet()) {
disableGarageDoorButton();
else if (alarmUnset()) {
enableGarageDoorButton();
}
An alternative, would be to intercept the button click for "Open" and NOT take any action if the alarm is current set/armed. This will prevent any "accidental" triggering of the alarm by fumbling the door open button!
I'm guessing it might be possible via a Lua script, but I have no idea where to start and what's the *best* approach for this.
Thanks in advance.