Re: Debug your Configuration

Regarding Step 6, I’m confused…

No luck with UI7, UI6, or UI5 on my VeraEdge. :frowning:

I’ve tried installing the JAR on a Windows 10 machine and also in Linux on my Raspberry Pi 3. Random errors when I click “Local Concierge Server Connectivity”. What output is correct?

Does this support Raspberry Pi or Windows 10?

Which VeraEdge firmware is supported?

What is the ConciergeServer (https://localhost:8989) reporting as the Local IP address for the server ? It’s in the discovery section.

Update step 1
Check that the Concierge Server is getting the Correct static IP address
Verify that you have a Version 1.8 (or newer) JVM

On my Rasbberry Pi 3 with an IP address of 192.168.100.102

When I issue the command hostname I get raspberrypi

I had to add the following line to the file /etc/hosts for this hostname
192.168.100.102 raspberrypi

Yay!

Getting further. Now, when I click the “Local Concierge Server Connectivity” button, I get the below info:

{“Restart”:false,“IP”:“192.168.1.23”,“JVM”:“1.8.0_65”,“Veras”:[{“Name”:“RamonaHome”,“IPAddress”:“192.168.1.8”,“SerialNumber”:“xxxxxxxx”,“LastUpdate”:“May 2, 2017 10:26:58 AM”,“License”:""}],“CastDevices”:[]}

Thanks,

Kevin

Now you are easy to tart talking …
Was the problem the IP address?

[quote=“RichardTSchaefer, post:5, topic:197876”]Now you are easy to tart talking …
Was the problem the IP address?[/quote]

Yeah, previously the IP address was stuck at 127.0.0.1 (which was incorrect).

Two things:

I found a new bug - under Discovered Devices > Vera Devices, when I click the “Custom Settings” button, a new browser window opens and then I get a “This page isn’t working” error in Chrome. The URL of the new page is: https://192.168.1.23:8989/Custom?xxxxxxx (with my correct serial number, but I masked it here). This is on the Linux version.

Second thing: I don’t have any Google Home devices. Since this app doesn’t work with mobile phones - per Google’s answer - how else can I speak to the app, if possible?

Thanks,

Kevin

Sorry can’t duplicate the chrome problem.

Does it open a blank browser window ?
If so right click in it and select “Inspect”
This will open the browser debug window.
Refreh/Reload the empty browser window:
https://192.168.1.23:8989/Custom?xxxxxxx

Then look in the console tab … for any errors:
Then look in the network tab … Look around in there see if you seen anything that looks bad.
[hr]
You may also want to follow the thread:
http://forum.micasaverde.com/index.php/topic,48892.0.html

[quote=“RichardTSchaefer, post:7, topic:197876”]Sorry can’t duplicate the chrome problem.

Does it open a blank browser window ?
If so right click in it and select “Inspect”
This will open the browser debug window.
Refreh/Reload the empty browser window:
https://192.168.1.23:8989/Custom?xxxxxxx

Then look in the console tab … for any errors:
Then look in the network tab … Look around in there see if you seen anything that looks bad.
[hr]
You may also want to follow the thread:
http://forum.micasaverde.com/index.php/topic,48892.0.html[/quote]

This is what I get: net::ERR_EMPTY_RESPONSE

What is the expected behavior for the “Custom Settings” button?

[quote=“RichardTSchaefer, post:1, topic:196190”][ul]I am sorry that I have not been able to make the setup 100% bullet proof. With your help and feedback I hope to get there soon.
If you have problems tell me what you have been able to accomplish from this list … and provide me with your Vera Serial number.
You can send me a personal message or email me.

The following should help you get going and provide me with information to help you proceed.
[list type=decimal]
[li]Install the local ConciergeServer software and configure it from the browser
https://localhost:8989
If you want to access this local ConciergeServer from another machine use:
https://IP.Address.OfComputer.RuningConciergeServer:8989
Verify that the detected Concierge Server address is the static IP address of the machine running the software and not the loopback address 127.0.01
Verify that you are using a Java 1.8 Virtual Machine.
These can be check by looking at the “Discovery” section from browser before you start configuring.
[/li]
[li]Configure your Vera Remote Access Accounts
Verify that it discovers your Veras
It should also find your Local Google Home and Google Cast Devices.
[/li]
[li]At the bottom of the local ConciergeServer configuration page click:
Update Vera Concierge Server Cloud Info
[/li]
[li]Login to the Cloud Vera Concierge “My Account” page with the same Google Account you will use to run you Google Assistant software
(via Google Home, or your mobile phone)
[/li]
[li]Click the button labeled:
Vera Connectivity

  If your Vera id is 5001076 At the bottom you should see something like:
            {"VeraConnectvity" : "50001076") 

 This Verifies that the Vera Concierge Cloud server can talk your local Vera (via the Vera Remote Access Servers)) to send commands to it.

[/li]
[li]Click the button labeled:
Local Concierge Server Connectivity
[/li]
[li]This should show a bunch of meaningless stuff …
If it generates a long line that starts like:
{“Restart”:

If this works this means that the Vera Concierge Cloud server can get configuration information from the local Concierge Server (via the Remote Access Server to your local Vera then via your Vera to the Local Concierge Server). 

[/li]
[li]If step 7 does not work then check the following:
[list]
[li]On your Vera Open Apps -> Develop Apps -> Luup Startup
Verify there is a line:
require(“ConciergeServer”)
[/li]
[li]On your Vera Open Apps -> Develop Apps -> Luup File
Make sure you have a file named:
ConciergeServer.lua
[/li]
[li]Reload your Vera and try step 6 again.
[/li]
[/list]If that does not work:
Monitor your log for you Vera:
http://Your.Vera.IP.Address/cgi-bin/cmh/log.sh?Device=LuaUPnP
Do step 6 again …
Send me the Log file and your Vera Serial Number (ID)
[/li]
[li]If step 7 completes than all of the communication paths are setup properly. Not it’s time to start talking.
On your Google Home say:
OK google talk to Vera Concierge
It may not recognize this … you might try to spell out Vera the first time …
OK google talk to V E R A Concierge
It gets better after it successfully understands you…
[/li]
[li] If you have a light called Office Light than you can say:
Turn on the Office Light
[/li]
[li] If It does not understand you you can also say goodbye …
Then Open your Google Home app on your mobile.
Look for “More Settings” than at the bottom of that menu … “My Activity”
You can see what you said what Vera thought you said.
Maybe you said Light, but Google assistant though you said lite.
We can fix that two ways
a) Spell out light
Turn on the Office L I G H T
It will learn as it goes
b) Give your Office Light an alias called Office Lite
Go to your local ConciergeServer (See step 1)
Next to your Vera (in the Discovered Devices Section) click “Custom Settings”
Find your Device and add an Alias
Go back to the Browser page showing the ConciergeServer (See step 1) and click “Update Vera Concierge Server Cloud Info”
This will force the Google Assistant to rebuild it’s knowledge of your devices and setting.
[/li][/list][/ul][/quote]

Customization provides the following:

For Each Device on Vera (that Concierge Server can control) it provides the following options:
a) Aliases that can be used as well as the Vera Name for the device.
b) Ability to totally ignore this device.
c) Ability to have the device ignored by the “Active Status” command.
d) Ability to have the device excluded from the “All devices in a room” option.

For each device class … what constitutes the devices being considered action.
PIN numbers for use to disarm the alarm. More options here in subsequent releases.

You do not have to make any settings here for Vera Concierge to work … it allows you to tweak things.

Thanks. It’s not what I’m seeing for some reason.

Well, it was kinda painful, but I got it connected with a few minor problems. Congratulations on a very useful idea. :slight_smile:

I can turn lights on/off ok and I can ask “What is the status of my door lock” just fine.
If I ask for the “state” instead of status it asks
“What is the cmdactive” and no matter what I respond with, it just repeats that question until I say goodby.
It also does this if I ask “what is the thermostat humidity?”

Why is it asking this? How can I respond in a way that it won’t disconnect?

On another topic, I saw no mention of the license duration. Month? Year? Lifetime? Multiple Lifetime?

Thanks again for a great bit of software,
Jim

On Windows if it fails the “Local Concierge Server Connectivity Test” it might be the Windows Firewall.
Temporarily turn off the Windows Firewall and try again.
If it works now you need to add a rule to the Firewall to allow connections from ports 8998 and 8989.

Hi Richard,
I am having problems at step 4/5 . My unit (vera 3 ui7) is not showing up on the my account page when i log in with my google account. I have tried all of the account types in the local vera account login box ui5, ui6+, ui6+casesensitiveusername with no success

[quote=“RichardTSchaefer, post:13, topic:197876”]On Windows if it fails the “Local Concierge Server Connectivity Test” it might be the Windows Firewall.
Temporarily turn off the Windows Firewall and try again.
If it works now you need to add a rule to the Firewall to allow connections from ports 8998 and 8989.[/quote]

Oops, forgot to respond. This solved my problem.
Thanks

Hi Richard.

My log is huge. How best should i post it? PasteBin the log and post the URL here?

I have made sure I have a file named ConciergeServer.lua
Reload your Vera

I have my logs but they are huge
http://Your.Vera.IP.Address/cgi-bin/cmh/log.sh?Device=LuaUPnP

Thanks
Nick

hi Richard
Should the conciergeServerlua include the server address?
its missing in mine

[code]odule(“ConciergeServer”, package.seeall)

– Vera Concierge Server
– Copyright © 2017 Richard T. Schaefer

https = require (“ssl.https”)

local Server = “”
local Version = “1.029”
local svs = “urn:rts-services-com:serviceId:vcs”

local function log(msg)
luup.log(“VCS:” … tostring(msg))
end

local function dump(o)
local ot = type(o)
if (ot == ‘table’) then
local s = “{”
for k,v in pairs(o) do
local r = dump(v)
s = s … ‘[’ … k …’] = ’ … r … ', ’
end
return s … ‘}’
else
if (ot == ‘function’) then
return “*function”
else
return tostring(o)
end
end
end

local function VCSProxy(request, parameters, outputformat)
log(“Parameters:” … dump(parameters))
local result = “Error”
if (parameters.Request) then
local url = ‘https://’ … Server … ‘:8989’ … parameters.Request
log(“URL:” … dump(url))
local b, h = https.request(url)
log(“B:” … dump(b))
log(“H:” … dump(h))
result = b
if (not b) then
Init()
end
end
return result, ‘text/json’
end

function Init()
Server = luup.variable_get(svs, “Server”, 1)
luup.variable_set(svs, “InitVersion”, Version, 1)
luup.variable_set(svs, “Version”, Version, 1)
log(“Version:” … Version …" Server:" … Server)
luup.register_handler(“VCSProxy”, “VCSProxy”)
_G.VCSProxy = VCSProxy
end
Init()

[/code]

The ConciergeServer.lua is NOT modified.
The server variable is just initialized to an empty string.
Later in the initialization it reads the value from a Vera Attribute (luup.variable_get) (Which is set by the Concierge Server).

When I try ask google to do something it says my account is not linked. I have signed into my Google account on https://veraconcierge.appspot.com/web/Account. When I go to the assistant apps on my phone and find the Vera Concierge app and click link accounts I am taken to a page with my Google accounts, when I select any account the page starts to load but never completes.

Just checked google account settings https://myaccount.google.com/permissions?pli=1
and Vera Concierge is a listed app.

Vera Concierge has access to:
Basic account info
View your email address
View your basic profile info

Hi, This is all very exciting however I’m failing at Step 6 :’( . Nothing happens when I select the ‘Local Concierge Server Connectivity’ button.

I’ve gone over step 8 and disabled the firewall.
I’ve checked that the Vera has “require(“ConciergeServer”)”.

What seems to be missing is the file ‘ConciergeServer.lua’ . Is this meant to be automatically generated or do I need to upload a file with that name?

Thanks!