Trouble installing openLUUP

Here you go. Pretty much the only thing I’ve done so far is add my Vera.

{ "DataVersion":515043756, "Device_Num_3":{ "Jobs":[], "PendingJobs":0, "id":3, "states":[{ "id":48, "service":"urn:micasaverde-com:serviceId:HaDevice1", "value":"0", "variable":"CommFailureTime" },{ "id":47, "service":"urn:micasaverde-com:serviceId:HaDevice1", "value":"0", "variable":"CommFailure" },{ "id":24, "service":"urn:upnp-org:serviceId:altui1", "value":"", "variable":"ThemeCSS" },{ "id":0, "service":"urn:upnp-org:serviceId:altui1", "value":"0", "variable":"Present" },{ "id":34, "service":"urn:upnp-org:serviceId:altui1", "value":"", "variable":"WorkflowsVariableBag" },{ "id":8, "service":"urn:upnp-org:serviceId:altui1", "value":"", "variable":"DeviceType" },{ "id":12, "service":"urn:upnp-org:serviceId:altui1", "value":"", "variable":"DeviceIconFunc" },{ "id":3, "service":"urn:upnp-org:serviceId:altui1", "value":"0", "variable":"WorkflowMode" },{ "id":14, "service":"urn:upnp-org:serviceId:altui1", "value":"", "variable":"FavoriteFunc" },{ "id":6, "service":"urn:upnp-org:serviceId:altui1", "value":"", "variable":"Result" },{ "id":30, "service":"urn:upnp-org:serviceId:altui1", "value":"", "variable":"ALTUIPath" },{ "id":28, "service":"urn:upnp-org:serviceId:altui1", "value":"{\"ShowMyHomeImages\":\"MQ==\",\"UseMasonryInMyHome\":\"MA==\",\"ShowVideoThumbnail\":\"MQ==\",\"ShowWeather\":\"MQ==\",\"ShowHouseMode\":\"MQ==\",\"ServerSideOptions\":\"MA==\",\"UseVeraFavorites\":\"MA==\",\"SyncLastRoom\":\"MQ==\",\"StickyFooter\":\"MA==\",\"UseUI7Heater\":\"MA==\",\"ShowAllRows\":\"MA==\",\"LockFavoritePosition\":\"MA==\",\"TopStats\":\"MA==\",\"Menu2ColumnLimit\":\"MTU=\",\"TempUnitOverride\":\"Zg==\",\"EditorFontSize\":\"MTI=\",\"Theme\":\"\",\"MainUser\":\"OTU0Yzk3M2YtYTM0OS00Y2NjLTlkYjAtZGY2OTRmNzNmY2Q0\",\"FavoritesOrder\":\"bWV0ZW8saG91c2Vtb2Rl\"}", "variable":"ServerOptions" },{ "id":16, "service":"urn:upnp-org:serviceId:altui1", "value":"", "variable":"JsonParameters" },{ "id":29, "service":"urn:upnp-org:serviceId:altui1", "value":"", "variable":"LocalCDN" },{ "id":13, "service":"urn:upnp-org:serviceId:altui1", "value":"", "variable":"ControlPanelFunc" },{ "id":50, "service":"urn:upnp-org:serviceId:altui1", "value":"/favicon.ico", "variable":"FavIcon" },{ "id":10, "service":"urn:upnp-org:serviceId:altui1", "value":"", "variable":"DeviceDrawFunc" },{ "id":18, "service":"urn:upnp-org:serviceId:altui1", "value":"", "variable":"Volume" },{ "id":42, "service":"urn:upnp-org:serviceId:altui1", "value":"[]", "variable":"Timers" },{ "id":45, "service":"urn:upnp-org:serviceId:altui1", "value":"", "variable":"VariablesToSend" },{ "id":44, "service":"urn:upnp-org:serviceId:altui1", "value":"", "variable":"VariablesToWatch" },{ "id":2, "service":"urn:upnp-org:serviceId:altui1", "value":"\"0-0\"", "variable":"WorkflowAltuiid" },{ "id":46, "service":"urn:upnp-org:serviceId:altui1", "value":"", "variable":"RemoteVariablesToWatch" },{ "id":41, "service":"urn:upnp-org:serviceId:altui1", "value":"", "variable":"GoogleLastError" },{ "id":23, "service":"urn:upnp-org:serviceId:altui1", "value":"https://hirwatech.com/veralogin/Veralogin.php", "variable":"RemoteAccess" },{ "id":40, "service":"urn:upnp-org:serviceId:altui1", "value":"0", "variable":"EnableMachineLearning" },{ "id":39, "service":"urn:upnp-org:serviceId:altui1", "value":"0", "variable":"PendingReset" },{ "id":22, "service":"urn:upnp-org:serviceId:altui1", "value":"/data_request?id=lr_ALTUI_Handler&command=home", "variable":"LocalHome" },{ "id":4, "service":"urn:upnp-org:serviceId:altui1", "value":"\"\"", "variable":"TransitionId" },{ "id":25, "service":"urn:upnp-org:serviceId:altui1", "value":"", "variable":"ImagePath" },{ "id":19, "service":"urn:upnp-org:serviceId:altui1", "value":"", "variable":"groupDevices" },{ "id":26, "service":"urn:upnp-org:serviceId:altui1", "value":"", "variable":"BackgroundImg" },{ "id":5, "service":"urn:upnp-org:serviceId:altui1", "value":"", "variable":"Url" },{ "id":37, "service":"urn:upnp-org:serviceId:altui1", "value":"[]", "variable":"Data_CustomPages_0" },{ "id":21, "service":"urn:upnp-org:serviceId:altui1", "value":"v2.26", "variable":"Version" },{ "id":35, "service":"urn:upnp-org:serviceId:altui1", "value":"1500,60", "variable":"CtrlOptions" },{ "id":33, "service":"urn:upnp-org:serviceId:altui1", "value":"[]", "variable":"WorkflowsActiveState" },{ "id":1, "service":"urn:upnp-org:serviceId:altui1", "value":"0", "variable":"Debug" },{ "id":32, "service":"urn:upnp-org:serviceId:altui1", "value":"0", "variable":"EnableWorkflows" },{ "id":49, "service":"urn:upnp-org:serviceId:altui1", "value":"3.3.1", "variable":"SWVersion" },{ "id":31, "service":"urn:upnp-org:serviceId:altui1", "value":"", "variable":"LocalBootstrap" },{ "id":43, "service":"urn:upnp-org:serviceId:altui1", "value":"{\"Vera@192.168.20.112\":{\"url\":\"http://127.0.0.1:3480/data_request?id=lr_HTTP_VeraBridgeMirror_192.168.20.112\",\"callback\":\"\",\"parameters\":[{\"key\":\"mirror\",\"type\":\"text\",\"default\":\"device.serviceId.name\",\"label\":\"Mirror\"}]},\"IFTTT\":{\"url\":\"\",\"callback\":\"sendValueToStorage_ifttt\",\"parameters\":[{\"type\":\"text\",\"key\":\"webhookkey\",\"label\":\"Web Hook Key\"},{\"default\":\"vera_data_published\",\"type\":\"text\",\"key\":\"eventname\",\"label\":\"Hook Event Name\"}]},\"emoncms\":{\"url\":\"\",\"callback\":\"sendValueToStorage_emoncms\",\"parameters\":[{\"default\":1,\"type\":\"number\",\"key\":\"nodeid\",\"label\":\"Node ID\"},{\"type\":\"number\",\"key\":\"feedid\",\"label\":\"Feed ID\"},{\"type\":\"text\",\"key\":\"inputkey\",\"label\":\"Input Key name\"},{\"type\":\"text\",\"key\":\"readwritekey\",\"label\":\"Read/Write API Key\"},{\"type\":\"url\",\"key\":\"graphicurl\",\"label\":\"Graphic Url\",\"ifheight\":460,\"default\":\"http://emoncms.org/vis/realtime?feedid={1}&embed=1&apikey={3}\"}]},\"thingspeak\":{\"url\":\"\",\"callback\":\"sendValueToStorage_thingspeak\",\"parameters\":[{\"type\":\"number\",\"key\":\"channelid\",\"label\":\"Channel ID\"},{\"type\":\"text\",\"key\":\"readkey\",\"label\":\"Read API Key\"},{\"type\":\"text\",\"key\":\"writekey\",\"label\":\"Write API Key\"},{\"default\":1,\"type\":\"number\",\"key\":\"fieldnum\",\"label\":\"Field Number\"},{\"default\":\"//api.thingspeak.com/channels/{0}/charts/{3}?key={1}&width=450&height=260&results=60&dynamic=true\",\"type\":\"url\",\"key\":\"graphicurl\",\"label\":\"Graphic Url\"}]}}", "variable":"DataStorageProviders" },{ "id":9, "service":"urn:upnp-org:serviceId:altui1", "value":"", "variable":"ScriptFile" },{ "id":17, "service":"urn:upnp-org:serviceId:altui1", "value":"", "variable":"Message" },{ "id":27, "service":"urn:upnp-org:serviceId:altui1", "value":"", "variable":"ExtraController" },{ "id":15, "service":"urn:upnp-org:serviceId:altui1", "value":"", "variable":"Name" },{ "id":38, "service":"urn:upnp-org:serviceId:altui1", "value":"emoncms.org", "variable":"EmonCmsUrl" },{ "id":36, "service":"urn:upnp-org:serviceId:altui1", "value":"", "variable":"VoiceRSS_KEY" },{ "id":7, "service":"urn:upnp-org:serviceId:altui1", "value":"{}", "variable":"PluginConfig" },{ "id":20, "service":"urn:upnp-org:serviceId:altui1", "value":"true", "variable":"UI7Check" },{ "id":11, "service":"urn:upnp-org:serviceId:altui1", "value":"", "variable":"StyleFunc" }], "status":-1, "tooltip":{"display":"0"} }, "LoadTime":1526515010, "LocalTime":"2018-05-17 09:57:46 D", "Mode":1, "TimeStamp":1526565466, "UserData_DataVersion":515017916, "alerts":[] }

Great!

Adding {} in the value field of PluginConfig also worked for me.

      "id":7,
      "service":"urn:upnp-org:serviceId:altui1",
      "value":"{}",
      "variable":"PluginConfig"

Thanks everyone for helping out.

So everything is all up and running. I’ve used VeraBridge to clone everything from my main Vera to openLuup.

There is a problem though, and I’m not sure if it’s originating from openLuup, AltUI or VeraBridge.
All devices and scenes show up. Devices show battery status and other information, pulled from the main Vera.

The devices don’t show controls, though. There are no on/off switches or sliders for the dimmers, for example. I’ve checked the device configuration and dimmers correctly have the device_file D_DimmableLight1.xml.

When I run a scene that changes dimmable lights, it works. I only don’t get the controls in the UI. I’ve tried with different browsers but no luck.

Goto altui device setting panel and press reset button
Plugin config must then be filled with a big json structure.
After that reload LUUP

Also note I am not sure about Vera bridge side effect in case there is also a altui device on the vera.
Between openluup and Vera , make sure you configure the openluup one is openluup is your main controller ( controlleur 0 )

Hi amg0,

Thanks for helping out. I resetted AltUI, and indeed plugin config got filled with a big json structure.
Then I reloaded LUUP, but this didn’t fix the problem.

I’ve checked the log files, and it seems the device XML file’s can’t be found (small snippet):

2018-05-20 10:54:21.485   openLuup.chdev:: ERROR: unable to read XML file D_SceneController1.xml
2018-05-20 10:54:21.485   luup.create_device:: [10157] D_SceneController1.xml /  / 
2018-05-20 10:54:21.485   openLuup.chdev:: ERROR: unable to read XML file D_DimmableLight1.xml
2018-05-20 10:54:21.485   luup.create_device:: [10165] D_DimmableLight1.xml /  / 
2018-05-20 10:54:21.485   openLuup.chdev:: ERROR: unable to read XML file D_SceneController1.xml
2018-05-20 10:54:21.485   luup.create_device:: [10170] D_SceneController1.xml /  / 
2018-05-20 10:54:21.485   openLuup.chdev:: ERROR: unable to read XML file D_CountdownTimer1.xml
2018-05-20 10:54:21.485   luup.create_device:: [10171] D_CountdownTimer1.xml /  / 
2018-05-20 10:54:21.485   openLuup.chdev:: ERROR: unable to read XML file D_CountdownTimer1.xml
2018-05-20 10:54:21.485   luup.create_device:: [10172] D_CountdownTimer1.xml /  / 
2018-05-20 10:54:21.486   openLuup.chdev:: ERROR: unable to read XML file D_Siren1.xml
2018-05-20 10:54:21.486   luup.create_device:: [10173] D_Siren1.xml /  / 

Edit: also, I don’t have altUI running on my main Vera.

Edit 2: After choosing “download files” in the VeraBridge plugin, the /files directory got propagated with all the device xml files. Everything is working now!

Hi

Just installed openLuup on Debian 9, and I get the same error mentioned earlier when I access it via 192.168.1.122:3480/data_request?id=lr_ALTUI_Handler&command=home%23

error in callback [lr_ALTUI_Handler] : [string "L_ALTUI.lua"]:2306: attempt to index local 'tbl' (a nil value

Please can someone confirm exactly what file in /cmd_ludl/ I need to edit (to add {} etc.) as I can see that is not present via 192.168.1.122:3480/data_request?id=status&output_format=xml&DeviceNum=3

},{ "id":7, "service":"urn:upnp-org:serviceId:altui1", "value":"", "variable":"PluginConfig" },{

  1. stop openLuup
  2. edit user_data.json and update the value below (save a copy before editing):

"id":7, "service":"urn:upnp-org:serviceId:altui1", "value":"{}", "variable":"PluginConfig"
3) start up openLuup

I found the trouble spot. in the userdata.lua file, in the device_table function:

edit the line:

        value = item.value or {}, 

I will submit to akbooer on github

Thanks all

Some quick questions

How do I stop/start openLuup, when I can?t access the UI?
@rafale77 My userdata.lua file only has 617 lines?

[quote=“rafale77, post:28, topic:199120”]I found the trouble spot. in the userdata.lua file, in the device_table function:

edit the line:

        value = item.value or {}, 

I will submit to akbooer on github[/quote]

This will stop it:http://127.0.0.1:3480/data_request?id=exit(Change IP if not local.) Start it just as you did initially.

thanks @jswim788

To start (restart) openLuup, I?ve just rebooted the machine.

Is that the only way ?

UPDATE - I?ve updated the value and rebooted, but unfortunately now I?m unable to access anything, all previous urls are now showing they?re unable to connect?

There’s a script that’s included called openLuup_reload. That will start it up.

But if a reboot starts it, then you must have added it to systemd or init.d or rc.local already?

See page 19 of akbooer’s documentation (openLuup/openLuup User Guide.pdf at master · akbooer/openLuup · GitHub)

[quote=“parkerc, post:29, topic:199120”]Thanks all

Some quick questions

How do I stop/start openLuup, when I can?t access the UI?
@rafale77 My userdata.lua file only has 617 lines?

[quote=“rafale77, post:28, topic:199120”]I found the trouble spot. in the userdata.lua file, in the device_table function:

edit the line:

        value = item.value or {}, 

I will submit to akbooer on github[/quote][/quote]

Yeah sorry I edited my post to remove the line number, I am working off of the development branch so the line number is not accurate. When AK comes back hopefully he will merge into the main branch and release a new version.

Also I just looked and the released master you should be getting should be on line 688 and there should be 786 lines in that file…

Thanks all again

Im still missing something here, how do I run openLuup_reload from the command Line to restart it - see below (im afraid. i dont have much Linux experience :frowning: )?

root@debian:/home/qwerty/cmh-ludl# ls backup I_ALTUI.xml J_ALTUI_b_en.js J_ALTUI.js J_ALTUI_uimgr.js L_ALTUI_LuaRunHandler.lua trash. D_ALTUI.json icons J_ALTUI_b_fr.js J_ALTUI_loc_es.js J_ALTUI_upnp.js latest.tar.gz user_data (copy).json. D_ALTUI_UI7.json images J_ALTUI_b_it.js J_ALTUI_loc_fr.js J_ALTUI_utils.js logs user_data.json D_ALTUI.xml index.html J_ALTUI_b_javascript_compressed.js J_ALTUI_loc_it.js J_ALTUI_verabox.js openLuup www dkjson.lua J_ALTUI_api.js J_ALTUI_b_lua_compressed.js J_ALTUI_loc_nl.js L_ALTUI_compress.lua openLuup_install.lua files J_ALTUI_b_blockly_compressed.js J_ALTUI_iphone.js J_ALTUI_multibox.js L_ALTUIjson.lua openLuup_reload I_ALTUI-old.xml J_ALTUI_b_blocks_compressed.js J_ALTUI_jquery.ui.touch-punch.min.js J_ALTUI_plugins.js L_ALTUI.lua S_ALTUI.xml

root@debian:/home/qwerty/cmh-ludl# openLuup_reload
bash: openLuup_reload: command not found
root@debian:/home/qwerty/cmh-ludl# su openLuup_reload
No passwd entry for user ‘openLuup_reload’
root@debian:/home/qwerty/cmh-ludl# su
root@debian:/home/qwerty/cmh-ludl# openLuup_reload
bash: openLuup_reload: command not found
root@debian:/home/qwerty/cmh-ludl#

try entering this command:

./openLuup_reload

This is because it is a shell script

The reason you need the ./ form is that the current directory is not in your PATH. And that is for good reason - it keeps you from inadvertently executing a program in an unexpected and possibly insecure location. You can add ‘.’ to your PATH so it is there if you wish. And you can see what your PATH by this: echo $PATH

I’m also installing on debian 9, and i can access the altUI console locally, but when i try using another computer, it stalls on “Waiting Initial Data”.

I tailed the LuaUPnP.log, and see a “openluup.servlet:: file not found:J_ALTUI_loc_nb.js”

any suggestions?

This looks like an ALTUI installation problem. Do you actually have this file in your openLuup folder?

Edit: It maybe a typo… I don’t know of a country acronym with nb… What country are you in?

[quote=“Forzaalfa, post:37, topic:199120”]I’m also installing on debian 9, and i can access the altUI console locally, but when i try using another computer, it stalls on “Waiting Initial Data”.

I tailed the LuaUPnP.log, and see a “openluup.servlet:: file not found:J_ALTUI_loc_nb.js”

any suggestions?[/quote]

note sur what country nb is but that is not offered (yet). it should fall back automatically to english
if you want you can copy one of the J_ALTUI_loc_xx.js and make a ‘nb’ translation then have that file on your vera and it should then work
if you cant you can contribute that file into the normal release. in that case I would include it in the github repo

Aha, if its a language file its looking for its “Norwegian Bokmal(which is one of two written languages)”. I set the regional settings in debian to this to get the time right. I’ll revert to english and manual time adjustment.

Not sure why Altui looks for this? I prefer english language in any case for the system…