Fixing PhilipsHue wizard, Fixing issue #545

This commit is contained in:
birdhouse 2019-07-14 12:23:47 +02:00
parent bea8345e4b
commit 88dbaa5f0a
2 changed files with 6 additions and 5 deletions

View File

@ -26,6 +26,7 @@
if(withKodi)
sendToKodi("stop");
step = 0;
location.reload();
}
//rgb byte order wizard
@ -658,7 +659,7 @@
function getHueIPs(){
$('#wiz_hue_ipstate').html($.i18n('wiz_hue_searchb'));
$.ajax({
url: 'https://www.meethue.com/api/nupnp',
url: 'https://discovery.meethue.com',
crossDomain: true,
type: 'GET',
timeout: 3000
@ -697,7 +698,7 @@
}
$('#retry_bridge').off().on('click', function(){
hueIPs[0].internalipaddress = $('#ip').val();
hueIPs.push({internalipaddress : $('#ip').val()});
hueIPsinc = 0;
checkHueBridge(checkBridgeResult);
});

View File

@ -446,10 +446,10 @@ int LedDevicePhilipsHue::write(const std::vector<ColorRgb> & ledValues)
else
{
light.setOn(true);
// Write color if color has been changed.
light.setTransitionTime(transitionTime);
light.setColor(xy, brightnessFactor);
}
// Write color if color has been changed.
light.setTransitionTime(transitionTime);
light.setColor(xy, brightnessFactor);
idx++;
}