I imagine that this is openLuup’s fault, and not AltUI’s, in the first instance.
Perhaps best to deal with this on that board? Would need to know what the HTTP request that is failing is actually requesting. It looks like you have a missing icon, but that shouldn’t be fatal.
it’s a bug I’ve reported to amg0.
In this function “clickOnValue”, the id of the variables are used as position.
In openLuup, the variables have an unique id and the numbering does not begin again for every device.
Here is a possible fix for “J_ALTUI_uimgr.js” file, line 3357 :
function _deviceDrawVariables(device) {
function _searchIdInStates(states, id) {
id = parseInt(id, 10);
for ( var i = 0; i < states.length; i++ ) {
if ( states[ i ].id === id ) {
return i;
}
}
return -1;
}
function _clickOnValue() {
var id = $(this).prop('id'); // idx in variable state array
id = _searchIdInStates( device.states, id );
var tbl = [device.states[id].service , device.states[id].variable]//atob(id).split('.');
The missing icon is a known issue which actually you and amg0 looked at in the openLuup/Philips Hue thread for me.
[quote=“akbooer, post:3, topic:189508”]Would need to know what the HTTP request that is failing is actually requesting. It looks like you have a missing icon, but that shouldn’t be fatal.
However, I might be wrong.[/quote]
[quote=“vosmont, post:8, topic:189508”]Here is a possible fix for “J_ALTUI_uimgr.js” file, line 3357 :
[code]
function _deviceDrawVariables(device) {
function _searchIdInStates(states, id) {
id = parseInt(id, 10);
for ( var i = 0; i < states.length; i++ ) {
if ( states[ i ].id === id ) {
return i;
}
}
return -1;
}
function _clickOnValue() {
var id = $(this).prop('id'); // idx in variable state array
id = _searchIdInStates( device.states, id );
var tbl = [device.states[id].service , device.states[id].variable]//atob(id).split('.');
[/code][/quote]
yes thatnk youj. you can use the MultiBox api. need the same code in the focusout() too. i ll post the fix
var state = MultiBox.getStateByID( device.altuiid, id );
var tbl = [state.service , state.variable];
Best Home Automation shopping experience. Shop at Ezlo!