HomeGenie Forum

General Category => Troubleshooting and Support => Topic started by: roger.wills on November 27, 2015, 01:58:11 PM

Title: Fibaro RGBW controller not fully functional
Post by: roger.wills on November 27, 2015, 01:58:11 PM
I don't know if it's a coincidence or not but since upgrading to r503 both my Figaro RGBW controllers are not working fully. They will turn on and turn off, but individual channel control is unresponsive when changed from a script and behave oddly if manually adjusted. Also the widget doesn't change colours of the led strip as it did but strangely the program buttons do perform.

Any ideas?

Title: Re: Fibaro RGBW controller not fully functional
Post by: mvdarend on November 27, 2015, 02:03:08 PM
That's strange... I had problems with my Fibaro RGBW controller after upgrading from r500 to r501, so I rolled back to r501 r500.

This morning I upgraded from r500 to r503 and all seems OK, I'll keep my fingers crossed.
Title: Re: Fibaro RGBW controller not fully functional
Post by: roger.wills on November 27, 2015, 03:34:33 PM
I also upgrade to r501 first. Will try the same roll back and upgrade and see if that sorts it out
Title: Re: Fibaro RGBW controller not fully functional
Post by: Gene on November 27, 2015, 03:45:32 PM
Hi roger.willis,

please read this post:

http://www.homegenie.it/forum/index.php?topic=1208.msg7737#msg7737 (http://www.homegenie.it/forum/index.php?topic=1208.msg7737#msg7737)

g.
Title: Re: Fibaro RGBW controller not fully functional
Post by: roger.wills on November 27, 2015, 04:45:44 PM
Thanks Gene. I don't quite follow that other post. In layman's terms what are you saying needs to be done?
Title: Re: Fibaro RGBW controller not fully functional
Post by: Gene on November 27, 2015, 05:07:36 PM
Hi roger,

I'm saying if you want help testing latest ZWaveLib that should fix all issues reported so far.
In order to test it the following steps are required:

- stop HG
- copy the new ZWaveLib.dll file to the homegenie/lib/mig folder
- ensure no other ZWaveLib.dll file is present in the main homegenie folder nor in the homegenie/lib folder
- start HG

the new file can be downloaded here:

https://sourceforge.net/projects/homegenie/files/testing/

g.
Title: Re: Fibaro RGBW controller not fully functional
Post by: roger.wills on November 27, 2015, 05:17:15 PM
Aha, thanks, got it now, sorry to be so dim, but I really wasn't sure which part of that other thread was meant for me! I'll try it now.
Title: Re: Fibaro RGBW controller not fully functional
Post by: roger.wills on November 27, 2015, 05:45:12 PM
Hi Gene,

I've replaced the dll file as instructed and checked it is not in the other directories. I'm afraid it has made no difference and the problems persist.
Title: Re: Fibaro RGBW controller not fully functional
Post by: Gene on November 27, 2015, 06:07:14 PM
Hi roger,

please post the logs.

g.
Title: Re: Fibaro RGBW controller not fully functional
Post by: roger.wills on November 27, 2015, 06:37:19 PM
Here you go...
Title: Re: Fibaro RGBW controller not fully functional
Post by: Gene on November 27, 2015, 07:27:08 PM
hi roger,

I don't see anything odd in the z-wave comm part. Everything is ok. What is odd is that some commands are "dumb". They are not issued at all and they don't produce any z-wave I/o:
For example:
Code: [Select]
2015-11-27;16:34:59.4337;Info;WebServiceGateway 192.168.1.65 HTTP GET 200;/api/HomeAutomation.FibaroRGBW/4/Control.ColorHsb/201,128,142;[OPEN];;;;;;;;;;;;;;;;
2015-11-27;16:34:59.4337;Info;HomeAutomation.FibaroRGBW 4 Virtual;Module Status.ColorHsb 201,128,142;;;;;;;;;;;;;;;;;
2015-11-27;16:34:59.4337;Info;HomeAutomation.FibaroRGBW 4 Virtual;Module Status.Level 1;;;;;;;;;;;;;;;;;
2015-11-27;16:34:59.4337;Info;WebServiceGateway 192.168.1.65 HTTP GET 200;/api/HomeAutomation.FibaroRGBW/4/Control.ColorHsb/201,128,142;[CLOSED;AFTER;0.003;seconds];;;;;;;;;;;;;
2015-11-27;16:35:01.3712;Info;HomeAutomation.PhilipsHue 1 - Meter.Watts 0.0;;;;;;;;;;;;;;;;;;
2015-11-27;16:35:01.3869;Info;HomeAutomation.PhilipsHue 2 - Meter.Watts 11.94;;;;;;;;;;;;;;;;;;
2015-11-27;16:35:01.3869;Info;WebServiceGateway 192.168.1.65 HTTP GET 200;/api/HomeAutomation.FibaroRGBW/4/Control.ColorHsb/248,21,66;[OPEN];;;;;;;;;;;;;;;;
2015-11-27;16:35:01.3869;Info;HomeAutomation.FibaroRGBW 4 Virtual;Module Status.ColorHsb 248,21,66;;;;;;;;;;;;;;;;;
2015-11-27;16:35:01.3869;Info;HomeAutomation.FibaroRGBW 4 Virtual;Module Status.Level 1;;;;;;;;;;;;;;;;;
2015-11-27;16:35:01.3869;Info;WebServiceGateway 192.168.1.65 HTTP GET 200;/api/HomeAutomation.FibaroRGBW/4/Control.ColorHsb/248,21,66;[CLOSED;AFTER;0.002;seconds];;;;;;;;;;;;;
2015-11-27;16:35:01.4025;Info;HomeAutomation.PhilipsHue 3 - Meter.Watts 12.12;;;;;;;;;;;;;;;;;;
2015-11-27;16:35:02.4337;Info;WebServiceGateway 192.168.1.65 HTTP GET 200;/api/HomeAutomation.FibaroRGBW/4/Control.ColorHsb/255,0,54;[OPEN];;;;;;;;;;;;;;;;
2015-11-27;16:35:02.4337;Info;HomeAutomation.FibaroRGBW 4 Virtual;Module Status.ColorHsb 255,0,54;;;;;;;;;;;;;;;;;
2015-11-27;16:35:02.4337;Info;HomeAutomation.FibaroRGBW 4 Virtual;Module Status.Level 1;;;;;;;;;;;;;;;;;
2015-11-27;16:35:02.4494;Info;WebServiceGateway 192.168.1.65 HTTP GET 200;/api/HomeAutomation.FibaroRGBW/4/Control.ColorHsb/255,0,54;[CLOSED;AFTER;0.004;seconds];;;;;;;;;;;;;
2015-11-27;16:35:04.1212;Info;WebServiceGateway 192.168.1.65 HTTP GET 200;/api/HomeAutomation.FibaroRGBW/4/Control.ColorHsb/72,0,255;[OPEN];;;;;;;;;;;;;;;;
2015-11-27;16:35:04.1212;Info;HomeAutomation.FibaroRGBW 4 Virtual;Module Status.ColorHsb 72,0,255;;;;;;;;;;;;;;;;;
2015-11-27;16:35:04.1212;Info;HomeAutomation.FibaroRGBW 4 Virtual;Module Status.Level 1;;;;;;;;;;;;;;;;;

There's api calling to Control.ColorHsb command on node 4, but no z-wave command is sent. So the problem is the Fibaro RGB app that I think mvdarend is fixing (probably already got it working).

Indeed I can see a series of "Basic Set" commands addressed to node 2 and node 3:

Code: [Select]
2015-11-27;16:35:21.6838;Trace;Sending;Message;(Node=2,;CallbackId=41,;Function=SendData,;CommandClass=Basic);;;;;;;;;;;;;
2015-11-27;16:35:21.6838;Debug;01-09-00-13-02-02-20-02-05-41-83;;;;;;;;;;;;;;;;;;
2015-11-27;16:35:21.7619;Debug;06-01-04-01-13-01-E8;;;;;;;;;;;;;;;;;;
2015-11-27;16:35:21.7619;Debug;6;;;;;;;;;;;;;;;;;;
2015-11-27;16:35:21.7619;Trace;SendDataReady;;;;;;;;;;;;;;;;;;
2015-11-27;16:35:21.8713;Debug;01-05-00-13-41-00-A8;;;;;;;;;;;;;;;;;;
2015-11-27;16:35:21.8713;Debug;6;;;;;;;;;;;;;;;;;;
2015-11-27;16:35:21.8713;Trace;Complete;;;;;;;;;;;;;;;;;;
2015-11-27;16:35:21.8713;Trace;[[[;END;REQUEST;]]];took;188;ms;;;;;;;;;;;;
2015-11-27;16:35:21.9807;Debug;01-09-00-04-00-02-03-20-03-00-D0;;;;;;;;;;;;;;;;;;
2015-11-27;16:35:21.9807;Debug;6;;;;;;;;;;;;;;;;;;
2015-11-27;16:35:21.9807;Debug;2;Level;0;;;;;;;;;;;;;;;;
2015-11-27;16:35:21.9807;Info;HomeAutomation.ZWave 2 ZWave;Node Status.Level 0;;;;;;;;;;;;;;;;;
2015-11-27;16:35:21.9807;Info;HomeAutomation.ZWave 2 ZWave;Node ZWaveNode.Basic 0;;;;;;;;;;;;;;;;;
2015-11-27;16:35:22.4963;Trace;[[[;BEGIN;REQUEST;]]];;;;;;;;;;;;;;;
2015-11-27;16:35:22.4963;Trace;WaitAck;;;;;;;;;;;;;;;;;;
2015-11-27;16:35:22.4963;Trace;Sending;Message;(Node=3,;CallbackId=42,;Function=SendData,;CommandClass=Basic);;;;;;;;;;;;;
2015-11-27;16:35:22.4963;Debug;01-09-00-13-03-02-20-02-05-42-81;;;;;;;;;;;;;;;;;;
2015-11-27;16:35:22.5275;Debug;06-01-04-01-13-01-E8;;;;;;;;;;;;;;;;;;
2015-11-27;16:35:22.5275;Debug;6;;;;;;;;;;;;;;;;;;
2015-11-27;16:35:22.5275;Trace;SendDataReady;;;;;;;;;;;;;;;;;;
2015-11-27;16:35:22.7463;Debug;01-05-00-13-42-00-AB;;;;;;;;;;;;;;;;;;
2015-11-27;16:35:22.7463;Debug;6;;;;;;;;;;;;;;;;;;
2015-11-27;16:35:22.7463;Trace;Complete;;;;;;;;;;;;;;;;;;
2015-11-27;16:35:22.7463;Trace;[[[;END;REQUEST;]]];took;251;ms;;;;;;;;;;;;

Where are these coming from?

@mvdarend can you send me the fixed Fibaro.RGB program so I can update it in HG?

Cheers,
g.
Title: Re: Fibaro RGBW controller not fully functional
Post by: roger.wills on November 27, 2015, 07:34:25 PM
Thanks Gene, glad you got some sense out of the log, frankly it was all double dutch to me!

I guess I'll roll back to r500 until the next update.
Title: Re: Fibaro RGBW controller not fully functional
Post by: mvdarend on November 27, 2015, 08:11:03 PM
Hi Gene, I've been messing around with the modified Fibaro RGBW code so I'll need to give it a clean up first. I'll post it tomorrow. (Have to keep the baby occupied at the moment  :-\)

The problem Roger is seeing sounds exactly like what I was experiencing after upgrading to r501. Calling ColorHsb from a script or selecting a color in the widget was not working. (like the commands were being ignored)

Calling individual color channels from script was also not working at all (also as if the command was being ignored). But the value slider in the widgets for each channel seemed to be working, but they were also affecting the values of other channels. (if I recall correctly.)
Title: Re: Fibaro RGBW controller not fully functional
Post by: mvdarend on November 27, 2015, 08:25:26 PM
I just checked and I'm still runnning exactly the same version as I posted here: (I had already rolled back to this version after rolling back to r500)
http://www.homegenie.it/forum/index.php?topic=1142.msg7441#msg7441 (http://www.homegenie.it/forum/index.php?topic=1142.msg7441#msg7441)

It's still working for me, Dani had problems with it, but I think that might have actually been due to the same problems Roger and I are also seeing in 501-503. I'm pretty sure my changes won't fix the issue for Roger.
Title: Re: Fibaro RGBW controller not fully functional
Post by: roger.wills on November 27, 2015, 08:35:26 PM
Hi mvdarend,

Your description is exactly the issue I have and far more accurately described than me! I've rolled back to r500 and all is good again.
Title: Re: Fibaro RGBW controller not fully functional
Post by: mvdarend on November 28, 2015, 07:03:41 AM
Some more information that might be of help.

After rolling back to r500 the Fibaro RGBW problem I had disappeared. Yesterday morning I tried an automatic update from within the HomeGenie interface, but after unpacking the .zip file it didn;t continue (as far as I could see)

So I downloaded the file manually:
http://skylink.dl.sourceforge.net/project/homegenie/_updates/HomeGenie_1_1_beta_r501_503_update.zip (http://skylink.dl.sourceforge.net/project/homegenie/_updates/HomeGenie_1_1_beta_r501_503_update.zip)

Unpacked it, and copied all the files over my HomeGenie installation. (After stopping the HG service)

After doing the above teh Fibaro RGBW module was still working as expected.
Title: Re: Fibaro RGBW controller not fully functional
Post by: mvdarend on November 28, 2015, 03:39:22 PM
@mvdarend can you send me the fixed Fibaro.RGB program so I can update it in HG?
Here is the version I'm running at the moment, it's still exactly the same as the version in the HomeGenie Plus thread as far as I can see. For me it works in HG and the HG+ App.
Title: Re: Fibaro RGBW controller not fully functional
Post by: dani on November 28, 2015, 04:41:14 PM
I have try that zip file with the last r503 with patches done by Gene (MIG and ZWaveLib)
On/Off and ProgramsSet work. But the ColorWheel with HG UI and HG+ doesn't work anymore than my last tests. Look at the screenshot.
I will try to find that issue.
Title: Re: Fibaro RGBW controller not fully functional
Post by: Gene on November 28, 2015, 04:53:38 PM
Hi dani,

that error is due to the FR locale. Do a .Replace(",", ".") on the value before converting the string to a double.

g.
Title: Re: Fibaro RGBW controller not fully functional
Post by: Gene on November 28, 2015, 04:56:18 PM
eg:

Code: [Select]
double.Parse(hsbValues[0].Replace(",", "."), CultureInfo.InvariantCulture) * 360;

this should be checked on all double.Parse in the program.

g.
Title: Re: Fibaro RGBW controller not fully functional
Post by: dani on November 28, 2015, 05:42:54 PM
Thank's Gene yes I found that a few minutes ago.
I am in time to test
Adding Note :
But now, the Control.Level to each channel is not send.
That's called in Func bridegeapicall but I don't receive any event in the screen screen for Virtual channels.
If I add that modules in a group, I can address them individually. And colors change.
Title: Re: Fibaro RGBW controller not fully functional
Post by: mvdarend on November 28, 2015, 06:40:07 PM
that error is due to the FR locale. Do a .Replace(",", ".") on the value before converting the string to a double.
Sorry, I always forget that...  :-[

Quote
But now, the Control.Level to each channel is not send.
That's called in Func bridegeapicall but I don't receive any event in the screen screen for Virtual channels.
If I add that modules in a group, I can address them individually. And colors change.
That sounds like the problem Roger and I have been experiencing. I'm pretty sure it has nothing to do with the modified App.
Title: Re: Fibaro RGBW controller not fully functional
Post by: dani on November 29, 2015, 11:54:39 AM
Hi Marcel, Gene,

I think I found the issue for me.
If for you that works, I want to know if you deactivate Multi-Instance/Channel Virtual Module.
You can try to activate then for me no ColorWheel work properly.
I think before, the multiinstance level from the node are not reported by ZWaveLib.
Because fibaro RGBW works with Value level between 0 and 99. For example when we set level in HG to 0.49 we send 49 to Fibaro.
If we set the level to 1 at the reel Fibaro master node. Then we receive 4 multiinstance level on each virtual channel with the last value set to that channels with value between 0 and 99. Then I don't know what happend. Because in the logger we don't know in which sens the mesage Satus.Level is ? From or to the node.
Before that 2 Program work together, because I nedd it for Fibaro double switch modules and RGBW at the same time.

Adding Note :
Even when modify MultiInstance program, It work better but not perfect. ColorWheel still not works.
And now I have play too much with my Fibaro RGBW Node, now I get always timeout.
Title: Re: Fibaro RGBW controller not fully functional
Post by: dani on November 29, 2015, 07:22:48 PM
Hi Marcel,

I don't undestand how FibaroRGBW can work for you with HG r503. Fo me Impossible to make ColorWheel works.
Title: Re: Fibaro RGBW controller not fully functional
Post by: dani on November 29, 2015, 07:34:17 PM
Hi Gene,

For try to make FibaroRGBW works again. I found the explanation upstairs and :
If I control each channel (From Node.2 to Node.5) by an individual dimmer it's work.
That is the API command generated for set channel green to 50% :
http://192.168.1.2/api/HomeAutomation.ZWave/4.2/Control.Level/50 And that works
Before for that in FibaroRGBW C# I used :
Code: [Select]
var moduleGreen = Modules.InDomain("HomeAutomation.ZWave").WithAddress("4.2").Get();
moduleGreen.Command("Control.Level").Set( "50" ) ;
And That doesn't work anymore.
I spend all the day for find the issue. I think something is changed somewhere in your code.
The module HomeAutomation.ZWave 4.2 exists, because I can control it directly from a reel dimmer in my group.
Title: Re: Fibaro RGBW controller not fully functional
Post by: mvdarend on November 29, 2015, 07:57:57 PM
Quote
I don't undestand how FibaroRGBW can work for you with HG r503. Fo me Impossible to make ColorWheel works.

I'm curious about that myself. Could it be because I updated HG just by overwriting all of the files (http://www.homegenie.it/forum/index.php?topic=1223.msg7767#msg7767) and that I might have only done a partial update?

The automatic update was hanging for me after unpacking files, so I just unzipped the update the contents and copied all of the files into my HG folder.
Title: Re: Fibaro RGBW controller not fully functional
Post by: dani on November 29, 2015, 09:29:46 PM
In that case, the dll file of FibaroRGBW is replace by old one if you don't compile it.
But now with r504, Gene update your file in the project. I test it but samedi issue for me. So I found the problem. I must explain Gene.
Title: Re: Fibaro RGBW controller not fully functional
Post by: Gene on November 29, 2015, 10:27:02 PM
Hi dani,

not sure if has something to do with this issue with FibaroRGB, but take a look here:

http://www.homegenie.it/forum/index.php?topic=1233.msg7865#msg7865 (http://www.homegenie.it/forum/index.php?topic=1233.msg7865#msg7865)

g.
Title: Re: Fibaro RGBW controller not fully functional
Post by: dani on November 29, 2015, 11:03:19 PM
Hi Gene, I found à solution but I am on tablet. I will explain you more longuer tomorrow

Cheers
Dani
Title: Re: Fibaro RGBW controller not fully functional
Post by: dani on November 30, 2015, 05:37:57 PM
Hi Gene,

I found that I have to replace a function like that for the 3 Instances :
Code: [Select]
//  var moduleRed = Modules.InDomain("HomeAutomation.ZWave").WithAddress(lightnumber+".2").Get();
//  moduleRed.Command("Control.Level").Set( ((int)iRed).ToString() ) ;
  parentModule.Command("MultiInstance.Set").Set("Switch.MultiLevel/2/" + ((int)iRed).ToString());

//  var moduleGreen = Modules.InDomain("HomeAutomation.ZWave").WithAddress(lightnumber+".3").Get();
//  moduleGreen.Command("Control.Level").Set( ((int)iGreen).ToString() ) ;
  parentModule.Command("MultiInstance.Set").Set("Switch.MultiLevel/3/" + ((int)iGreen).ToString());

//  var moduleBlue = Modules.InDomain("HomeAutomation.ZWave").WithAddress(lightnumber+".4").Get();
//  moduleBlue.Command("Control.Level").Set( ((int)iBlue).ToString() ) ;
  parentModule.Command("MultiInstance.Set").Set("Switch.MultiLevel/4/" + ((int)iBlue).ToString());

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.

Here you can find the hgx file for FibaroRGBW modified.
For me it's work with HG UI and with HG+. Only on HG+ I have some little issue about the widget update. If I set a color the ColrHsb is sent and the color is on but the widget show that the eqipment is OFF. So I have to mask the average set level value introduced by Marcel and send a level set to "1".
That is due to that in HG UI the Widget is a dimmer and not in HG+.

Cheers
Dani
Title: Re: Fibaro RGBW controller not fully functional
Post by: Gene on November 30, 2015, 07:29:21 PM
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.
Title: Re: Fibaro RGBW controller not fully functional
Post by: dani on November 30, 2015, 10:37:20 PM
I don't understand your question Gene.
Title: Re: Fibaro RGBW controller not fully functional
Post by: Gene on November 30, 2015, 11:46:44 PM
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.
Title: Re: Fibaro RGBW controller not fully functional
Post by: dani on December 01, 2015, 02:46:32 AM
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
Title: Re: Fibaro RGBW controller not fully functional
Post by: mvdarend on December 04, 2015, 08:44:04 PM
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");