This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
Subscribing to device value changes
Kyrcio
Member
in Developers
From an app, how can I subscribe to value changes for devices matching a certain condition? First, I cannot figure out how to get all the devices -- I was expecting a "ManagerDevice" class or similar, but I can't find it. Next, for a Device instance, I cannot see a way of getting the value change notifications. What am I missing?
Comments
You can get the devices through te API and then attach a listener to the devices you want.
From what I understand, that npm package is intended to be used from outside the Homey, while the Homey module is intended to be used by apps? Or did I misunderstand it.