Hello
Need some help with the following scenario, can't seem to figure it out on my own.
My stair hallway has 2 circuits, i connected both to their own fibaro double switch (output 1 and sw1 (pulse button) on both modules)
So now I can switch each circuit with its own button, but I wanna switch on both together by triggering either the upper or lower button.
I also want to have the light switch off automatically after a minute. (this is standard functionality in the fibaro double switch)
Is there a solution to have this done with groups or slave functionality? I tried with groups but currently the best I got was alternating light (very fancy but not practical)
If really required I can do a blocky script for this, but I'd rather solve it with basic the network func.
Thx for reading, thanks a lot for helping out
solution for stair hallway
Moderator: leecollings
- Egregius
- Posts: 2582
- Joined: Thursday 09 April 2015 12:19
- Target OS: Linux
- Domoticz version: v2024.7
- Location: Beitem, BE
- Contact:
Re: solution for stair hallway
In my pass2php script that would be:
With that, the lights will follow each other, no mather wath switch is used.
Code: Select all
function lighthalldown(){
global $a,$s,$i;
if($a=='On'){
if($s['lighthallup']=='Off')sw($i['lighthallup'],'On');
}else{
if($s['lighthallup']=='On')sw($i['lighthallup'],'Off');
}
}
function lighthallup(){
global $a,$s,$i;
if($a=='On'){
if($s['lighthalldown']=='Off')sw($i['lighthalldown'],'On');
}else{
if($s['lighthalldown']=='On')sw($i['lighthalldown'],'Off');
}
}
-
- Posts: 12
- Joined: Friday 02 January 2015 17:22
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: solution for stair hallway
thx Egregius, certainly helpful.
anybody has an idea for solving this without the controller/scripting?
anybody has an idea for solving this without the controller/scripting?
- Egregius
- Posts: 2582
- Joined: Thursday 09 April 2015 12:19
- Target OS: Linux
- Domoticz version: v2024.7
- Location: Beitem, BE
- Contact:
Re: solution for stair hallway
What's wrong with scripting?
Oh, in case domoticz is down? How many times does that happen?
Oh, in case domoticz is down? How many times does that happen?
-
- Posts: 12
- Joined: Friday 02 January 2015 17:22
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: solution for stair hallway
Lets account it to previous experiences, but I must admit Domoticz is pretty stable lately.
I put a blocky script in place for the moment.
I put a blocky script in place for the moment.
Who is online
Users browsing this forum: No registered users and 0 guests