[RELEASE] Combined Presence

@jwetzel1492

using this driver

Summary
/*


*/

metadata {
    definition (
		name: "Hubitat presence Combined Driver", 
		namespace: "mark-c-uk", 
		author: "mark-c-uk",
	    importUrl:""
    ){
        capability "PresenceSensor"
        capability "Notification"
command "arrived"
            command "departed"
    }
}

preferences {
	input("loggEnable", "bool", title: "Enable logging?")
}

def installed() {
	log.trace "installed()"
}
def deviceNotification(text){
	if (loggEnable == true) log.info "${device.lable} Notification message recived $text"
	sendEvent(name:"notification", value:text)
}
def arrived(){
	if (loggEnable == true) log.info "${device.lable} arrived"
	sendEvent(name:"presence", value:"present")
}
def departed(){
	if (loggEnable == true) log.info "${device.lable} arrived"
	sendEvent(name:"presence", value:"not present")
}

and adding these
ln 141

if (outputSensor.hasCapability("Notification") == true && inputSensorsGps.hasCapability("Notification") == true){
subscribe(outputSensor, "notification", NoteHandler) //assuming custom virtal driver`
}

and this

def NoteHandler(text){
    log.info "message recived from $outputSensor ${text.value} sending to $inputSensorsGps"
    inputSensorsGps.deviceNotification(text.value)
}

you can use the app to pass though notifications so that you can then route all your notification and app's to the one virtaul presence device