-
Notifications
You must be signed in to change notification settings - Fork 506
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reset light when deleted from the API #2377
Comments
Hm, wouldn't it make sense to implement that for all routing devices (I know not all might support it)? |
Maybe. I haven’t checked whether the Hue bridge sends anything when deleting a |
up for this, it has my vote |
But if the device don't support this feature, what we can have as problem ? |
Well, as I see it, we wouldn't have a problem at all. If the device supports it, all good. If not, you most likely receive an unsupported command response and that's it, nothing happens. |
I m thinking same, it can only be good (or useless). |
I'll be bloody damned! Checking the code, it turns out this has already been implemented in the REST API plugin! I should have RTFM: You need to supply a body of I think we should make this the default behaviour, when the body is not present, and use Of course, we still need to delete the resources when the node is deleted from the GUI. I've been experimenting with GUI events in the STD OTAU plugin: now the table highlights the node you select on the map, so this should be doable.
|
glad to hear it: #1923 |
Make sure to delete any links from |
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. |
Bump |
The Hue bridge factory resets a light, when the light is removed from the API, through a DELETE of the corresponding
/lights
resource. I think the deCONZ REST API plugin should do the same, especially for Hue lights, that don't support a power-on/off sequence to reset them.Sniffing the Hue bridge, it sends a ZDP Leave Request:
The bulb responds with a ZDP Leave broadcast:
The text was updated successfully, but these errors were encountered: