google-home / smart-home-local

Local Home SDK sample
https://developers.google.com/actions/smarthome/concepts/local
Apache License 2.0
282 stars 69 forks source link

Googlehome device delete - interacts with node code: "expressApp.post('/smarthome/delete'" ? #132

Open aldock opened 10 months ago

aldock commented 10 months ago

I´m trying to allow user to delete an specific device from home app / firestore collection. Case is the only way to remove a device from home app is deleting it from firestore. I don´t want do delete the entire colletion and do a relink/discovery again.

Within smarthome Node code there is the call: "expressApp.post('/smarthome/delete', (req, res) =>...." This is to delete an specific device, however i don´t know if this call is done from Google home app "remove device" icon inside device settings.

Also, my home app do not show device delete option inside device settings. Not sure if is a JSON message problem during device creation discovery phase.

Thank you if can help!