From 4dcc26bf5051e12de2cbd6c4d83552b9a67117ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andre=20Schr=C3=B6ter?= Date: Thu, 30 Jul 2015 17:10:29 +0200 Subject: [PATCH] fix for rgb vs RGB issue --- platforms/FHEM.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platforms/FHEM.js b/platforms/FHEM.js index c29813f..5c27f3f 100644 --- a/platforms/FHEM.js +++ b/platforms/FHEM.js @@ -694,10 +694,10 @@ FHEMAccessory.prototype = { value = FHEM_hsv2rgb( h, s, v ); //this.log( this.name + ' rgb : [' + value + ']' ); - if( this.PossibleSets.match(/\bRGB\b/) ) - url = this.connection.base_url + "/fhem?cmd=set " + this.device + " RGB " + value + "&XHR=1"; - else + if( this.PossibleSets.match(/\brgb\b/) ) url = this.connection.base_url + "/fhem?cmd=set " + this.device + " rgb " + value + "&XHR=1"; + else + url = this.connection.base_url + "/fhem?cmd=set " + this.device + " RGB " + value + "&XHR=1"; } else if( c == 'hue' ) { value = Math.round(value * this.hueMax / 360);