devWaves / SwitchBot-MQTT-BLE-ESP32

Allows for multiple SwitchBot bots and curtains to be controlled via MQTT sent to ESP32. ESP32 will send BLE commands to switchbots and return MQTT responses to the broker. Also supports Temperature, Motion, Contact sensors
MIT License
539 stars 66 forks source link

Problem with removed devices #21

Closed marithpl closed 3 years ago

marithpl commented 3 years ago

I’ve got a problem with showing switchbot devices in HA.

By mistake I removed a switchbot devices from HA. I changed a config of SwitchBot MQTT but still there is no devices showing in HA.

How to “reset” ESP to show devices in HA?

devWaves commented 3 years ago

when the esp32 reboots it sends the mqtt discovery info. your devices will automatically create when the esp32 reboots. if it does not that is an issue with your HA.

ensure the device is fully deleted, then reboot the esp32

marithpl commented 2 years ago

How to ensure the device is fully deleted?

devWaves commented 2 years ago

Configurations->Devices

if the switchbot is in the list, click it and select delete

marithpl commented 2 years ago

I've deleted this way. And now MQTT do not discovery again switchbot's.

I tried to remove MQTT integration an add a new one. My tasmotas devices showed up again but switchbot not.

In MQTT Explorer I can find switchbots curtains:

image
devWaves commented 2 years ago

hmm... not sure I've done it many many times, no issues. but with bots. it should work the same for curtain though. let me google a little bit...

devWaves commented 2 years ago

can u try with short names? maybe the discovery msgs are failing with long names. just for testing, make the names short and see if devices are discovered

I will try later when I am at my PC to fake some curtains and see if HA discovers them

devWaves commented 2 years ago

oh... you have spaces in the names. I think thats it

use an _ instead

marithpl commented 2 years ago

I will check in the morning

marithpl commented 2 years ago

Now is working.

Thanks!