Hi, Today I installed AltUI on my vera running UI 5 and so far I like what I see -:). One quick question: is it possible to hide devices? I have some fibaro sensors that automatically create a second device with the name _Applicance Module which I do not want to see.
the option could be to use a bit of lua code
luup.attr_set(“invisible”,“1”,) in LUA test window of ALTUI. or , if it reoccur after luup restart, you could put this code in your startup lua
note that if “invisible” attribute exist, it will appear in ALTUI attribute form on the device control panel
I tried this first but the additional ‘empty’ child modules are connected to their parent device, so once you move them, their parents are moving with them. Just like in real life -
[quote=“amg0, post:3, topic:189045”]the option could be to use a bit of lua code
luup.attr_set(“invisible”,“1”,) in LUA test window of ALTUI. or , if it reoccur after luup restart, you could put this code in your startup lua
note that if “invisible” attribute exist, it will appear in ALTUI attribute form on the device control panel[/quote]
This did the trick. I now have a much cleaner view of all my devices.
I wanted to try this tip and put the code in the startup lua, but when I choose Lua Startup Code from the menu I get a javascript error, no editor form, and the menu appears frozen. If I click outside of the menu it goes away but still no editor form.
TypeError: txt is undefined J_ALTUI_uimgr.js:7220:2
My browser is Firefox 41.0.1. Edit: Same happens with Chrome 45.0.2454.85
I didn’t have to use LUA startup. I simply used the LUA test window with the following command: luup.attr_set(“invisible”,“1”,) . I repeated this for all the devices I wanted to make invisible and it seems to stick also after a reboot.
not repro but probably happens when startup lua is null/empty ? I made a quick change to protect against null, let’s see in next release if that fixes your pb