[UPDATED] - Message Central - Make your home speak

community_app

#325

Afternoon!

So I am using ver 2.2.0 (wrapped in your Cobra Apps).

My automation would be to play a message to remind me to lock door 1 from the hours of 6:30 pm to 10:30 pm upon door 1 being closed (contact sensor). As the app requires me to choose a volume I choose 75%.

I selected the option for quiet time for volume to 35% from 10:30pm to 5:30pm.

However, whenever I open the door, the volume jumps to 75% no matter what time of day.

Here are the logs:

a pp:21782018-11-03 13:21:28.970:debugCHECK_THE_DOOR_LOCK_AT_NIGHT (Childapp Version: 12.7.1) - state.appgo = true - state.timeOK = false - state.dayCheck = true - state.timer1 = true - state.timer2 = true - state.volume = 75 state.presenceRestriction = true

[app:2178](http://192.168.7.201/logs#app2178)2018-11-03 13:21:28.967:debugCHECK_THE_DOOR_LOCK_AT_NIGHT (Childapp Version: 12.7.1) - Presence sensor 2 restriction not used

[app:2178](http://192.168.7.201/logs#app2178)2018-11-03 13:21:28.965:debugCHECK_THE_DOOR_LOCK_AT_NIGHT (Childapp Version: 12.7.1) - running checkPresence1 - restrictPresenceSensor1 = null

[app:2178](http://192.168.7.201/logs#app2178)2018-11-03 13:21:28.962:debugCHECK_THE_DOOR_LOCK_AT_NIGHT (Childapp Version: 12.7.1) - Calling.. CheckPresence1

[app:2178](http://192.168.7.201/logs#app2178)2018-11-03 13:21:28.940:debugCHECK_THE_DOOR_LOCK_AT_NIGHT (Childapp Version: 12.7.1) - Presence sensor restriction not used

[app:2178](http://192.168.7.201/logs#app2178)2018-11-03 13:21:28.938:debugCHECK_THE_DOOR_LOCK_AT_NIGHT (Childapp Version: 12.7.1) - running checkPresence - restrictPresenceSensor = null

[app:2178](http://192.168.7.201/logs#app2178)2018-11-03 13:21:28.935:debugCHECK_THE_DOOR_LOCK_AT_NIGHT (Childapp Version: 12.7.1) - Calling.. CheckPresence

[app:2178](http://192.168.7.201/logs#app2178)2018-11-03 13:21:28.933:debugCHECK_THE_DOOR_LOCK_AT_NIGHT (Childapp Version: 12.7.1) - Day restrictions have not been configured - Continue...

[app:2178](http://192.168.7.201/logs#app2178)2018-11-03 13:21:28.931:debugCHECK_THE_DOOR_LOCK_AT_NIGHT (Childapp Version: 12.7.1) - Calling.. CheckDay

[app:2178](http://192.168.7.201/logs#app2178)2018-11-03 13:21:28.924:debugCHECK_THE_DOOR_LOCK_AT_NIGHT (Childapp Version: 12.7.1) - Time is NOT ok so cannot continue...

[app:2178](http://192.168.7.201/logs#app2178)2018-11-03 13:21:28.922:debugCHECK_THE_DOOR_LOCK_AT_NIGHT (Childapp Version: 12.7.1) - Calling.. CheckTime

[app:2178](http://192.168.7.201/logs#app2178)2018-11-03 13:21:28.895:debugCHECK_THE_DOOR_LOCK_AT_NIGHT (Childapp Version: 12.7.1) - Calling.. talkSwitch

[app:2178](http://192.168.7.201/logs#app2178)2018-11-03 13:21:28.893:debugCHECK_THE_DOOR_LOCK_AT_NIGHT (Childapp Version: 12.7.1) - Mode = true

[app:2178](http://192.168.7.201/logs#app2178)2018-11-03 13:21:28.890:debugCHECK_THE_DOOR_LOCK_AT_NIGHT (Childapp Version: 12.7.1) - Checking mode...

[app:2178](http://192.168.7.201/logs#app2178)2018-11-03 13:21:28.888:infoContinue - App NOT paused

[app:2178](http://192.168.7.201/logs#app2178)2018-11-03 13:21:28.772:debugCHECK_THE_DOOR_LOCK_AT_NIGHT (Childapp Version: 12.7.1) - Speaker(s) in use: [Kitchen Overhead Sonos] set at: 75% - waiting 0 seconds before continuing...

[app:2178](http://192.168.7.201/logs#app2178)2018-11-03 13:21:28.476:debugCHECK_THE_DOOR_LOCK_AT_NIGHT (Childapp Version: 12.7.1) - Quiet Time = No - Setting Normal time volume

[app:2178](http://192.168.7.201/logs#app2178)2018-11-03 13:21:28.458:debugCHECK_THE_DOOR_LOCK_AT_NIGHT (Childapp Version: 12.7.1) - Kitchen Door 1 (nearest sink) is closed

[app:2178](http://192.168.7.201/logs#app2178)2018-11-03 13:21:28.439:infoContinue - App NOT paused

[app:2178](http://192.168.7.201/logs#app2178)2018-11-03 13:21:26.731:debugCHECK_THE_DOOR_LOCK_AT_NIGHT (Childapp Version: 12.7.1) - state.appgo = true - state.timeOK = false - state.dayCheck = true - state.timer1 = true - state.timer2 = true - state.volume = 75 state.presenceRestriction = true

[app:2178](http://192.168.7.201/logs#app2178)2018-11-03 13:21:26.728:debugCHECK_THE_DOOR_LOCK_AT_NIGHT (Childapp Version: 12.7.1) - Presence sensor 2 restriction not used

[app:2178](http://192.168.7.201/logs#app2178)2018-11-03 13:21:26.726:debugCHECK_THE_DOOR_LOCK_AT_NIGHT (Childapp Version: 12.7.1) - running checkPresence1 - restrictPresenceSensor1 = null

[app:2178](http://192.168.7.201/logs#app2178)2018-11-03 13:21:26.724:debugCHECK_THE_DOOR_LOCK_AT_NIGHT (Childapp Version: 12.7.1) - Calling.. CheckPresence1

[app:2178](http://192.168.7.201/logs#app2178)2018-11-03 13:21:26.722:debugCHECK_THE_DOOR_LOCK_AT_NIGHT (Childapp Version: 12.7.1) - Presence sensor restriction not used

[app:2178](http://192.168.7.201/logs#app2178)2018-11-03 13:21:26.709:debugCHECK_THE_DOOR_LOCK_AT_NIGHT (Childapp Version: 12.7.1) - running checkPresence - restrictPresenceSensor = null

[app:2178](http://192.168.7.201/logs#app2178)2018-11-03 13:21:26.697:debugCHECK_THE_DOOR_LOCK_AT_NIGHT (Childapp Version: 12.7.1) - Calling.. CheckPresence

[app:2178](http://192.168.7.201/logs#app2178)2018-11-03 13:21:26.694:debugCHECK_THE_DOOR_LOCK_AT_NIGHT (Childapp Version: 12.7.1) - Day restrictions have not been configured - Continue...

[app:2178](http://192.168.7.201/logs#app2178)2018-11-03 13:21:26.692:debugCHECK_THE_DOOR_LOCK_AT_NIGHT (Childapp Version: 12.7.1) - Calling.. CheckDay

[app:2178](http://192.168.7.201/logs#app2178)2018-11-03 13:21:26.689:debugCHECK_THE_DOOR_LOCK_AT_NIGHT (Childapp Version: 12.7.1) - Time is NOT ok so cannot continue...

[app:2178](http://192.168.7.201/logs#app2178)2018-11-03 13:21:26.681:debugCHECK_THE_DOOR_LOCK_AT_NIGHT (Childapp Version: 12.7.1) - Calling.. CheckTime

[app:2178](http://192.168.7.201/logs#app2178)2018-11-03 13:21:26.669:debugCHECK_THE_DOOR_LOCK_AT_NIGHT (Childapp Version: 12.7.1) - Calling.. talkSwitch

[app:2178](http://192.168.7.201/logs#app2178)2018-11-03 13:21:26.667:debugCHECK_THE_DOOR_LOCK_AT_NIGHT (Childapp Version: 12.7.1) - Mode = true

[app:2178](http://192.168.7.201/logs#app2178)2018-11-03 13:21:26.664:debugCHECK_THE_DOOR_LOCK_AT_NIGHT (Childapp Version: 12.7.1) - Checking mode...

[app:2178](http://192.168.7.201/logs#app2178)2018-11-03 13:21:26.662:infoContinue - App NOT paused

[app:2178](http://192.168.7.201/logs#app2178)2018-11-03 13:21:26.497:debugCHECK_THE_DOOR_LOCK_AT_NIGHT (Childapp Version: 12.7.1) - Speaker(s) in use: [Kitchen Overhead Sonos] set at: 75% - waiting 0 seconds before continuing...

[app:2178](http://192.168.7.201/logs#app2178)2018-11-03 13:21:26.376:debugCHECK_THE_DOOR_LOCK_AT_NIGHT (Childapp Version: 12.7.1) - Quiet Time = No - Setting Normal time volume

[app:2178](http://192.168.7.201/logs#app2178)2018-11-03 13:21:26.374:debugCHECK_THE_DOOR_LOCK_AT_NIGHT (Childapp Version: 12.7.1) - Kitchen Door 1 (nearest sink) is open

[app:2178](http://192.168.7.201/logs#app2178)2018-11-03 13:21:26.355:infoContinue - App NOT paused

[app:2178](http://192.168.7.201/logs#app2178)2018-11-03 13:21:05.543:debugCHECK_THE_DOOR_LOCK_AT_NIGHT (Childapp Version: 12.7.1) - trigger is Contact

[app:2178](http://192.168.7.201/logs#app2178)2018-11-03 13:21:05.346:debugCHECK_THE_DOOR_LOCK_AT_NIGHT (Childapp Version: 12.7.1) - Quiet Time = No - Setting Normal time volume

[app:2178](http://192.168.7.201/logs#app2178)2018-11-03 13:21:05.338:debugCHECK_THE_DOOR_LOCK_AT_NIGHT (Childapp Version: 12.7.1) - AppGo = true

[app:2178](http://192.168.7.201/logs#app2178)2018-11-03 13:21:05.336:debugCHECK_THE_DOOR_LOCK_AT_NIGHT (Childapp Version: 12.7.1) - Enable switch is NOT used. Switch is: null

[app:2178](http://192.168.7.201/logs#app2178)2018-11-03 13:21:02.318:infoYou are using the current version of this app

[app:2178](http://192.168.7.201/logs#app2178)2018-11-03 13:21:01.602:infoChecking for updates now...

[app:2178](http://192.168.7.201/logs#app2178)2018-11-03 13:21:01.599:debugCHECK_THE_DOOR_LOCK_AT_NIGHT (Childapp Version: 12.7.1) - Running checkButtons

[app:2178](http://192.168.7.201/logs#app2178)2018-11-03 13:21:01.579:infoYou are using the current version of this app

[app:2178](http://192.168.7.201/logs#app2178)2018-11-03 13:20:59.968:infoAll Logging Enabled

[app:2178](http://192.168.7.201/logs#app2178)2018-11-03 13:20:59.965:infoInitialised with settings: [updateNotification:false, messageAction:Voice Message (MusicPlayer), trigger:Contact, volume1:75, speaker:[Kitchen Overhead Sonos], msgDelay:0, contactSensor:Kitchen Door 1 (nearest sink), triggerDelay:0, message2:Make sure to lock the door, restrictions1:true, restrictions2:true, fromTime:2018-11-03T18:30:00.000-0400, toTime:2018-11-03T22:30:00.000-0400, debugMode:true, volume2:35, fromTime2:2018-11-03T22:30:00.000-0400, toTime2:2018-11-03T17:30:00.000-0400]

[app:2178](http://192.168.7.201/logs#app2178)2018-11-03 13:20:59.846:infopause1 = false

[app:2178](http://192.168.7.201/logs#app2178)2018-11-03 13:20:35.614:infoapp.label = Check the Door Lock at Night

[app:2178](http://192.168.7.201/logs#app2178)2018-11-03 13:20:01.618:infoContinue - App NOT paused

[app:2178](http://192.168.7.201/logs#app2178)2018-11-03 13:20:01.405:infoContinue - App NOT paused

[app:2178](http://192.168.7.201/logs#app2178)2018-11-03 13:19:57.877:infoContinue - App NOT paused

[app:2178](http://192.168.7.201/logs#app2178)2018-11-03 13:19:57.677:infoContinue - App NOT paused

Is there a way to simply adjust the volume up for the message and then reduce the volume to the prior level?


#326

I think I know what this issue is.
Version 2.2.0 might be the parent version, but what child version are you using (should be 12.x.x)

Andy


#327

12.7.1


#328

Thought so.
I found quite a few errors in that version.
I think this was one of the ones already fixed, but if not I’ll check it out.
I haven’t released an update yet but will do soon.
The new version will have quite a few bug fixes and a new feature or two.

Andy


#329

Well i'm trying to fix the problem with the variables. When i use the gettime() function of yours i get a null back but i see the function doing something. Not sure what is going on, going to debug a bit tomorrow.


#330

I noticed you are using the 24hr switch..
Does it work if you have that switched off?

I don’t use 24 hr so I’m wondering if that is the problem as I have never seen this issue before.

Andy


#331

Yep its working now haha So its the 24 hr function!


#332

Right...
I can fix that!
Thank you for finding this.

It’s obviously not getting the variable passed back to the message.
I’ll have a look in the morning, probably not take long to fix.

I’m not releasing a new version for a short while so when I find the fix, I’ll let you know so you can change the code (if it’s easy to do)

Andy


#333

Ok... easy bug fix for this one

In the child app (version 12.7.1)
line: 3789 is currently a blank line

Add a closed curly bracket "}" (without the speechmarks) on this line

Look at line: 3799
Remove the curly bracket "}" from this line and save the child app

This should make the 24hr %time% variable work correctly.
If it doesn't then please let me know (works for me!)

I've added this fix to the new version to be out soon.

Andy


#334

You're starting to sound like them now :smiley:


#335

Lol soon™


#336

I was about to release a new version but added a couple of bug fixes and then a few more features. Up to version 13.2.3 so far.
I will release it soon... honest! :smile:

Just finished coding for the day, a couple more things to do but itks 4am somI really need sleep!

Andy


#337

@Cobra

Andy - question?!?

Does each child app have its own custom Group settings (1-4)? Or are the Groups global to all children? My hope is it is unique and customized per child.


#338

You wish has been fulfilled... :slight_smile:

All the child apps have their own %group(n)% settings.

You can happily customise each child should you wish.

Andy


#339

I tell ya this is incredible!

Any update on the unlocking door notifications trigger?


#340

Ha!
I’ve just spent two days updating 17 apps!

I’ll get to that one soon :slight_smile:

Andy


#341

I do not see any updates on your GitHub.


#342

It will be done when it’s done. Or not.
When I’m ready to release new versions, I will release them.. Or not.
Believe me, Or not.

I don’t this for any ‘donations’ or any other reason than I enjoy doing it.
If I wanted to make money from this then I would put my apps & drivers behind a paywall
I currently release them for free, with no restrictions on any use or canabalism
Everyone is welcome to add to or take away from my code as they wish.

Once I stop enjoying creating the code, I will stop doing it and stop releasing or supporting my apps.

Until then, if people find them useful then great, I’m happy I could contribute to the community
But, at my own pace and I will reiterate, it will be done when it’s done... Or not.


#343

@Cobra

Oh sorry if that came off wrong. I get excited about your updates and check the repository fairly often. :grin:

I truly appreciate your work. It is awesome!!


#344

Hello Cobra
I'm new to Hubitat, but on ST I developed the SHM Delay smartapp.

Thank you for getting Message Central working on Hubitat, messages and keypads are the heart of my system, and Message Central is now installed on my HE system. On ST I use LanNouncer with Big Talker (original). I have LanNouncer installed on HE and am taking baby steps getting things moved over.

While setting up a Mode Change that I want to announce all mode changes, I encountered an issue in the Mesage Central Child routine modeChangeHandler. Wanting all modes I did not set optional input field "Action when changing to this mode", aka newMode1. This resulted in no spoken messages and the following Log data

app:1722018-11-07 10:21:55.922 debug HUBITAT_MODE_CHANGED (Childapp Version: 12.7.1) - not an exact match

app:1722018-11-07 10:21:55.922 debug HUBITAT_MODE_CHANGED (Childapp Version: 12.7.1) - modeRequired = null - current mode = Home

There is another mode selector at the end of the message setup.

So for my purposes, I modified the modeChangeHandler to work when the the newMode1 setting is null, and am sending you that code in a private message.