diff --git a/fhem/www/pgm2/fhemweb_colorpicker.js b/fhem/www/pgm2/fhemweb_colorpicker.js index d7c57abab..b488f9804 100644 --- a/fhem/www/pgm2/fhemweb_colorpicker.js +++ b/fhem/www/pgm2/fhemweb_colorpicker.js @@ -36,7 +36,12 @@ FW_colorpickerCreate(elName, devName, vArr, currVal, set, params, cmd) else if( mode == 'BRI' ) { color = parseInt(255 * color / vArr[4]); color = colorpicker_rgb2hex(color,color,color); - } + } else if( mode == 'HUE' ) { + var h = 255 * params[0] / vArr[4]; + var s = 1; + var v = 1; + var color = colorpicker_hsv2rgb(h,s,v); + } var newEl = $('