I have a custom device handler called, let’s say, Dev1. It has two custom attributes called, let’s say, Att1 and Att2.
I want to watch for changes in either of these attributes from a custom SmartApp.
I need help writing the “subscribe” statement - I can’t seem to make it work.
Should be be like subscribe(“DevName”,Dev1,Handler)? Or like subscribe(“DevName”,Dev1.Att1,Handler)? Or like subscribe(“DevName”,“Dev1.Att1”,Handler)?
Seems no matter what I try, I get “Access denied”.
I got it to work using settings/inputs. I was trying to hard code the
device name as there’s only one of them. Bottom line, it’s working now.
Thank you.