Page 1 of 1

Handling inclusuion / removal event

Posted: 04 Nov 2016 18:08
by injecteer
I have a callback for device state change

Code: Select all

controller.devices.get( 'ZWayVDev_zway_' + someId ).on( 'change:metrics:level', self.stateChangeHandler );
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..

Re: Handling inclusuion / removal event

Posted: 06 Jan 2017 20:09
by PoltoS
controller.devices.on('created', function() {})