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

spaces in names of devices don't register in HA, use _ instead #40

Closed mclever closed 2 years ago

mclever commented 2 years ago

When you use a space in the name of a device it doesn't register in HA, use _ instead. Shows up in MQTT fine, just doesn't show up as a device in HA.

chvvkumar commented 2 years ago

Ha! I just found this out from this comment. I was banging my head against the wall for a couple of hours:

https://github.com/devWaves/SwitchBot-MQTT-BLE-ESP32/issues/21#issuecomment-887052538

devWaves commented 2 years ago

ya I will put in a change to remove spaces or add a comment. thx

devWaves commented 2 years ago

latest version 6.5 should replace all spaces with _ underscore if used in names