zigbeer / zigbee-shepherd

An open source ZigBee gateway solution with node.js.
MIT License
250 stars 89 forks source link

Removing an offline device #14

Closed remijn closed 7 years ago

remijn commented 7 years ago

Hello,

I am currently having trouble with removing devices I need to be able to remove a device from the network, however, if the device is offline, this currently seems impossible

jackchased commented 7 years ago

In order to ensure that the device is indeed removed from the network, so the device should be online.

simenkid commented 7 years ago

Hi @TheKillerremijn,

The shepherd is a generic controller which will throw an offine operational error to developers for API behavior consistency.

No one can "really" tell a remote device to leave the network when it is offline (maybe sleeping), thus the shepherd leaves this to developers to tackle by themselves (shpeherd doesn't know how developers like to deal with this situation).

For example, if you like, you can pend a request to tell a device to leave at the moment when it comes alive again. This will ensure the "leaving behavior" known by the developers.