more G-Labs products

Author Topic: Fibaro RGBW controller not fully functional  (Read 5208 times)

November 30, 2015, 07:29:21 PM
Reply #30

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
Can you explain why  MultiInstanceNode.Command("Control.Level").Set(Value) doesn't work anymore.?
I have to replace by  ParentModule.Command("MultiInstance.Set").Set("Switch.MultiLevel/Instance/Value")
and like that the colorwheel works again.

Hi dani, did you check that the variable "lightnumber" is correct? For me, the Z-Wave multiinstance program is still working and I think it does a similar thing by addressing virtual module channels.
I will include the fixed fibaro app in the next update.

Cheers,
g.

November 30, 2015, 10:37:20 PM
Reply #31

dani

  • *****
  • Information
  • Global Moderator
  • Posts: 535
I don't understand your question Gene.

November 30, 2015, 11:46:44 PM
Reply #32

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
Hi dani,

sorry, let me reformulate the question in a different way. When you call this

Code: [Select]
var moduleBlue = Modules.InDomain("HomeAutomation.ZWave").WithAddress(lightnumber+".4").Get();
moduleBlue.Command("Control.Level").Set( ((int)iBlue).ToString() ) ;

the "Multi Instance/Channel  Virtual Modules" app should receive the command. Did you verify that the Multi Instance program is receiving the command? Does it work if you open the API url directly in the browser (eg: /api/HomeAutomation.ZWave/5.4/Control.Level/100)?

Cheers,
g.

December 01, 2015, 02:46:32 AM
Reply #33

dani

  • *****
  • Information
  • Global Moderator
  • Posts: 535
Thank's Gene. I will try your comment.

Hi Gene,
Result of tests (Adding Notify in Multi Instance/Channel program) :
1 - If I call directly the API by the broiwser :
http://192.168.1.2/api/HomeAutomation.ZWave/4.4/Control.Level/99
The notification pass and the light channel is on.

2 - Remodify FibaroRGBW as before by calling :
var moduleBlue = Modules.InDomain("HomeAutomation.ZWave").WithAddress(lightnumber+".4").Get();
moduleBlue.Command("Control.Level").Set( ((int)iBlue).ToString() )
;
No notification appears from Multi Instance/Channel prog. And the light channel doesn't change of state
The Command doesn't pass in Multi Instance/Channel Prog.
An idea : It's not due to the order number of programms ?
93 : Multi Instance/Channel
502 : FibaroRGBW

Cheers
Dani
« Last Edit: December 01, 2015, 05:13:03 PM by dani »

December 04, 2015, 08:44:04 PM
Reply #34

mvdarend

  • *****
  • Information
  • Hero Member
  • Posts: 431
I've finally got around to updating (now on r505) and can confirm what Dani has found.

After the update the following command no longer works, t seems to be ignored:
Code: [Select]
  // 10.2 Red, 10.3 Green, 10.4 Blue, 10.5 White
  Modules.WithName("LED 10.5").Command("Control.Level").Set("30");
  Modules.WithName("LED 10.2").Command("Control.Level").Set("10");
  Modules.WithName("LED 10.3").Command("Control.Level").Set("20");
  Modules.WithName("LED 10.4").Command("Control.Level").Set("30");


Modified to the following based on Danis example, and it works again:

Code: [Select]
var parentModule = Modules.WithName("LED Strip Main").Get();
parentModule.Command("MultiInstance.Set").Set("Switch.MultiLevel/5/30");
parentModule.Command("MultiInstance.Set").Set("Switch.MultiLevel/2/10");
parentModule.Command("MultiInstance.Set").Set("Switch.MultiLevel/3/20");
parentModule.Command("MultiInstance.Set").Set("Switch.MultiLevel/4/30");