Author Topic: Version 2.0 for Vera Concierge  (Read 2463 times)

Offline RichardTSchaefer

  • Moderator
  • Master Member
  • *****
  • Posts: 10091
  • Karma: +763/-142
Version 2.0 for Vera Concierge
« on: October 28, 2017, 07:31:21 pm »
I have the following planned for Version 2.0
1) Support for Broadlink  IR Devices
    a) Auto Discovery
    b) Record IR from Any Broadlink device, Send to Any Broadlink device.
    c) IR commands logically contained in a folder,  i.e. a Samsung TV Folder, with commands for Volume Up, Volume Down, Mute, ...
2) Google Home/Google Assistant (Vera Concierge) commands to support Broadlink devices.
    Use Remote "Folder Name" on/in/for device "Broadlink name"
    i.e.   Use  Remote Samsung TV in the Living Room
    Then you just say commands like
     Volume Up
     Mute
     Menu
     Up
     ...
     repeat or again
     Select
     exit
     done
3) Google Home/Google Assistant (Vera Concierge) commands to support scheduling
     Existing Vera Concierge Syntax with options for:
          at 11 PM
          after 15 minutes.
 
    i.e.  Alarm the House at 11 PM
           Turn of TVs in 30 minutes
           Cancel last
           Cancel all       
    The Active status command will also list active schedules.
4) The ability to use the Google Home Automation Voice Commands (In addition to or in lieu of, the Vera Concierge Voice semantics) with your Local Concierge Server.
     Configurable via the Local Concierge Server customization page.
     (i.e. what can be used, and use the first alias if defined for the device, scene, and/or room name)
5) Turn on License Nagging for those that do not have a license.
« Last Edit: October 28, 2017, 07:34:09 pm by RichardTSchaefer »

Offline RichardTSchaefer

  • Moderator
  • Master Member
  • *****
  • Posts: 10091
  • Karma: +763/-142
Re: Version 2.0 for Vera Concierge
« Reply #1 on: November 13, 2017, 07:10:07 am »
Version 2 is coming along nicely.
The following has already been released:
1) Support for Broadlink IR Devices
     You will need my "Broadlink RM Vera Concierge" plugin.
4) Waiting on Google to accept my "Home Control" plugin .. Then ...
 The ability to use the Google Home Automation Voice Commands (In addition to or in lieu of, the Vera Concierge Voice semantics) with your Local Concierge Server.
     Configurable via the Local Concierge Server customization page.
     (i.e. what can be used, and use the first alias if defined for the device, scene, and/or room name)
     With this you just say:
              OK Google Turn on the Office Light 
     Since Google provides all of the speech detection ... I am expecting that this will support other languages right away.

« Last Edit: November 13, 2017, 07:13:16 am by RichardTSchaefer »

Offline bbosch

  • Sr. Newbie
  • *
  • Posts: 39
  • Karma: +0/-0
Re: Version 2.0 for Vera Concierge
« Reply #2 on: November 17, 2017, 04:24:34 pm »
Awesome!
Thanks Richard. Keep us posted.

Offline brsipaq

  • Jr. Member
  • **
  • Posts: 54
  • Karma: +1/-0
Re: Version 2.0 for Vera Concierge
« Reply #3 on: November 17, 2017, 05:48:52 pm »
This looks great, just got a Google Home Mini.  Unfortunately, I'm still on Vera 1 which is UI4.  Any chance that can be added?  I understand if it can't.

Thanks,
Brian
Controllers - Vera firmware 979 Dongle version 2.78 L:1, GE 45601 and 45608, HA07c, HA09c
Outlets/Switches - HA01c, (2) HA02c, (4) VRI06, (2) VRS15, HA04c (Not used yet) Sensor - HRDS1 Door/Window (garage door) Thermostat - WDTC-20 IP Camera - Linksys WVC54GCA

Offline RichardTSchaefer

  • Moderator
  • Master Member
  • *****
  • Posts: 10091
  • Karma: +763/-142
Re: Version 2.0 for Vera Concierge
« Reply #4 on: November 17, 2017, 06:05:02 pm »
It should work ... Just mark it as UI5.

Offline cw-kid

  • Hero Member
  • *****
  • Posts: 1544
  • Karma: +13/-2
Re: Version 2.0 for Vera Concierge
« Reply #5 on: November 28, 2017, 12:11:49 pm »
I dont currently have a Broadlink RM Pro but will Vera Concierge be able to control RF433 mhz devices on the Broadlink as well as IR devices?

Thanks.

Offline RichardTSchaefer

  • Moderator
  • Master Member
  • *****
  • Posts: 10091
  • Karma: +763/-142
Re: Version 2.0 for Vera Concierge
« Reply #6 on: November 28, 2017, 08:00:14 pm »
I have released RF support ... but can not test ... because I do not have any devices.

Offline RichardTSchaefer

  • Moderator
  • Master Member
  • *****
  • Posts: 10091
  • Karma: +763/-142
Re: Version 2.0 for Vera Concierge
« Reply #7 on: December 03, 2017, 04:59:58 pm »
You can now issue voice commands to control your Broadlink remotes.
I have not implemented the Last, ad repeat functionality yet.

Offline kapstaad

  • Sr. Newbie
  • *
  • Posts: 48
  • Karma: +2/-0
Re: Version 2.0 for Vera Concierge
« Reply #8 on: December 18, 2017, 01:10:20 am »
Richard, wasn't sure where else to put this... but a development-themed thread seemed like a reasonable candidate. ;)

First up: THANK YOU for your continued work supporting Vera!

And now, down to business... I'm running VeraConcierge on a Pi3. I hit two significant roadblocks during installation; one was caused by my trying to run the initial "java -jar ConciergeServer" command from an ssh shell.  The installer kept complaining about a missing libarary and quitting, because (I finally figured out) the jar file was trying to access the Xwindows environment while I was running headless.  If there was something in the install docs which explained this, I missed it, but the install MUST be run from a terminal window on the Pi desktop, not from a shell, because the install process tries to launch a browser to configure the local server.  Personally, I'd prefer a version that eliminated the graphics dependency(ies) so as to run cleanly under an ssh shell, and exited with a message telling me to point my Windows/Mac/iPad/iPhone browser at the appropriate URL to start configuration... but perhaps a "README.txt" item detailing the graphical environment requirement would suffice for the short term  8)

The second roadblock was that, after I finally figured my way past the first problem and I got a browser window to launch from the install, the server seemed like it had started, but was refusing all connections.  "ps ax" was showing java up and running the right file; I just couldn't connect to it as though the port was blocked.  It took me an hour of poking around until I finally saw the "-delay 60" and in the init.d script, the proverbial lightbulb came on and I realized it might just be sleeping... so I let it sit for over a minute and tried again.  Bingo! :P

I subsequently found that you wrote in a sticky thread in this forum:

Quote
I found some problems when testing on a Raspberry Pi 3.
The network does not become stable for almost 1 minute after booting.
By then the Vera Concierge has already failed trying to connect the Vera Cloud Servers.

For normal operation the ConciergeServer jar file is run with a single argument:

        java -jar ConciergeServer service
I have added some more arguments (available in 2.009) to help solve these problems:
-log  LogFilePath
-delay SecondsToDelay

Well, ok then!  I wish I'd read that sooner  ::) ;D ... Even so, the solution you implemented has the downside of having the VC server remain unreachable for the first minute after every restart -- even a soft restarts, like updates.  And it's also unavailable for the first 60 seconds after boot, even if the network were to become available after (say) 30s (mine is usually up in around 20s).

As a workaround, I've dumped the init.d script and am using systemctl instead.  I think it's cleaner, easier, more efficient and requires less maintenance than wrangling shell scripts :P  If you'd like to try it out, here are the details (I'm assuming ConciergeServer.jar was installed in /home/pi/VC):

1. sudo bash
2. create /home/pi/VC/vc.service with perms -rw-r--r-- (644) and add contents as follows:

Code: [Select]
[Unit]
Description=Vera Concierge
Wants=network.target
After=network.target

[Service]
Type=simple
WorkingDirectory=/home/pi/VC
ExecStart=/usr/bin/java -jar /home/pi/VC/ConciergeServer.jar service

[Install]
WantedBy=multi-user.target

3. create a softlink to the file for systemctl to find: I've called mine "myvc" to save typing ;D

Code: [Select]
ln -nsf /home/pi/VC/vc.service /etc/systemd/system/myvc.service
4. inform systemd of the changes:

Code: [Select]
systemctl daemon-reload
and finally,
5. start the service:
Code: [Select]
systemctl start myvc
Now your server will be started on reboots as soon as the network is available, but not before.  And it will be available immediately after any soft restart (software update, etc).

I have a suggestion for the configuration system: can the "save changes" button on the customization page perform the same action(s) as found on the "My Account" page, ie force rediscovery?  I found that when aliases are added on the custom pages and "Save Changes" is clicked, the changes are saved but not initially recognized -- ATM I have to click the "Force Discovery of new/changed Devices/Scenes" button on the My Account page (so I have to keep it open on another tab) to make the changes take effect.

I'm LOVING the Google Assistant shortcuts!  FAR better than telling Alexa: "turn on Close Garage Door" :o ::) <cringe>... I now simply say "Hey Google, Close the Garage Door" ... and that's that!  No more "Alexa, turn on bedtime scene".  Now I just say "OK Google, time for bed!" and all the usual lights/security stuff happens.  Beautiful!

Thanks so much for creating this bridge, Richard!  After a week or so now of wrestling with the broken Amazon/Vera Scene linkage fiasco, I finally had the impetus to get stuck into the VeraConcierge stuff, and I'm SO glad I did! :D :D :D

Offline RichardTSchaefer

  • Moderator
  • Master Member
  • *****
  • Posts: 10091
  • Karma: +763/-142
Re: Version 2.0 for Vera Concierge
« Reply #9 on: December 18, 2017, 10:07:58 am »
For rediscovery ...

OK Google Reset "My Vera Name"

or

OK Google Use "My Vera Name"

Even if you only have one Vera, the "Use" command will rediscover any new/renamed  devices and/or aliases.

Offline GaryOkie

  • Jr. Member
  • **
  • Posts: 76
  • Karma: +4/-0
Re: Version 2.0 for Vera Concierge
« Reply #10 on: December 18, 2017, 04:16:19 pm »
Just learned of a new Google update which enables the command:  "OK Google, resync my devices".

This will automatically add any newly added HA devices that were linked.   No longer do you have to unlink/relink the HA account and then have to respecify the rooms for each and every device all over again!

I don't think this applies to VeraConcierge until it is approved by Google and can be linked directly, but it sure works great for the devices controlled by my Wink hub.

Offline RichardTSchaefer

  • Moderator
  • Master Member
  • *****
  • Posts: 10091
  • Karma: +763/-142
Re: Version 2.0 for Vera Concierge
« Reply #11 on: December 18, 2017, 08:06:03 pm »
I will add a resync alias to the use command in addition to the reset alias for Vera concierge ... to be compatible.

Offline kirbyb

  • Jr. Member
  • **
  • Posts: 70
  • Karma: +0/-0
Server on Raspberry Pi 3.0
« Reply #12 on: January 23, 2018, 10:57:04 am »
Help,

It doesn't work for me....  I'm certain I'm doing something wrong, but having trouble figuring out debug strategy.  I previously had it running on a Windows laptop....  I deleted the jar file from that system and am now trying to get it running on a Raspberry Pi 3.0.  I'm fairly familiar with linux in general, but am fairly new to the Pi world. 

I created a directory /home/pi/Vera and copied the jar file in there.  I ran /usr/bin/java -jar ConciergeServer.jar per the instructions, and it seemingly worked fine.  I installed the certificate so that the browser warning goes away (although https: is still crossed out and in red).  I put in my userid and password, and picked Ui6+ Case sensitive, and pressed Update and Restart, and none of my Vera's show up in the list (I have three, one master and two in outbuildings).

Here's a partial log:

23-Jan-2018 09:52:05 V:CSWebContainer:Config Cmd:/Query?Discovered=
23-Jan-2018 09:52:07 V:CSWebContainer:Cmd:/Log?
23-Jan-2018 09:52:12 V:CSWebContainer:Cmd:/Log?
23-Jan-2018 09:52:17 V:CSWebContainer:Cmd:/Log?

The 'lack' of anything after Discovered leads me to believe its not seeing the Vera units...

In another forum, someone suggested adding elinks, so I did that (apt-get install elinks) but no effect..  and I ran this also:

xdg-open https://localhost:8989, but no effect either (well, ok, it brought up a browser)

My first thought is it might be a firewall issue...  I'm a little rusty on linux firewalls, I'll start looking there first.

Any suggestions?

Kirby

Offline RichardTSchaefer

  • Moderator
  • Master Member
  • *****
  • Posts: 10091
  • Karma: +763/-142
Re: Version 2.0 for Vera Concierge
« Reply #13 on: January 23, 2018, 08:04:48 pm »
Are you sure the concierge server is running ... it is setup to be configured in an interactive linux environment.

You need Java 8 and the graphical sudo command ... you may have to edit the install/update/uninstall script files if you do not have the graphical sudo command.

Offline Newzwaver

  • Sr. Member
  • ****
  • Posts: 262
  • Karma: +4/-3
Re: Version 2.0 for Vera Concierge
« Reply #14 on: February 01, 2018, 07:55:14 pm »
Hi Richard,

How do I get the plugin Vera Concierge?  I can see it in the app list.