jason0x43 / hacs-hubitat

A Hubitat integration for Home Assistant
MIT License
198 stars 48 forks source link

Removed Entities Persist in HA and Cannot be Deleted #236

Closed jianyu-li closed 9 months ago

jianyu-li commented 9 months ago

I had a virtual lock shared to Home Assistant. I removed the lock from Maker API and it says unavailable in Home Assistant but Home Assistant won't let me delete the entityimage

jason0x43 commented 9 months ago

You can delete devices by going to the integrations panel in Home Assistant, opening Hubitat, and clicking the "Configure" button. Devices may be removed during the configuration process.

jianyu-li commented 9 months ago

wow I've never seen that before! Thank you!

jianyu-li commented 9 months ago

You can delete devices by going to the integrations panel in Home Assistant, opening Hubitat, and clicking the "Configure" button. Devices may be removed during the configuration process.

Quick question: is it better to remove from maker API first then remove through the configure option or can you skip the Maker API part and just remove through the configure option?

jason0x43 commented 9 months ago

You should remove them from the Maker API first, and then in the integration. Otherwise, they'll be added back the next time you restart HA.

I should probably just have the integration automatically remove devices that aren't exposed by the Maker API. 🙂