That was indeed the function that had the bug. A fix for it was already merged today, so if you get the latest beta, it should work again.geertvercamer wrote: ↑Monday 08 January 2018 13:57 I have the same problem with the blinds switches not working (anymore).
The problem is in switches.js, function switchBlinds()
.block should be .block_
Code: Select all
function switchBlinds(idx, action) { switch (action.toLowerCase()) { case 'off': $('.block_' + idx).find('.icon').removeClass('on').addClass('off'); $('.block_' + idx).find('.icon').attr('src', $('.block_' + idx).find('.icon').attr('src').replace('open', 'closed')); break; case 'on': $('.block_' + idx).find('.icon').removeClass('off').addClass('on'); $('.block_' + idx).find('.icon').attr('src', $('.block_' + idx).find('.icon').attr('src').replace('closed', 'open')); break; } if (typeof(req) !== 'undefined') req.abort(); $.ajax({ url: settings['domoticz_ip'] + '/json.htm?type=command¶m=switchlight&idx=' + idx + '&switchcmd=' + action + '&level=0&passcode=&jsoncallback=?', type: 'GET', async: false, contentType: 'application/json', dataType: 'jsonp', success: function (data) { getDevices(true); } }); }
I just saw there is another _ missing, but that it only a layout fix I think. I will create a PR for that.