[Deprecated] Welcome Home

If I remember correctly, there are some commands set the level and speak at a preset level and restore the prior level when done. There is a lot of documentation on the github for Echo Speaks and you can see the available commands in the drivers it create for each device. You may need to create RM Custom Commands to use these, that is what I did.

Multiple messages will be generated. It is not a smooth as the old webCore piston, but I don't let 'perfect' prevent 'good'. It also does not have the delay for motion or contact that the webCore piston and HE Welcome Home has. The RM implementation works well for me and does not require any large custom app just for the announcement, so that is what I choose to use.

OK, so I setup an arrival announcement child app to go when someone arrives and either the garage door or front door sensor opens. However, nothing seemed to happen. Where do I need to look to see what is the problem? This was in the logs for the child app:

app:8452019-03-15 06:05:51.876 pm debugAnnounce Arrivals - Presence Sensor is present - Let's go!

app:8452019-03-15 06:05:51.876 pm debugAnnounce Arrivals - IN presenceSensorHandler2 - Presence Sensor = present
app:8452019-03-15 05:57:27.331 pm debugAnnounce Arrivals - null: globalBH1: no - globalBH2: no - globalBH3: no - globalBH4: null - globalBH5: null
app:8452019-03-15 05:57:27.313 pm debugAnnounce Arrivals - In setupNewStuff...Setting up Maps
app:8452019-03-15 05:57:27.273 pm debugAnnounce Arrivals - Updated with settings: [timeHome:4, greeting2:Good Afternoon, delay1:10, greeting1:Good Morning, greeting3:Good Evening, message:%greeting%. Welcome home %name%. %name% %is_are% here.;%greeting%. What’s up %name%. %name% %is_are% joining the party.;%greeting%. Where have you been hiding %name%. %name% %is_are% gracing us with their presence.;%greeting%. Nice to have you back %name%. %name% %is_are% showing up.;%greeting%. What’s cooking %name%. %name% %is_are% blowing in.;%greeting%. It’s been ages since I have seen you %name%. %name% %is_are% in the house! Ooo oooo.;%greeting%. Greetings and salutations %name%. %name% %is_are% joining the party.;%greeting%. Anything I can do for you %name%. %name% %is_are% popping in.;%greeting% I'm at your service %name%. %name% %is_are% dropping anchor.;%greeting%. What’s happening %name%. %name% %is_are% in the house ooo. Oooh.;%greeting%. How’s it hanging %name%. %name% %is_are% crashing the party.;%greeting%. Long time no see %name%. %name% %is_are% appearing.;%greeting%. Look who's home. it's %name%. %name% %is_are% breezing in.;%greeting%. Roll out the red carpet for %name% . %name% %is_are% popping in.;%greeting% %name%.;%greeting%. What’s cookin %name%. %name% %is_are% home.;%greeting%. How are you doing %name%. %name% %is_are% home.;%greeting%. Howdy do %name%. %name% %is_are% in the house.;%greeting% What’s shaking %name%. %name% %is_are% making the scene.;%greeting%. How is everything %name%. %name% %is_are% joining the party.;%greeting%. It's a pleasure to meet you %name%. %name% %is_are% blowing in.;Look what the cat dragged in, it’s %name%. %greeting%., speechMode:Speech Synth, gvDevice:WH Global Variable Device, oRandomG3:false, oRandomG2:false, oRandomG1:false, pause1:false, presenceSensor5a:false, oRandom:true, presenceSensor3a:true, logEnable:true, presenceSensor4a:false, presenceSensor1a:true, triggerMode:Contact_Sensor, presenceSensor2a:true, contactSensor:[Front Door Sensor, Garage Door Sensor], csOpenClosed:Open, presenceSensor1:Jane-webCoRE, presenceSensor2:Tom, presenceSensor3:Lauren, toTime2:2019-03-15T22:00:00.000-0400, fromTime2:2019-03-15T21:00:00.000-0400, speakers:[Echo - Basement Echo Dot, Echo - Living Room Echo Dot, Echo - Upstairs Echo Dot], fromTime:2019-03-15T09:00:00.000-0400, echoSpeaks:true, toTime:2019-03-15T22:00:00.000-0400, volume1:50, volume2:35, oMsgList:true, oG1List:false]

have you installed the global driver and device?

That log looks like it's just what it logs after you 'save' the child app. Would need to see a log of someone coming home and opening a door. Also, screenshots of how you have the app setup always help.

thanks

I'll just leave this right here for tonight....Departures

I'll do a release post tomorrow :grin:

Edit: [Deprecated] Departures and Arrivals

3 Likes

Yes, I did install the global driver and created a virtual device using the driver.

@bptworld is there a way to test this without having to arrive?

Thank you! I will be looking at this when I get Welcome Home working!

Here is a screenshot of the child app I created:

Sure, you would need to create at least one virtual presence sensor and a virtual contact sensor. This is how I do all my testing.

Just set the virtual presence sensor to 'not present' and then back to 'present', then open' the virtual contact sensor. You should hear the speech...close the virtual contact sensor and set the virtual presence sensor to 'not present' and it's ready to go again. Set to 'present', 'open' the contact sensor... rinse and repeat.

BTW, the child app looks good. Thanks

1 Like

Departures worked! Just need to figure out how to set the echo speaker volume. I will keep testing the Arrivals.

@bptworld ok so I took the plunge today and unpsych'd myself on this massive upgrade. I didn't want to loose all of my customizations BUT I hate being behind the times for updates. So trusty Notepad was my friend to construct the long variable string for my messages. After doing so I must admit I am happy I spent the whole 5 minutes to do this (in my head was thinking more like 30-40 minutes to cut/paste). Appreciate the continuous updates!!

1 Like

If someone wants to make more here are the bits to match up.

Arrive open

'Welcome home ’,'How you doing ','What's up ','Long time no see ','Hey ','Nice you see you ','Look who's home, it's ','Nice to have you back ','Howdy do ','What's going on ','How is everything ','It's been ages since I have seen you ','Where have you been hiding ','How's it hanging ','What's cookin ','What's shakin ','Greetings and salutations ','How goes it ','What's happening ','What's up ','Roll out the red carpet for '

Arrive closing

‘ in the house! Ooo oooo’,' here.',' home.',' in the house.',' joining the party.',' crashing the party.',' gracing us with their presence.',' dropping anchor.',' dropping in.',' making the scene.',' barging in.',' showing up.',' blowing in.',' appearing.',' breezing in.',' rolling in.',' popping in.'

Depart open

‘Goodbye ’,'See you later ','Bye ','Live long and prosper ','Farewell ','Hope you have a great time ','Take care ','Smell you later ','Adios ','Caio ','Au revoir ','Sayonara ','Ta Ta for now ','Catch you later ','To-da-loo ','See you in the funny papers ','Toodles ','Godspeed ','So long ','Cheerio ','Arrivederci '

Depart close

’ left the building!’,' gone out.',' popped out.',' left.',' buggered off.',' departed.',' split.',' vamoosed.',' high tailed it.',' escaped.',' eight-six'd it.',' bid farewell.',' flaked off.',' took a hike.',' withdrawn.',' exited.',' vanished.',' disappeared.',' evacuated.',' retreated.',' taken their leave.'

@bptworld I setup virtual presence sensors and virtual contact sensor to test this and it didn't work. I am getting an error in the logs:

app:9002019-03-16 12:10:57.545 pm errorjava.lang.NullPointerException: null on line 708 (contactSensorHandler)

app:9002019-03-16 12:10:57.475 pm debugTest Arrival - In setVolume...

app:9002019-03-16 12:10:57.474 pm debugTest Arrival - Music Player

app:9002019-03-16 12:10:55.359 pm debugTest Arrival - contact Status: = closed

app:9002019-03-16 12:10:47.469 pm debugTest Arrival - In letsTalk - Waiting 10 seconds to Speak

app:9002019-03-16 12:10:47.468 pm debugTest Arrival - Speaker(s) in use: [Echo - Upstairs Echo Dot, Echo - Living Room Echo Dot, Echo - Basement Echo Dot]

app:9002019-03-16 12:10:47.459 pm debugTest Arrival - AGAIN...Name = Test Presence1

app:9002019-03-16 12:10:47.457 pm debugTest Arrival - *********** In nameCount=1: myCount = 0

app:9002019-03-16 12:10:47.456 pm debugTest Arrival - In getName...Number of Names: 1 - Names: [Test Presence1]

app:9002019-03-16 12:10:47.454 pm debugTest Arrival - In getName...

app:9002019-03-16 12:10:47.431 pm debugTest Arrival - In getGreeting - Static - greeting: Good Afternoon

app:9002019-03-16 12:10:47.428 pm debugTest Arrival - timeHH = 0

app:9002019-03-16 12:10:47.410 pm debugTest Arrival - In getGreeting...

app:9002019-03-16 12:10:47.409 pm debugTest Arrival - In messageHandler - Static - theMessage: %greeting% %name% %is_are% arriving!

app:9002019-03-16 12:10:47.407 pm debugTest Arrival - In messageHandler...

app:9002019-03-16 12:10:47.406 pm debugTest Arrival - In checkTime - Time restrictions have not been configured - Continue

app:9002019-03-16 12:10:47.404 pm debugTest Arrival - In checkTime...

app:9002019-03-16 12:10:47.402 pm debugTest Arrival - In letsTalk...

app:9002019-03-16 12:10:47.401 pm infoTest Arrival - Test Presence2 - No announcement needed. Time Diff = 13

Did you flip the switch if using 'Echo Speaks' devices? That line is that is throwing the error is for non-echo speak devices. Show me just the speech portion of your app.

Thanks

Yes, I didn't have that checked off as I am also testing it with my sonos speakers. I checked it off and then it did work but it said the message twice.

Check my code from NOAA to borrow back co-existence of Music/Speech and Echo Speaks. My code originated from Welcome Home. :wink:

Thanks! I was just starting to re-write that section.

OK, so I have both working. What I have found out is that it doesn't seem to matter if I select Music Player or Speech Synth is using the Echo speaks speakers. If I use my sonos speakers, they do speak but not at the same time and they will resume what I was listening to BUT they don't restore the volume to what it was before speaking. I wish Sonos was easier to work with. :tired_face:

1 Like

Just noticed that if I select Speech Synth I don't have any options for Volume but if I select Music Player I get an option for setting the volume.

You got that backwards, only Music Player has volume controls.