HomeGenie Forum
General Category => Troubleshooting and Support => Topic started by: jjuel15 on November 28, 2016, 08:13:37 PM
-
Hi
I'm trying to control the 2. instance of a fibaro fgs-222, multiinstance swith.
I have tried to control it with a scheduler, and as this didn't work, also with a c# program.
Neither instance 1 or 2 can be controlled(e.g. 20.1/20.2), but the main instance (e.g. 20) is controlable.
Any suggestions what is the problem?
I'm running HG r525 on a raspberryPi II (Debian/wheezy).
-
Hi,
How did you do with scheduler ? Which command did you use in a C# script ?
This information is usefull to help you.
On my side, i use a program to control my instance 2 with a program.
Bye
-
For the scheduler i just made a cron expression for on and one for off, this works fine for a fibaro meter switch, or a tkb switch, but not for the 2. instance of the fgs-222.
In the c# program I have tried these commands:
Modules.InDomain("HomeAutomation.ZWave").WithAddress("20.2").On();
Modules.WithName("UdeStik").On();
Modules.WithName("UdeStik").Command("Control.On").Execute();
By the way, the scheduler has worked in earlier releases.
-
pretty weird ... And can this 20.2 device toogle ? on/off ? (from the web/ui interface)
-
Yes - it functions perfectly in the ui.
-
You are right, i just test on my side and same problem too.
I don't remember, but i use control for 1rst instance which i use xx not xx.1 ...
I take a look at "Scheduled ON/OFF" program and i don't see a problem ...
-
Yes - I can control the first instance the same way, by controlling the master.
-
Ok I find a way, but probably not the most easy way ..
Example of code with "xx.y" for the instance to control :
Modules.InDomain("HomeAutomation.ZWave").WithAddress("xx").Get().Command("MultiInstance.Set").Execute("Switch.Binary/y/255");
Program.RaiseEvent( Modules.InDomain("HomeAutomation.ZWave").WithAddress("xx.y").Get();, "Status.Level", "1", "ZWaveNode");
####
Modules.InDomain("HomeAutomation.ZWave").WithAddress("xx").Get().Command("MultiInstance.Set").Execute("Switch.Binary/y/0");
Program.RaiseEvent( Modules.InDomain("HomeAutomation.ZWave").WithAddress("xx.y").Get();, "Status.Level", "0", "ZWaveNode");
-
The workaround works fine for me to - I think its an ok sollution for now.
I will try to make a scheduler calling a C# program.
Is this to be consider a bug, so we need register that?
Thanks a lot for the help.
-
You are welcome !
Yes for me it's a bug.