Hi,
I am trying to add a custom attribute to my device handler as below:-
command "setDoorState", ["string"]
attribute "control", "enum", ["opening", "closing", "NA"]
On using the control from the UI send event using the following command:-
sendEvent(name: "control", value: "opening")
And then I subscribe to it in my SmartApp like below:-
subscribe(garageDoor, "control", garageDoorControl)
I never get the event to my App, I can see in the logs that the function is being call in the device handler.