dresden-elektronik / deconz-rest-plugin

deCONZ REST-API plugin to control ZigBee devices
BSD 3-Clause "New" or "Revised" License
1.9k stars 503 forks source link

Sensors are missing a recycle option when using with a resourcelink #2871

Open Thomas-Vos opened 4 years ago

Thomas-Vos commented 4 years ago

When creating a sensor using the REST API, for example a CLIPGenericStatus sensor, there is no way to provide a "recycle": true attribute.

When the created sensor is added to a resourcelink, and then the resourcelink is deleted, the sensor is not deleted automatically. Please make it possible to add "recycle": truewhen creating a sensor (just like the schedules). At the moment I have lots of virtual sensors that aren't deleted/used because of this.

Note that the Philips Hue API does support this for sensors, see the following: https://developers.meethue.com/develop/hue-api/5-sensors-api/

Thomas-Vos commented 4 years ago

Groups and rules are also missing a recycle option

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Thomas-Vos commented 4 years ago

This has not been fixed yet

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.