if the android device is not on local network when receiving the OTP, it will attempt to send a cloud message to this flow, which runs on a local android device.
I doubt you’ll find it because it’s not technically possible for iOS. You could, in theory, try to compile oathtool for Vera. Your best bet, if you have a spare raspberry PI/linux around, is to use it on a Linux box.
Hello, just installed latest version of the plugin (from Github).
I created the device as explained, rebooted the Vera and went to set the needed variables. But there ain’t no username or password fields (as you can see in the screenshot). Here is what I have in the log:
the error is related to username and password that are missing. Looking at the source code, this is very strange, as other variables are correctly populating. Could you try to load it again?
Thank you,
So I tried with those commands but didn’t help - still no username and password fields.
Deleted the 587 device, then I created a new one. Restarted but got the same fields - still no username and password.
Did the same commands then restart the Luup engine - nothing, restarted the Vera - still no username and password fields.
I’m thinking to go and set them inside the source code files. I know that isn’t the brightest idea but … it seems like I won’t get them in the UI.
This is getting really wierd. I did hard refresh of course. Now I even opened the UI in incognito mode. And yet still no username and password fields. So I checked the device status the way you posted:
So they are there but do not show in UI. So I thought I’ll just set them this way and maybe it will work even though I don’t see them in the UI. But then I looked in the log and saw this:
Now I opened the source code and I saw that you check the firmware version. Mine is 1.7.1030 and I can update it up to 1.7.1040 but nothing more than that because I’m with Vera 3. Could this be a problem? For some reason I don’t have a folder VeraAlexa in /etc/cmh-ludl/ . Maybe I should make it manually?
Also there is /etc/cmh-ludl/ and I can see there all the files including the ones about VeraAlexa plugin. Tried to create it manually and it was created without any problem.
So I created that folder and put that line that you posted right under the section I pasted in previous comment. Set configured to 0 and restarted my Vera. Log still shows the same. It didn’t show anything like username:… So I really don’t know how come the device gets configured but misses some parts since I’m looking at the code and I just don’t get it. Maybe there is something else I’m missing. The folder VeraAlexa is empty as well.
I’m not sure if that folder is available for your fw. Try to move line 422 outside the if (ie: to line 425) and see if that is changing. The line should be added under buildCommand function, to see if this is called.
I’m not excluding this fw version is somewhat different and username/password variables are hidden.
There is no /storage in my system. I moved that line outside the if and put othe D(… inside buildCommand function. Set configured to 0 again and restarted the Vera. Now lines in log are the same:
LuaInterface::CallFunction_Startup-1 device 588 function startupPlugin failed [string “module(“L_VeraAlexa1”, package.seeall)…”]:89: bad argument #3 to ‘format’ (string expected, got nil) <0x2c191680>
01
01/07/21 14:11:24.339
LuImplementation::StartLua running startup code for 588 I_VeraAlexa1.xml failed <0x2c191680>
But the variable configured stays on 0.
Looks like a much bigger problem than I hoped at the begining so I guess I’ll have to use your code as reference and try to do my own version from scratch but don’t know when I’ll have the time for this. But I feel uncomfortable spaming here that much. Thanks for your help. I’ll try to see what I can do myself.
There must be something else, since it’s crashing in startup code. but startup code has not string.format, so maybe it’s something inside checkQueue. Code is pretty simple, so it’s definitely something related to your luup engine version.
Acctually it is just where it says it is - “89: bad argument #3 to ‘format’ (string expected, got nil) <0x2c191680>” - 89 is the line number and the line is:
str = string.format(“%s:%s”, str, msg)
So I just added this:
if msg == nil then msg = " (nil msg) " end
At least it got somewhere and it doesn’t show error. Problem is there are a lot of logs but not very helpful At least now the folder /etc/cmh-ludl/VeraAlexa has 1 file in it - alexa_remote_control_plain.sh
Now in variables I have “configured” back to 1 again but still no username and password fields. Reloaded Lua … just in case And then in log I have a bit different but same useless rows