in parent I am trying to get that var " localtStatState"
def callHeat() {
if (debugLogging) log.debug("Call for heat...")
childApps.each {child ->
debuglog "Child app: ${child.label} Zone state ${child.currentValue("localtStatState")}"
}
However this returns null , same with child.currentValue("state.thermostatState")
There was a discussion of using sendEvent from child but how would I subscribe parent for this event?
you could cheat,
have your parent call a function in the child.
Have the child function call a function in the parent that sends the data you are looking for.
Thank you, This is exactly what I did . Will try @srwhite solution as well - looks promising.
I am new to groovy (though had been around the block with other things) and need to figure out scoping issues for variables in HE