![]() ![]() ![]() ![]() |
|
As many of the others are I'm using ESPhome with Xiaomi sensors (the round ones). I've got the ESP32 modules running both in Xiaomi sensor mode where you specify each sensor and what data you want passed back (old way) and Bluetooth proxy mode (new way), both seem to work well.
Ok, I'm updating this to have it documented. After a few months I've decided to give it another try.
I have Home Assistant running as a docker instance on my Synology NAS.
I have Mosquitto running as a docker instance on my Synology NAS.
I have Tasmota Bluetooth running on a MH-ET ESP32 kit.
I have three Xiaomi sensors flashed with atc1441/ATC_MiThermometer: Custom firmware for the Xiaomi Thermometer LYWSD03MMC and Telink Flasher via USB to Serial converter (github.com).
I have housed the MH-ET ESP32 on a 3D printed case MH-ET LIVE D1 ESP32 mini kit Slim Case by ShadowEcho - Thingiverse
Tasmota configuration:
I've used the Tasmota terminal to issue the command SetOptions19 1 to enable auto-discovery.
I've added Tasmota to Home Assistant but it did not find the thermometers, so after confirming that the messages were actually going from Tasmota to MQTT, @davidcole suggested a snippet to manually add the sensors. It worked so I replicated for the other ones.
In the configuration, ATCd69715 means the ATC sensor with the MAC Address ending in d69715. Note it's case sensitive, so what Tasmota shows on the page is not exactly what it sends in the MQTT topic - make sure it matches.
This is the configuration added:
mqtt:
sensor:
- name: "Tasmota Lounge Temperature"
state_topic: "tele/tasmota_12B560/SENSOR"
value_template: "{{ value_json['ATCd69715'].Temperature }}"
unit_of_measurement: "°C" # "F" if using Fahrenheit
device_class: temperature
- name: "Tasmota Lounge Humidity"
state_topic: "tele/tasmota_12B560/SENSOR"
value_template: "{{ value_json['ATCd69715'].Humidity }}"
unit_of_measurement: "%" # "F" if using Fahrenheit
device_class: humidity
- name: "Tasmota Bella Room Temperature"
state_topic: "tele/tasmota_12B560/SENSOR"
value_template: "{{ value_json['ATC66cdb5'].Temperature }}"
unit_of_measurement: "°C" # "F" if using Fahrenheit
device_class: temperature
- name: "Tasmota Bella Room Humidity"
state_topic: "tele/tasmota_12B560/SENSOR"
value_template: "{{ value_json['ATC66cdb5'].Humidity }}"
unit_of_measurement: "%" # "F" if using Fahrenheit
device_class: humidity
- name: "Tasmota Bedroom Temperature"
state_topic: "tele/tasmota_12B560/SENSOR"
value_template: "{{ value_json['ATCfac2fa'].Temperature }}"
unit_of_measurement: "°C" # "F" if using Fahrenheit
device_class: temperature
- name: "Tasmota Bedroom Humidity"
state_topic: "tele/tasmota_12B560/SENSOR"
value_template: "{{ value_json['ATCfac2fa'].Humidity }}"
unit_of_measurement: "%" # "F" if using Fahrenheit
device_class: humidity
The result:
I have Alexa connected to Home Assistant, and each sensor is assigned to a room, so now I can say, "Alexa, what is the temperature in the Bedroom" and she'll say "The bedroom temperature is ... degrees"
Unfortunately, it is not possible to use these in Alexa routines as I wanted. You need a sensor that can fire events that are then used to trigger the routines, and these sensors only report temperature and humidity but can't be set to fire events.
To that end I might have to get an Amazon Echo Dot 5th Gen with built-in temperature sensor, which does work for routines.
Other people who helped me here: @bartender and @michaelmurfy - thank you folks.
To others in this thread, thanks for your suggestions.
Please support Geekzone by subscribing, or using one of our referral links: Samsung | AliExpress | Wise | Sharesies | Hatch | GoodSync | Backblaze backup
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
davidcole: Why would you do routines in Alexa and not drove them from home assistant (automations). Just use Alexa as a dumb ui. Ie what is temp in so and so. Or set a automation to a switch that Alexa can fire if you prefer
I have a lot more connected to Alexa - Ring cameras, Hue lights, D-Link smart plugs, Grid Connect Wi-Fi outdoor lights in the garage.
These all work with Alexa and I have lots of Alexa routines already to turn on the garage lights when motion is detected at night on the deck (if dogs go outside), Ring spotlight light and garage lights turning on if motion is detected on driveway or front yard, Ring cameras coming automatically on Amazon Echo Show devices if person is detected, good night routines to turn off lights, turn on light stands in the lounge, etc.
I rather have all routines in a single place, for sanity.
I looked at using the D-Link plugs I have with Home Assistant to automate the space heaters in the bedroom at night but they aren't compatible with HA.
So the flow would have to be sensors -> Tasmota -> Home Assistant -> Alexa.
But as I mentioned, it doesn't work.
There seem to be two options: get a temperature sensor that can fire events (Zigbee or Matter compatible as my Echo devices support these standards) or use the Amazon Echo Dot 5th Gen, which has a built-in temperature sensor.
In any case, for this exercise (as explained in the OP), we achieved the objective of getting temperatures to Alexa.
Please support Geekzone by subscribing, or using one of our referral links: Samsung | AliExpress | Wise | Sharesies | Hatch | GoodSync | Backblaze backup
freitasm:
I rather have all routines in a single place, for sanity.
Starting to go OT here, but I'd be migrating all to HA from Alexa, even from a backup point of view. You own the code and have it backed up at your house. Whereas with routines in Alexa you're at their mercy.
Devices that don't work in HA are generally from "smart" companies that don't like the eco system and actively block HA.
But all this just comes from a philosophy of having local control devices, or when purchasing something (the Brilliant plugs form bunnings and reflashing them with tasmota/esphome - to break them away from their proprietary.
Another note, for anyone following your instructions, was that the Home Assistant discovery did not work. And seems the Tasmota/Home Assistant discovery code has been archived - which is why @freitasm had to manually create sensor entities. If available for anyone following, ESPHome might be a better, more integration fit.
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
This suggests you can flash them to support zigbee which should meet the needs of the "push"
https://smarthomescene.com/guides/convert-xiaomi-lywsd03mmc-from-bluetooth-to-zigbee/
CPU: AMD 5900x | RAM: GSKILL Trident Z Neo RGB F4-3600C16D-32GTZNC-32-GB | MB: Asus X570-E | GFX: EVGA FTW3 Ultra RTX 3080Ti| Monitor: LG 27GL850-B 2560x1440
Quic: https://account.quic.nz/refer/473833 R473833EQKIBX
I am still yet to get a zigbee capable alexa device to try them on, but there are countless cheap zigbee sensors in the aliexpress choice deals section that work well enough for me to have one in each fridge and freezer to monitor them with. US$2.99 each some of them were, but it seems its up to $3.99 now.
Link please? And what do you monitor, temperature in freezer/fridge?
Please support Geekzone by subscribing, or using one of our referral links: Samsung | AliExpress | Wise | Sharesies | Hatch | GoodSync | Backblaze backup
CPU: AMD 5900x | RAM: GSKILL Trident Z Neo RGB F4-3600C16D-32GTZNC-32-GB | MB: Asus X570-E | GFX: EVGA FTW3 Ultra RTX 3080Ti| Monitor: LG 27GL850-B 2560x1440
Quic: https://account.quic.nz/refer/473833 R473833EQKIBX
Cant really link to the choice deals because it would not give you the price, but if you search for zigbee temp sensors on there and then go into the $x.99 deals section then it will show related things to what you have looked for.
Here is a snip of a previous order
Current listing
|
![]() ![]() ![]() ![]() |