Hey a couple of days ago i set up this MQTT bridge and all was woring fine. But now when i came how i noticed that the esp32 is unavailable and in explorer it lastWill=offline. I can see it is connected to my router and i can see that my switchbot stats. It seems like it goes offline exactly 60 seconds after i rebooted the router and all.
Hopefully this hasnât already been answered, I scrolled for a while⌠has the new HA BLE integration become a new way to connect SwitchBot devices? Or maybe itâs on the horizon having this code get ported into using that one?
Thanks in advance, seems like yours has been a great solution for a long time.
The native Home Assistant integration manage all devices supported by this project and more because for example the Switch Bot smart lock is managed by the native Home Assistant, also the new indoor/outdoor meter.
Humidifier is also compatible with the native HA integration.
IIRC the advantage from the HA integration is it send commands again in case of failure I.E. for bots or curtains when the native Home Assistant integration only provide an entity attribute to see if command was successful or not so additional attempts have to be done from an automation for example.
But in my case I only use meters with the native HA integration so I only gave you information I have for other devices.
I have been using this integration for a couple of years now, very happy⌠my use case is to replicate bt signal far away from ha installation⌠on another floorâŚ
Does the native HA integration allow to control a BT (switchbot) far away where the server built jn BT cannot reach?
Advantage of this integration is to be able to retry better when command fails, if I remember correctly the HA integration is less performant in this case.
For the case where bot is fare from HA server if I understand correctly your question now things should be near the same because now it is possible to make a bluetooth proxy with and ESP32 and HA use it as it would use a Bluetooth dongle.
It is not mesh as it is for this integration but result are near the same, better signal is used to communicate with BT devices.
this is what I was wondering⌠last one: how do set the ESP32 proxy as proxy? where can I find the instructions?
lastly, I am using the SwitchBot as âpushâ button (one push, the appliance is on, another push the appliance is off), is there any way to assign to is the âon/offâ status? I would need it for an automationâŚ
Hi @devWaves , thank you for all the hard work on this. I saw someone ask earlier about adding blind tilt support. Do you know if you will be adding that in the future? I tried to see if I could get it to work as a curtain but no luck.
Iâm using those as well. Do you have any issues that might be related to the ESP32 WROOM? I feel like it does weird things with signal strength sensing. The fluctuations are huge even when devices are less than 1m away.
After the WiFi-router loses power and regains power, the ESP32s running this software wonât come back up again, which I consider undesirable. From the code, I didnât see a reconnect call anywhere, but perhaps I didnât look good enough (looked at the code on my phone). Iâd want the system to use DHCP to obtain a new IP after an outage from the wireless router.
I have a couple of these in the house and i just set dhcp reservations for each in the router/dhcp server and set the âstaticâ reserved IP in the code. hasnât been an issue with restarting my APs after a firmware upgrade.
Now however, i do get random âfreezesâ, where the esp just becomes unresponsive. I solved this by powering the module off of a cheap zigbee switch and have an automation that if the curtain modules in home assistant (that i know are tied to a specific ESP) become unavailable for more than 5 mins, just power off the switch, wait 5 seconds and then power back up. problem solved. plus i have some ârange extendersâ that are now always powered (the switches) now to help with the meshing and communication of some of the battery powered sensors i have in the house
Yes, I also considered adding Zigbee switches, but I donât like workarounds (it also looks awful and eats extra power).
@devWaves Apparently, I am not the only one that has random freezes. Can you provide a technical explanation for that? Iâd expect that the WiFi component you are using is not robust (or perhaps everyone is just using it in adversarial environments with many other competing WiFi-devices), because it seems unlikely that there is a huge design flaw in all ESP32 devices (we probably would have heard about that by now).