[RELEASE] Welcome Home


#101

@bptworld

Love the app! So now for feature request(s) lol.

I have (3) entry points each with its own HE supported TTS device. Is it possible to add a feature that allows me to associate each entry point with its appropriate TTS device and then announce to the device which triggers it?

Example:

  1. Front door contact sensor with Front Entry TTS device
  2. Garage door contact sensor with Kitchen TTS device
  3. Patio door contact sensor with Family Room TTS device

Presence for person #1 and #2 register and triggers Welcome Home. Which ever contact sensor opens/closes (set for closes) the message announces on that associated TTS speaker and now that notification is finished.

Thoughts?


#102

Thanks.

Just have to make 3 child apps to do this. One for each door/tts device combo that you would like.


#103

After the message is spoken once will it not repeat on the other two child apps when the contact sensors close??


#104

It will only speak on the one being triggered, only way it would retrigger is if you opened another door within the 'How many minutes can the presence sensor be home and still be considered for a welcome home message '

So if you had it set to 10 minutes. Come home and go in through the Garage door, kitchen tts would speak. But, if you went and opened the patio door within that 10 minutes, it would trigger again and speak on the family room tts (based on your examples). Make sense?


#105

Yeah that is what I don’t want to happen. Usually we get back and then let dogs out. Is there a way to add a cancel to the valid minutes after an announcement?


#106

Let me look into it.


#107

Stupid question here, i have ordered a hubitat (i live in norway) so i am doing some research.

Come across this app and i like it.

Have one question since i cant test myself.

I only want this to trigger. When no one is home. So for example if my wife comes home and my door opens, i dont want it to fire, because that can get spammy quick, if we keep closing / opening the door.

So if no one is home, and x comes home, i want hey, welcome home x, if y comes home, then welcome home y. If both persons come home at the same time, welcome home x and y? Is that possible.


#108

That's exactly what this app does!


#109

V2.0.0 - 02/11/19 - Major rewrite. Friendly Names for presence sensors are now in Parent app, so they can be shared across multiple child apps. Welcome Home now requires a new 'Virtual Device' using our custom 'Global Variables Driver'. Each child app will link to the same 'Virtual Device'. This way we can track who came home across multiple child apps!

After installing the new parent/child, make sure to go to Github and get the NEW driver to install. Once all 3 (parent/child/driver) have been installed, the parent app and each child app previously created will need to be modified to the new format. Please go into each parent/child and replace the missing data.

Thanks!


#110

@bptworld

I have errors with the new code:

[app:1898](http://10.0.2.38/logs#app1898)2019-02-11 08:38:35.856 am [error](http://10.0.2.38/installedapp/configure/1898)java.lang.NullPointerException: Cannot get property 'value' on null object on line 711 (contactSensorHandler)

[app:1898](http://10.0.2.38/logs#app1898)2019-02-11 08:38:35.839 am [debug](http://10.0.2.38/installedapp/configure/1898)Welcome Home - Front Door - *********** In nameCount=1: myCount = 0

[app:1898](http://10.0.2.38/logs#app1898)2019-02-11 08:38:35.836 am [debug](http://10.0.2.38/installedapp/configure/1898)Welcome Home - Front Door - In getName...Number of Names: 1 - Names: [null]

[app:1898](http://10.0.2.38/logs#app1898)2019-02-11 08:38:35.834 am [debug](http://10.0.2.38/installedapp/configure/1898)Welcome Home - Front Door - In getName...

[app:1898](http://10.0.2.38/logs#app1898)2019-02-11 08:38:35.833 am [debug](http://10.0.2.38/installedapp/configure/1898)Welcome Home - Front Door - Greeting = Morning

[app:1898](http://10.0.2.38/logs#app1898)2019-02-11 08:38:35.830 am [debug](http://10.0.2.38/installedapp/configure/1898)Welcome Home - Front Door - timeHH = 8

[app:1898](http://10.0.2.38/logs#app1898)2019-02-11 08:38:35.822 am [debug](http://10.0.2.38/installedapp/configure/1898)Welcome Home - Front Door - In getGreeting...

[app:1898](http://10.0.2.38/logs#app1898)2019-02-11 08:38:35.820 am [debug](http://10.0.2.38/installedapp/configure/1898)Welcome Home - Front Door - getGroup1 - randomKey1 = 4

[app:1898](http://10.0.2.38/logs#app1898)2019-02-11 08:38:35.771 am [debug](http://10.0.2.38/installedapp/configure/1898)Welcome Home - Front Door - In getGroup1...

[app:1898](http://10.0.2.38/logs#app1898)2019-02-11 08:38:35.705 am [debug](http://10.0.2.38/installedapp/configure/1898)Welcome Home - Front Door - Changed msgComp to lowercase = %random%

[app:1898](http://10.0.2.38/logs#app1898)2019-02-11 08:38:35.704 am [debug](http://10.0.2.38/installedapp/configure/1898)Welcome Home - Front Door - In compileMsg...message1 = %random%

[app:1898](http://10.0.2.38/logs#app1898)2019-02-11 08:38:35.702 am [debug](http://10.0.2.38/installedapp/configure/1898)Welcome Home - Front Door - Time restrictions have not been configured - Continue

[app:1898](http://10.0.2.38/logs#app1898)2019-02-11 08:38:35.700 am [debug](http://10.0.2.38/installedapp/configure/1898)Welcome Home - Front Door - In checkTime...

[app:1898](http://10.0.2.38/logs#app1898)2019-02-11 08:38:35.699 am [debug](http://10.0.2.38/installedapp/configure/1898)Welcome Home - Front Door - In talkNow1...

[app:1898](http://10.0.2.38/logs#app1898)2019-02-11 08:38:35.697 am [info](http://10.0.2.38/installedapp/configure/1898)Welcome Home - Front Door - null - No announcement needed. Time Diff = 5181

[app:1898](http://10.0.2.38/logs#app1898)2019-02-11 08:38:35.666 am [debug](http://10.0.2.38/installedapp/configure/1898)Welcome Home - Front Door - getTimeDiff4 - getTimeDiff4 - timeDiff: 5181

[app:1898](http://10.0.2.38/logs#app1898)2019-02-11 08:38:35.664 am [debug](http://10.0.2.38/installedapp/configure/1898)Welcome Home - Front Door - getTimeDiff4 - lastActivity: 2019-02-07 18:18:04.011

[app:1898](http://10.0.2.38/logs#app1898)2019-02-11 08:38:35.663 am [debug](http://10.0.2.38/installedapp/configure/1898)Welcome Home - Front Door - getTimeDiff4 - Global Been Here: null

[app:1898](http://10.0.2.38/logs#app1898)2019-02-11 08:38:35.661 am [debug](http://10.0.2.38/installedapp/configure/1898)Welcome Home - Front Door - getTimeDiff4 - Presence Sensor Status - 4: present

[app:1898](http://10.0.2.38/logs#app1898)2019-02-11 08:38:35.621 am [debug](http://10.0.2.38/installedapp/configure/1898)Welcome Home - Front Door - In getTimeDiff4...

[app:1898](http://10.0.2.38/logs#app1898)2019-02-11 08:38:35.595 am [debug](http://10.0.2.38/installedapp/configure/1898)Welcome Home - Front Door - Presence Sensor: not present - No announcement needed.

[app:1898](http://10.0.2.38/logs#app1898)2019-02-11 08:38:35.593 am [debug](http://10.0.2.38/installedapp/configure/1898)Welcome Home - Front Door - Global Been Here: null

[app:1898](http://10.0.2.38/logs#app1898)2019-02-11 08:38:35.590 am [debug](http://10.0.2.38/installedapp/configure/1898)Welcome Home - Front Door - Presence Sensor Status - 3: not present

[app:1898](http://10.0.2.38/logs#app1898)2019-02-11 08:38:35.571 am [debug](http://10.0.2.38/installedapp/configure/1898)Welcome Home - Front Door - In getTimeDiff3...

[app:1898](http://10.0.2.38/logs#app1898)2019-02-11 08:38:35.566 am [info](http://10.0.2.38/installedapp/configure/1898)Welcome Home - Front Door - null - No announcement needed. Time Diff = 744

[app:1898](http://10.0.2.38/logs#app1898)2019-02-11 08:38:35.548 am [debug](http://10.0.2.38/installedapp/configure/1898)Welcome Home - Front Door - timeDiff: 744

[app:1898](http://10.0.2.38/logs#app1898)2019-02-11 08:38:35.543 am [debug](http://10.0.2.38/installedapp/configure/1898)Welcome Home - Front Door - lastActivity: 2019-02-10 20:14:07.824

[app:1898](http://10.0.2.38/logs#app1898)2019-02-11 08:38:35.541 am [debug](http://10.0.2.38/installedapp/configure/1898)Welcome Home - Front Door - Global Been Here: null

[app:1898](http://10.0.2.38/logs#app1898)2019-02-11 08:38:35.538 am [debug](http://10.0.2.38/installedapp/configure/1898)Welcome Home - Front Door - Presence Sensor Status - 2: present

[app:1898](http://10.0.2.38/logs#app1898)2019-02-11 08:38:35.522 am [debug](http://10.0.2.38/installedapp/configure/1898)Welcome Home - Front Door - In getTimeDiff2...

[app:1898](http://10.0.2.38/logs#app1898)2019-02-11 08:38:35.493 am [info](http://10.0.2.38/installedapp/configure/1898)Welcome Home - Front Door - null just got here! Time Diff = 1

[app:1898](http://10.0.2.38/logs#app1898)2019-02-11 08:38:35.490 am [debug](http://10.0.2.38/installedapp/configure/1898)Welcome Home - Front Door - null: globalBH1: no - globalBH2: null - globalBH3: null - globalBH4: null - globalBH5: null

[app:1898](http://10.0.2.38/logs#app1898)2019-02-11 08:38:35.434 am [debug](http://10.0.2.38/installedapp/configure/1898)Welcome Home - Front Door - timeDiff: 1

[app:1898](http://10.0.2.38/logs#app1898)2019-02-11 08:38:35.432 am [debug](http://10.0.2.38/installedapp/configure/1898)Welcome Home - Front Door - lastActivity: 2019-02-11 08:37:58.135

[app:1898](http://10.0.2.38/logs#app1898)2019-02-11 08:38:35.431 am [debug](http://10.0.2.38/installedapp/configure/1898)Welcome Home - Front Door - Global Been Here: no

[app:1898](http://10.0.2.38/logs#app1898)2019-02-11 08:38:35.429 am [debug](http://10.0.2.38/installedapp/configure/1898)Welcome Home - Front Door - Presence Sensor Status - 1: present

[app:1898](http://10.0.2.38/logs#app1898)2019-02-11 08:38:35.423 am [debug](http://10.0.2.38/installedapp/configure/1898)Welcome Home - Front Door - In getTimeDiff1...

[app:1898](http://10.0.2.38/logs#app1898)2019-02-11 08:38:35.421 am [debug](http://10.0.2.38/installedapp/configure/1898)Welcome Home - Front Door - In contactSensorHandler...canSpeak: no

[app:1898](http://10.0.2.38/logs#app1898)2019-02-11 08:38:35.420 am [debug](http://10.0.2.38/installedapp/configure/1898)Welcome Home - Front Door - In contactSensorHandler...Pause: false

[app:1898](http://10.0.2.38/logs#app1898)2019-02-11 08:38:35.418 am [debug](http://10.0.2.38/installedapp/configure/1898)Welcome Home - Front Door - Continue - App NOT paused

[app:1898](http://10.0.2.38/logs#app1898)2019-02-11 08:38:35.417 am [debug](http://10.0.2.38/installedapp/configure/1898)Welcome Home - Front Door - contact Status: = closed

[app:1898](http://10.0.2.38/logs#app1898)2019-02-11 08:38:31.901 am [debug](http://10.0.2.38/installedapp/configure/1898)Welcome Home - Front Door - contact Status: = open

[app:1898](http://10.0.2.38/logs#app1898)2019-02-11 08:37:58.193 am [debug](http://10.0.2.38/installedapp/configure/1898)Welcome Home - Front Door - Presence Sensor is present - Let's go!

[app:1898](http://10.0.2.38/logs#app1898)2019-02-11 08:37:58.190 am [debug](http://10.0.2.38/installedapp/configure/1898)Welcome Home - Front Door - IN presenceSensorHandler1 - Presence Sensor = present

[app:1898](http://10.0.2.38/logs#app1898)2019-02-11 08:37:56.856 am [debug](http://10.0.2.38/installedapp/configure/1898)Welcome Home - Front Door - Presence Sensor is not present - Been Here is now off.

[app:1898](http://10.0.2.38/logs#app1898)2019-02-11 08:37:56.854 am [debug](http://10.0.2.38/installedapp/configure/1898)Welcome Home - Front Door - IN presenceSensorHandler1 - Presence Sensor = not present

Parent:

Child - Front Door:



Child - Garage Door:




#111

Update your child app and let me know how it goes...

V2.0.1 - 02/11/19 - Troubleshooting problem with Friendly Name


#112

It works between speakers. Now new issue. Volume is not being respected for my music player.


#113

Going to need more info than that. What's it not doing?

Absolutely nothing has changed with that section of the app between versions.


#115

NVM I found the issue. Apparently there was an update to the Sonos Driver and now where the TTS Level Adjust setting is forced to 10%. I changed that to No Change and now the app works correctly.


#116

do we need to do anything with the driver other than create it and select it in the app? Also I uses SONOS is it best to use that as a music player or speech synth?


#117

Nope, no need to do anything with the driver. It's just their to pass the variables back and forth between the child apps.

I don't own any Sonos devices but I think you need to select music player for them to work.


#118

That is correct. Only music player will list them.


#119

Hello

I updated the Child app code and when I updated my WH routine, the Done button doesn't do anything and I see this in the log

Thoughts?
Rick


#120

Did you install the new driver?


#121

Thanks bptworld, that did the trick

I didn't see the Driver need up about 12 posts, sorry for the miss

Rick