fix for rgb vs RGB issue

This commit is contained in:
Andre Schröter
2015-07-30 17:10:29 +02:00
parent 431199a388
commit 4dcc26bf50

View File

@@ -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);