I am trying to send a command in response to event using response() helper which is supposed to supply HubAction, but that is not happening for some reason. I can successfully send commands manually by clicking buttons in the app, but I need to respond to wake up notification with a command as well.
Currently provided example in documentation does not work for me at all:
result << zwave.batteryV1.batteryGet().format()
result << "delay 1200"
result << zwave.wakeUpV1.wakeUpNoMoreInformation().format()
return response(result) // returns the result of reponse()
The following example sends the commands, but unfortunately delay is still not functional and it sends all the commands at the same time so receiving device responds to as much as it can, but not all of them.
result << response(zwave.batteryV1.batteryGet().format())
result << response("delay 1200")
result << response(zwave.wakeUpV1.wakeUpNoMoreInformation().format())
return result // returns the result of reponse()
I am trying all this in device handler.