Handling inclusuion / removal event
Posted: 04 Nov 2016 18:08
I have a callback for device state change
and it's working just fine.
Now I want to listen to other events like device adding or removal. How can I do it? I searched the ref-doc, but found no glues there..
Code: Select all
controller.devices.get( 'ZWayVDev_zway_' + someId ).on( 'change:metrics:level', self.stateChangeHandler );
Now I want to listen to other events like device adding or removal. How can I do it? I searched the ref-doc, but found no glues there..