Handling inclusuion / removal event

Discussions about Z-Way software and Z-Wave technology in general
Post Reply
injecteer
Posts: 13
Joined: 29 Sep 2016 16:28

Handling inclusuion / removal event

Post 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..
User avatar
PoltoS
Posts: 7649
Joined: 26 Jan 2011 19:36

Re: Handling inclusuion / removal event

Post by PoltoS »

controller.devices.on('created', function() {})
Post Reply