[Deprecated] Departures and Arrivals

The code that displays, and removes, the red (pause) was removed in the latest version of all my apps. Just go back into each child app and rename it to remove the (pause).

Thanks! I just discovered this also.

1 Like

I am getting this error and it doesn’t seem to be working.
app:8952019-04-19 11:04:24.706 amerrorjava.lang.NullPointerException: Cannot invoke method setVolumeSpeakAndRestore() on null object on line 395 (letsTalk)

So I looked at the line 395 and compared it to the Welcome Home code and it appears that the 's' is missing on the speaker.setVolumeSpeakAndRestore(state.volume, state.lastSpoken, volRestore) so I added it in both places but it is still not working. Not sure if the state.lastSpoken is correct because it still didn't speak. Here is what was in the logs:

app:9012019-04-19 04:30:47.081 pm debugIn letsTalk...Okay, I'm done!

app:8952019-04-19 04:30:47.061 pmdebugIn letsTalk...Okay, I'm done!

app:8952019-04-19 04:30:46.969 pmdebugIn letsTalk - Music Player - null

app:8952019-04-19 04:30:46.967 pmdebugAGAIN...Name = Test 1

app:9012019-04-19 04:30:46.966 pm debugIn letsTalk - Music Player - null

app:8952019-04-19 04:30:46.964 pmdebug*********** In nameCount=1: myCount = 0

app:8952019-04-19 04:30:46.962 pmdebugIn getName...Number of Names: 1 - Names: [Test 1]

app:9012019-04-19 04:30:46.955 pm debugAGAIN...Name = Test 1

app:8952019-04-19 04:30:46.953 pmdebugIn getName...

app:8952019-04-19 04:30:46.951 pmdebugIn messageHandler - Random - vSize: 25, randomKey: 11, theMessage: See you later %name%, %name% %has_have% left the building!

app:9012019-04-19 04:30:46.948 pm debug*********** In nameCount=1: myCount = 0

app:8952019-04-19 04:30:46.946 pmdebugIn messageHandler...

app:8952019-04-19 04:30:46.944 pmdebugIn checkVol - volume: null

app:8952019-04-19 04:30:46.942 pmdebugIn checkVol...

app:8952019-04-19 04:30:46.937 pmdebugIn checkTime - timeBetween: true

app:9012019-04-19 04:30:46.935 pm debugIn getName...Number of Names: 1 - Names: [Test 1]

app:9012019-04-19 04:30:46.934 pm debugIn getName...

app:9012019-04-19 04:30:46.932 pm debugIn getGreeting - Static - greeting: Good Afternoon

app:9012019-04-19 04:30:46.930 pm debugtimeHH = 4

app:9012019-04-19 04:30:46.929 pm debugIn getGreeting...

app:9012019-04-19 04:30:46.913 pm debugIn messageHandler - Static - theMessage: %greeting% %name% %is_are% departing!

app:8952019-04-19 04:30:46.912 pmdebugIn checkTime - 2019-04-19T08:00:00.000-0400 - 2019-04-19T22:00:00.000-0400

app:9012019-04-19 04:30:46.910 pm debugIn messageHandler...

app:8952019-04-19 04:30:46.908 pmdebugIn letsTalk...

app:9012019-04-19 04:30:46.907 pm debugIn checkVol - volume: null

app:9012019-04-19 04:30:46.905 pm debugIn checkVol...

app:9012019-04-19 04:30:46.904 pm debugIn checkTime - timeBetween: true

app:9012019-04-19 04:30:46.895 pm debugIn checkTime - null - null

app:9012019-04-19 04:30:46.892 pm debugIn letsTalk...

app:3542019-04-19 04:30:43.338 pminfo --> [Basement Motion Sensor, Basement Stairs Motion Sensor, Desk Motion Sensor, Living Room Motion Sensor, Hall Motion Sensor, Front Door Motion Sensor] all inactive [false]

app:3542019-04-19 04:30:43.246 pminfoRoutine - Good Night!: Living Room TV Plug power 5.206

app:3532019-04-19 04:30:43.222 pminfoRoutine - Good Night Sleepin: Living Room TV Plug power 5.206

app:3702019-04-19 04:30:43.176 pminfoWatching TV in Living Room: Living Room TV Plug power 5.206

dev:1712019-04-19 04:30:43.111 pminfoLiving Room TV Plug power is 5.206 W

dev:1712019-04-19 04:30:42.809 pminfoLiving Room TV Plug energy is 6.873 kWh

dev:1712019-04-19 04:30:42.806 pminfoLiving Room TV Plug energyDuration is 27.76 Days

dev:1712019-04-19 04:30:42.500 pminfoLiving Room TV Plug current is 0.102 A

dev:1712019-04-19 04:30:42.201 pminfoLiving Room TV Plug voltage is 124.712 V

app:3542019-04-19 04:30:32.000 pminfo --> [Basement Motion Sensor, Basement Stairs Motion Sensor, Desk Motion Sensor, Living Room Motion Sensor, Hall Motion Sensor, Front Door Motion Sensor] all inactive [false]

app:3532019-04-19 04:30:31.954 pminfoRoutine - Good Night Sleepin: Living Room Motion Sensor motion active

app:3542019-04-19 04:30:31.944 pminfoRoutine - Good Night!: Living Room Motion Sensor motion active

dev:1692019-04-19 04:30:31.807 pminfoLiving Room Motion Sensor is active

app:8752019-04-19 04:30:22.548 pmdebugCookie Validation: (true) | Process Time: (410ms)

app:3542019-04-19 04:30:15.103 pminfo --> Time between 8:30 PM EDT and 3:00 AM EDT [false]

app:3542019-04-19 04:30:15.089 pminfo --> [Basement Motion Sensor, Basement Stairs Motion Sensor, Desk Motion Sensor, Living Room Motion Sensor, Hall Motion Sensor, Front Door Motion Sensor] all inactive [true]

app:3542019-04-19 04:30:15.029 pminfoRoutine - Good Night!: Living Room Motion Sensor motion inactive

app:3532019-04-19 04:30:15.020 pminfoRoutine - Good Night Sleepin: Living Room Motion Sensor motion inactive

dev:1692019-04-19 04:30:14.939 pminfoLiving Room Motion Sensor is inactive

app:2722019-04-19 04:30:06.153 pmdebugRefreshed attributes of device [deviceAddress:25cf, ssdpTerm:urn:schemas-konnected-io:device:Security:1, serialNumber:, hub:1, name:, verified:true, ssdpPath:/Device.xml, model:Konnected, ssdpUSN:uuid:8f655392-a778-4fee-97b9-482591819a01b::urn:schemas-konnected-io:device:Security:1, networkAddress:C0A80103, mac:DC4F2219A01B, ssdpNTS:null]

app:2692019-04-19 04:30:06.042 pmdebugDiscovering Konnected devices on the network via SSDP

app:8952019-04-19 04:29:46.856 pmdebugIn checkAllHandler - Waiting to talk - yes

app:8952019-04-19 04:29:46.855 pmdebugIn presenceSensorHandler4 - [Test 1]

app:9012019-04-19 04:29:46.854 pm debugIn checkAllHandler - Waiting to talk - yes

app:8952019-04-19 04:29:46.853 pminfoAnnouncing Departures - Test 1 just left! Time Diff: 0

app:9012019-04-19 04:29:46.851 pm debugIn presenceSensorHandler5 - Presence Sensor is present. No announcement needed.

app:9012019-04-19 04:29:46.849 pm debugIn presenceSensorHandler5 - Presence Sensor: present

app:9012019-04-19 04:29:46.826 pm debugIn presenceSensorHandler4 - [Test 1]

app:9012019-04-19 04:29:46.822 pm infoTest Departure (Paused) - Test 1 just left! Time Diff: 0

try the new version on Github...

V1.0.2 - 04/19/19 - Fixed a typo

thanks

Edit... V1.0.3 - 04/19/19 - Found another typo!

1 Like

I notice that the Departures App doesn't have the option of being able to set what the volume of the speaker is after speaking like the Welcome Home App.

New version on Github...

V1.0.4 - 04/20/19 - Updated speaker/speech options

This seems to have stopped working with the latest hub update. It seems to be working in the logs but no speech is happening through the speakers.
app:8952019-06-01 09:54:13.268 am infoAnnouncing Departures - cheerio tom, tom has gone out.

app:8952019-06-01 09:54:13.267 am debugIn letsTalk - Wow, that's it!

app:8952019-06-01 09:54:12.964 am debugIn letsTalk - Music Player - speaker: [Echo - Upstairs Echo Dot, Echo - Living Room Echo Dot, Echo - Basement Echo Dot, Echo - Lauren's Echo Dot, Echo - Workout Room Echo Dot], vol: 10, msg: cheerio tom, tom has gone out.

app:8952019-06-01 09:54:10.963 am debugIn letsTalk - Waiting 2 seconds to Speak

app:8952019-06-01 09:54:10.961 am debugSpeaker in use: [Echo - Upstairs Echo Dot, Echo - Living Room Echo Dot, Echo - Basement Echo Dot, Echo - Lauren's Echo Dot, Echo - Workout Room Echo Dot]

app:8952019-06-01 09:54:10.945 am debugAGAIN...Name = Tom

app:8952019-06-01 09:54:10.943 am debug*********** In nameCount=1: myCount = 0

app:8952019-06-01 09:54:10.940 am debugIn getName...Number of Names: 1 - Names: [Tom]

app:8952019-06-01 09:54:10.939 am debugIn getName...

app:8952019-06-01 09:54:10.936 am debugIn messageHandler - Random - vSize: 25, randomKey: 21, theMessage: Cheerio %name%, %name% %has_have% gone out.

app:8952019-06-01 09:54:10.934 am debugIn messageHandler...

app:8952019-06-01 09:54:10.933 am debugIn letsTalk - continuing

app:8952019-06-01 09:54:10.174 am debugIn letsTalk - pause: 756

app:8952019-06-01 09:54:10.163 am debugIn checkVol - volume: 10

app:8952019-06-01 09:54:10.163 am debugIn checkVol - quietTime: false

app:8952019-06-01 09:54:10.162 am debugIn checkVol...

app:8952019-06-01 09:54:10.161 am debugIn checkTime - timeBetween: true

app:8952019-06-01 09:54:10.152 am debugIn checkTime - 2019-06-01T08:00:00.000-0400 - 2019-06-01T22:00:00.000-0400

app:8952019-06-01 09:54:10.152 am debugIn letsTalk...

app:8952019-06-01 09:52:10.128 am debugIn checkAllHandler - Waiting to talk - yes

app:8952019-06-01 09:52:10.127 am infoAnnouncing Departures - Ryan has been gone too long. No announcement needed.

I haven't seen any issues on this end (no echo's here, all google). With no errors in the log, I don't have anything to go on. Nothing has changed within my code so I would try and look at the other pieces needed to make this work. Have you updated the code driving your Echo's? Do your echo's speak at all, with other apps or from the device page for each echo?

Ok I will keep looking into it. Do you know how to set the volume level for echos? 1-10 or 1-100?

New version on Github...

V2.0.2 - 08/26/19 - Now messages have an 'opening' and a 'closing' segment. Code additions from @Matthew, Thank you.

If anyone wants them .... here is what I use for the opening and closing messages ....
(copy and paste into the app and select the 'Random' option)

Arrival - Opening
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;aloha;shalom;bohnzhoor;OHlah;How goes it;What's happening;What's up;How goes it;Roll out the red carpet for

Arrival - 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.

Departure - Opening
Goodbye;See you later;Bye;Live long and prosper;Farewell;Hope you have a great time;Take care;Smell you later;ahTHYOHS;Chow;oh revwahr;Sighenara;Ta Ta for now;Catch you later;To-da-loo;See you in the funny papers;Toodles;Godspeed;So long;oufveeduhrzeyuhn;aloha;shalom;Cheerio;ahrreevehDEHRtchee

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

Then the two messages parts of 'Opening message' and 'Closing message' are used to construct the final message as:

Arrivals: 'Opening message' + %name% + %is_are% + 'Closing message'
Departures: 'Opening message' + %name% + %has_have% + 'Closing message'

Thanks.

1 Like

Does this only do departures or is this replacing the Welcome Home for arrivals? Maybe I'm just confused?

I so hope you are a teacher!!!!!!

But I do have a request... is it possible to do arrivals based on opening a lock with a specific code? Some of my "guests" don't have a presence sensor as a way to determine their entry into the house.

My systems are set to US English and the foreign language words need to use phonetics to come close to the proper pronunciations on TTS systems. :grinning:

looks familiar :crazy_face:

This does departures and Arrivals. Definitely not replacing Welcome Home, just another option.

Sorry, not possible with this app.

getting this error with the parent now

when chicking this


but there should be apps there already

I know it's not possible currently, I was wondering if you'd consider adding it into the code as an option to use presence for specific users and lock code entry for others?