mileperhour / localtuya-homeassistant

local handling for Tuya devices
GNU General Public License v3.0
147 stars 667 forks source link

Unavailable Status for switches #11

Closed Kh3nsu closed 3 years ago

Kh3nsu commented 3 years ago

Hey,

First of all nice work for this component! You really saved me with this ^^ I bought a few Switches which are not compatible with tuya convert :/ and I didn't want to use the cloud of tuya. So this is my only opinion. I found out that if the power is lost or it disconnects from the Wifi , the switch in Home Assistant is not displayed as unavailable. Would it be possible to add this ^^ And if the switch is offline while Home Assistant starts, it will not be recognized until a reboot. Maybe add the switch as unavailable if that is possible and update it when it comes back online afterwards?

My English is not the best I hope you could understand my suggestions :)