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.


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 
eonsim
398 posts

Ultimate Geek

Trusted

  #2982450 13-Oct-2022 20:53
Send private message

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.




freitasm

BDFL - Memuneh
79270 posts

Uber Geek

Administrator
ID Verified
Trusted
Geekzone
Lifetime subscriber

  #3205855 12-Mar-2024 21:47
Send private message

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 | GoodSyncBackblaze backup


davidcole
6034 posts

Uber Geek

Trusted

  #3205858 12-Mar-2024 21:50
Send private message

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




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 




freitasm

BDFL - Memuneh
79270 posts

Uber Geek

Administrator
ID Verified
Trusted
Geekzone
Lifetime subscriber

  #3205862 12-Mar-2024 22:03
Send private message

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 | GoodSyncBackblaze backup


davidcole
6034 posts

Uber Geek

Trusted

  #3205897 13-Mar-2024 07:11
Send private message

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 


mentalinc
3229 posts

Uber Geek

Trusted

  #3205905 13-Mar-2024 08:29
Send private message




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 


richms
28173 posts

Uber Geek

Trusted
Lifetime subscriber

  #3205982 13-Mar-2024 11:40
Send private message

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.





Richard rich.ms

 
 
 

GoodSync. Easily back up and sync your files with GoodSync. Simple and secure file backup and synchronisation software will ensure that your files are never lost (affiliate link).
freitasm

BDFL - Memuneh
79270 posts

Uber Geek

Administrator
ID Verified
Trusted
Geekzone
Lifetime subscriber

  #3205983 13-Mar-2024 11:44
Send private message

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 | GoodSyncBackblaze backup


mentalinc
3229 posts

Uber Geek

Trusted

  #3205991 13-Mar-2024 12:25
Send private message

Assume they just sit in their fridge and freezer on the shelf to check they stay properly cold?
But agree link to the actual product...




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 


richms
28173 posts

Uber Geek

Trusted
Lifetime subscriber

  #3206014 13-Mar-2024 14:34
Send private message

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

 





Richard rich.ms

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





News and reviews »

Air New Zealand Starts AI adoption with OpenAI
Posted 24-Jul-2025 16:00


eero Pro 7 Review
Posted 23-Jul-2025 12:07


BeeStation Plus Review
Posted 21-Jul-2025 14:21


eero Unveils New Wi-Fi 7 Products in New Zealand
Posted 21-Jul-2025 00:01


WiZ Introduces HDMI Sync Box and other Light Devices
Posted 20-Jul-2025 17:32


RedShield Enhances DDoS and Bot Attack Protection
Posted 20-Jul-2025 17:26


Seagate Ships 30TB Drives
Posted 17-Jul-2025 11:24


Oclean AirPump A10 Water Flosser Review
Posted 13-Jul-2025 11:05


Samsung Galaxy Z Fold7: Raising the Bar for Smartphones
Posted 10-Jul-2025 02:01


Samsung Galaxy Z Flip7 Brings New Edge-To-Edge FlexWindow
Posted 10-Jul-2025 02:01


Epson Launches New AM-C550Z WorkForce Enterprise printer
Posted 9-Jul-2025 18:22


Samsung Releases Smart Monitor M9
Posted 9-Jul-2025 17:46


Nearly Half of Older Kiwis Still Write their Passwords on Paper
Posted 9-Jul-2025 08:42


D-Link 4G+ Cat6 Wi-Fi 6 DWR-933M Mobile Hotspot Review
Posted 1-Jul-2025 11:34


Oppo A5 Series Launches With New Levels of Durability
Posted 30-Jun-2025 10:15









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.