Parent/child app

Alright time for the next question…
It seems that there isn’t communication/variable sharing between child and parent app. This worked in ST but it doesn’t seem to be doing so here.

ie:
Parent App

state.appversion = "1.0.0"
def dothisthing(variable1,variable2,variable3){ 
     //The code to do stuff
}

Child App

log.debug "Parent Version: ${parent.state.appversion}"
//do some processing of things
def childvariable1 = "blah1"
def childvariable2 = "blah2"
def childvariable3 = "blah3"
//maybe even more processing of childish things
//send something to the parent function to process:
parent.dothisthing(childvariable1, childvariable2, childvariable3)

Scenario, in BigTalker2, I do most heavy logic in the child app, then once everything is set and ready to go, I call a function in the Parent app, parent.Talk(). It further processes the variables passed to it then does it’s speech thing.

  • Side note, I don’t think this is officially supported in the other hub, but it works. There is a lot of capability that can be derived from parent/child communication. The location object is even used for app to app communication in the other hub (I haven’t used this much except to send data to AskAlexa which is done by sendLocationEvent ( sendLocationEvent(name: "AskAlexaMsgQueue", value: "BigTalker", isStateChange: true, descriptionText: phrase) ), Perhaps Hubitat does these things differently or it can be considered for a future release?