Switchbot Outdoor Thermometer / Hygrometer

Thank you. Probably just my misunderstanding of what HA offers. I thought the recorder purged after 10 days by default.

Yes the recorder purge the data after X days, but they should be kept with less density by the statistics.

1 Like

How do I get from seeing the device on MQTT Explorer using the TheengsGateway to getting the data into HA? I’ve used Node-Red to subscribe for something similar before. Is that they want I should do this too?

The device should be created automaticaly into the Devices section of HA
Settings->Devices & Services-> Devices

1 Like

I toggled my Shelly device’s bluetooth scanning to Active (was on Passive) and the Switchbot outdoor meter was then discovered by Home Assistant.

There are entities for Temperature, Humidity, Battery and Bluetooth signal strength.

1 Like

Did you do anything else?

I have scanning on, on the pi4 and set the Shelly to active scanning.

There is no sign of the sensor in HA, also Shelly logs seem to find a ton of devices, none are created in HA.

Did I forget to do anything?

Also I cannot find the known_devices.yaml

I enabled the active scanning via Home Assistant device configuration, rather than via the Shelly app/portal.

Settings – Home Assistant

@DigiH Can I use an ESP32 running ESPhome decode this meter directly without using openmqttgateway or other addons by examining servicedata or manufacturerdata?

I wouldn’t really know about ESPHome, as I only implemented this for Theengs Decoder, so I know OpenMQTTGateway running on an ESP32 will decode it fine, without requiring any further HA add-ons.

I’m certain sooner or later the SwitchBot Outdoor Meter decoding will also be included in other BLE implementations.

Would you mind pointing me to your code for decoding? I wonder if I can write some C code to do it on the ESP.

Edit: I found it.

1 Like

Hi,

I wonder what your intentions are regarding Home Assistant Container?

I managed to get TheengsGateway running using the docker container, but (a) it doesn’t have a version number, (b) it looks pretty old and (c) I have no idea whether or how the decoder is involved.

I think your stuff looks great and would love to get it working, but the user guides fall a little short on docker implementations.

Thanks!

B.

Incidentally, for information, it appears that all that is needed for the original post is the latest version of Home Assistant for which the Switchbot integration recognises the temp/humidity device via bluetooth.

I’m running 2023.8.4 and all is fine.

Is the sensor data updating for you? For me it grabs a static number when HA was first booted and then never updates

Yes. Have you located it within bluetooth range of the Home Assistant bluetooth gateway or, if you have one, the bluetooth proxy ? I have a dedicated ESP32 Atom as well as having bluetooth enabled on the RPi that runs HA.

If using the proxy, you should see a switchbot device in the MQTT integration as well.

If you can see the correct value with the Android app, you might want to see if you can access the sensor from the bluetooth location of the HA device or BT proxy if you are using one.

B.