Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


freitasm

BDFL - Memuneh
80657 posts

Uber Geek
+1 received by user: 41068

Administrator
ID Verified
Trusted
Geekzone
Lifetime subscriber

#301895 13-Oct-2022 08:04
Send private message

I am trying to get temperature and humidity information into Home Assistant so that I can integrate with Alexa.

 

Components:

 

  • Three Xiaomi temperature sensors flashed with custom firmware
  • ESP32 running Tasmota
  • Mosquitto MQTT as a Docker on Synology NAS
  • Home Assistant as a Docker on Synology NAS

Home Assistant can see Tasmota and load its data but it does not recognise the temperature sensors:

 

 

Tasmota seeing the Xiaomi sensors:

 

 

I feel something else is missing here. Any tips please?





Referral links: Quic Broadband (free setup code: R587125ERQ6VE) | Samsung | AliExpress | Wise | Sharesies 

 

Support Geekzone by subscribing (browse ads-free), or making a one-off or recurring donation through PressPatron.

 


Filter this topic showing only the reply marked as answer View this topic in a long page with up to 500 replies per page Create new topic
 1 | 2
jnimmo
1098 posts

Uber Geek
+1 received by user: 255


  #2982167 13-Oct-2022 08:42
Send private message

I haven’t tried with Tasmota, but ESPHome works really nicely if you wanted to give that a try if you’re not tied to Tasmota, I imagine the Bluetooth Proxy would be what you’re after https://esphome.github.io/bluetooth-proxies/ 

We should really get a home automation meetup happening in WLG!




tchart
2397 posts

Uber Geek
+1 received by user: 579

ID Verified
Trusted

  #2982169 13-Oct-2022 08:45
Send private message

Dont have a direct answer for you but Im running Home Bridge on my Synology to get devices onto Home Kit. Ive had lots of success with Tuya devices and they show up in Home Bridge and Home Kit without any fuss.

 

Im running Netatmo with IFTTT at the moment but if I was replacing I'd probably gravitate to towards Tuya devices. There seem to be many Tuya wifi temperature sensors on Aliexpress (and even Dick Smith!)


freitasm

BDFL - Memuneh
80657 posts

Uber Geek
+1 received by user: 41068

Administrator
ID Verified
Trusted
Geekzone
Lifetime subscriber

  #2982171 13-Oct-2022 08:54
Send private message

@jnimmo: I haven’t tried with Tasmota, but ESPHome works really nicely if you wanted to give that a try if you’re not tied to Tasmota, I imagine the Bluetooth Proxy would be what you’re after

 

 

Thanks, might have to give it a try if no one else replies with a Tasmota-specific answer.





Referral links: Quic Broadband (free setup code: R587125ERQ6VE) | Samsung | AliExpress | Wise | Sharesies 

 

Support Geekzone by subscribing (browse ads-free), or making a one-off or recurring donation through PressPatron.

 




davidcole
6099 posts

Uber Geek
+1 received by user: 1465

Trusted

  #2982172 13-Oct-2022 09:06
Send private message

Do you have mqttexplorer  anywhere, or mosquitto_sub?

 

Also on the tasmota web page, have you got the mqtt page there to show us?  





Previously known as psycik

Home Assistant: Gigabyte AMD A8 Brix, Home Assistant with Aeotech ZWave Controller, Raspberry PI, Wemos D1 Mini, Zwave, Shelly Humidity and Temperature sensors
Media:Chromecast v2, ATV4 4k, ATV4, HDHomeRun Dual
Server
Host Plex Server 3x3TB, 4x4TB using MergerFS, Samsung 850 evo 512 GB SSD, Proxmox Server with 1xW10, 2xUbuntu 22.04 LTS, Backblaze Backups, usenetprime.com fastmail.com Sharesies Trakt.TV Sharesight 


shanes
272 posts

Ultimate Geek
+1 received by user: 84

Lifetime subscriber

  #2982173 13-Oct-2022 09:12
Send private message

freitasm:

 

@jnimmo: I haven’t tried with Tasmota, but ESPHome works really nicely if you wanted to give that a try if you’re not tied to Tasmota, I imagine the Bluetooth Proxy would be what you’re after

 

 

Thanks, might have to give it a try if no one else replies with a Tasmota-specific answer.

 

 

I'm using ESPHome as well, works well, and no need for MQTT, I can share a config if you need it.

 

On the Tasmota front, I'm sure I've seen a Bluetooth discovery check box in the Integration, is it checked?

 

 


davidcole
6099 posts

Uber Geek
+1 received by user: 1465

Trusted

  #2982174 13-Oct-2022 09:13
Send private message

Unless you want to manuall create the sensors (which is fairly easy), this auto discovery option might help:

 

https://community.home-assistant.io/t/tasmota-xaomi-ble-temp-sensors/311314

 

The preceding posts in the thread to have some pointers to the manual mqtt config....but it would be based on what mqtt settings you had.

 

 





Previously known as psycik

Home Assistant: Gigabyte AMD A8 Brix, Home Assistant with Aeotech ZWave Controller, Raspberry PI, Wemos D1 Mini, Zwave, Shelly Humidity and Temperature sensors
Media:Chromecast v2, ATV4 4k, ATV4, HDHomeRun Dual
Server
Host Plex Server 3x3TB, 4x4TB using MergerFS, Samsung 850 evo 512 GB SSD, Proxmox Server with 1xW10, 2xUbuntu 22.04 LTS, Backblaze Backups, usenetprime.com fastmail.com Sharesies Trakt.TV Sharesight 


 
 
 

Shop now at Mighty Ape (affiliate link).
freitasm

BDFL - Memuneh
80657 posts

Uber Geek
+1 received by user: 41068

Administrator
ID Verified
Trusted
Geekzone
Lifetime subscriber

  #2982176 13-Oct-2022 09:17
Send private message

Thanks. Leaving to the office now but will try these tonight.





Referral links: Quic Broadband (free setup code: R587125ERQ6VE) | Samsung | AliExpress | Wise | Sharesies 

 

Support Geekzone by subscribing (browse ads-free), or making a one-off or recurring donation through PressPatron.

 


freitasm

BDFL - Memuneh
80657 posts

Uber Geek
+1 received by user: 41068

Administrator
ID Verified
Trusted
Geekzone
Lifetime subscriber

  #2982180 13-Oct-2022 09:23
Send private message

shanes:

 

freitasm:

 

@jnimmo: I haven’t tried with Tasmota, but ESPHome works really nicely if you wanted to give that a try if you’re not tied to Tasmota, I imagine the Bluetooth Proxy would be what you’re after

 

 

Thanks, might have to give it a try if no one else replies with a Tasmota-specific answer.

 

 

I'm using ESPHome as well, works well, and no need for MQTT, I can share a config if you need it.

 

On the Tasmota front, I'm sure I've seen a Bluetooth discovery check box in the Integration, is it checked?

 

 

Do you mean on Tasmota itself? Yes, that's how the sensors appear as per the screenshot. Or do you mean on the Home Assistant front? 





Referral links: Quic Broadband (free setup code: R587125ERQ6VE) | Samsung | AliExpress | Wise | Sharesies 

 

Support Geekzone by subscribing (browse ads-free), or making a one-off or recurring donation through PressPatron.

 


timmmay
20859 posts

Uber Geek
+1 received by user: 5350

Trusted
Lifetime subscriber

  #2982185 13-Oct-2022 09:42
Send private message

I can't help with Tasmota, but I have some Xiaomi temperature sensors working fine. I've written two tutorials that might be useful:

 

 

 

With the external Bluetooth with the external antenna the Xiaomi sensors work well through three walls across maybe 10m.


rscole86
4999 posts

Uber Geek
+1 received by user: 462

Moderator
Trusted
Lifetime subscriber

  #2982226 13-Oct-2022 11:44
Send private message

I moved from stock firmware and a custom esp integration, to custom firmware and esphome Bluetooth proxy a month ago, and it's working well.

https://pvvx.github.io/ATC_MiThermometer/TelinkMiFlasher.html

https://esphome.github.io/bluetooth-proxies/

This removes the need for a mqtt server/client on HA for me.


timmmay
20859 posts

Uber Geek
+1 received by user: 5350

Trusted
Lifetime subscriber

  #2982230 13-Oct-2022 11:54
Send private message

I tried the ESP32 bluetooth to WiFi proxy, it didn't extend range at all for me with one central WiFi access point compared with using a good quality USB Bluetooth adpater.


 
 
 

Want to support Geekzone and browse the site without the ads? Subscribe to Geekzone now (monthly, annual and lifetime options).
rscole86
4999 posts

Uber Geek
+1 received by user: 462

Moderator
Trusted
Lifetime subscriber

  #2982236 13-Oct-2022 12:02
Send private message

Whereas I'm seeing a drastic improvement. But that could be due to the custom firmware too. I've gone from no updates for (sometimes) hours, to max 5 minutes between updates.

huckster
887 posts

Ultimate Geek
+1 received by user: 460

ID Verified
Lifetime subscriber

  #2982244 13-Oct-2022 12:36
Send private message

Tasmota does have a Home Assistant auto-discovery option for HA & MQTT.

 

https://tasmota.github.io/docs/Home-Assistant

 

I have set up a few devices over the years using this - but once it's done, you don't touch it again, so the precise steps escape me for now.

 

Most recently, as I have a few ESP32 things I am tinkering with, I have been using ESP Home with that integration. It has made me think of converting some Tasmota devices tbh.

 

 


Ge0rge
2114 posts

Uber Geek
+1 received by user: 2060

Trusted
Lifetime subscriber

  #2982252 13-Oct-2022 13:26
Send private message

davidcole:

Do you have mqttexplorer  anywhere, or mosquitto_sub?


Also on the tasmota web page, have you got the mqtt page there to show us?  



Second this - I run tasmota on multiple sensors with HA and the first step I've found needed is making sure the mqtt data is flowing. MqttExplorer works a treat, and will allow you to see that the topics are being sent.

I manually add all my sensors, it becomes much easier once you've got a couple up and running.

openmedia
3449 posts

Uber Geek
+1 received by user: 878

Trusted

  #2982256 13-Oct-2022 13:37
Send private message

Currently using ESPHome for my Xiaomi sensors - a mix of the older round ones and the newer square ones with the custom firmware.

 

As my HomeAssistant is running in a Podman Container image I'm using 2 x ESP32 devices to cover the house for data capture and it typically works very well.

 

Considering a move to the new BT Proxy based approach, but what I've got is very reliable and being able to see the sensor data via the ESP32 web frontend is really useful.

 

I don't use the EPSHome HA addon for my builds as I can run the tools locally under Linux.





Generally known online as OpenMedia, now working for Red Hat APAC as a Technology Evangelist and Portfolio Architect. Still playing with MythTV and digital media on the side.


 1 | 2
Filter this topic showing only the reply marked as answer View this topic in a long page with up to 500 replies per page Create new topic








Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.