This is Part 1 of the series: ESP32 the Easy Way kzitem.info/news/bejne/o5tr4IurpJyHbH4 in case you need to add the ESP32 board. What creative ways would you use this setup?
@jameswu6149
2 жыл бұрын
Hi Chris, if I want to use multiple Xiaomi sensors to detect multiple areas' temperatures I have to buy the same amount of ESP32 devices and make them one by one connected by Bluetooth, right? Is it possible to connect two or more sensors to one ESP32 board? Thanks for your attention and look forward to your reply asap.
@mostlychris
2 жыл бұрын
@@jameswu6149 You can add multiple sensors to one ESP board as long as they are in range.
@jameswu6149
2 жыл бұрын
@@mostlychris Understand. I will give it a try. Thanks again.
@piechotam
2 жыл бұрын
@@mostlychris Can I have two ESP connected to same BLE? The reason is - the one, that is closer should get the data.
@KixMan28
3 жыл бұрын
Thank you for this video. I am using two of these sensors in my refrigerator: one in the upper side (standard refrigerator) and one in the bottom side (which is the freezer. I am using this setup since couple of months and the one in the freezer (-18°C) still works fine.
@mostlychris
3 жыл бұрын
Really? Maybe I should try one in the freezer and see if it survives. That would be awesome!
@TheTimmaeh
3 жыл бұрын
@@mostlychris Any feedback on whether it survived? I just ordered a couple more sensors and if feedback's mostly positive, I'd give it a shot myself.
@Poebbelmann
3 жыл бұрын
Does it read the correct temp in the freezer? I thought it could only go down to 0 °C at most.
@tpm369
3 жыл бұрын
Thanks for keeping your "errors/mistakes" in your video. It will help others with troubleshooting.
@mostlychris
3 жыл бұрын
You bet!
@marcus_w0
6 ай бұрын
The "update firmware" point is important, so you're all on the same firmware version! This is where problem start!
@ScottKnight66
3 жыл бұрын
Perfect timing! I am expecting my 5-pack to show up in the next couple days. Thanks for the walkthrough.
@mostlychris
3 жыл бұрын
Excellent! Have fun playing!
@jamess1787
3 жыл бұрын
Get your order yet? =D
@ScottKnight66
3 жыл бұрын
@@jamess1787 Not yet, but I do have a notification from USPS that something is arriving today. That's OK, though since it appears the TTGO ESP32 camera board I got yesterday isn't going to work exactly as expected. As soon as I enable BLE, the image gets too large to flash with the camera, PIR and screen enabled. :-(
@ScottKnight66
3 жыл бұрын
@@jamess1787 10-pack showed up today and it took less than 15 minutes to get the first one configured and on the network. These things are so cool. Now, to test how many ESP32's I need to scatter around the house to monitor all of these, lol Thanks for the great video, Chris!
@mostlychris
3 жыл бұрын
You're welcome. FWIW, I have 3 ESPs around the house and they can almost see all of the devices, even the one in the refrigerator. Depending on your building structure and materials, you might not need too many ESPs.
@abboberg987
2 жыл бұрын
Thanks Chris, i followed all the instructions and it is working very fine
@mostlychris
2 жыл бұрын
Excellent!
@stooge351
3 жыл бұрын
you sir, are a legend! - i have now 5 of these set up. now all i need is a wifi thermostat integrated into HA =)
@mostlychris
3 жыл бұрын
Excellent! Good job! Good luck with the thermostat.
@kalninsunbox
Жыл бұрын
It is a realy nice thermometer to use when you have small children at home.
@EddyYama
3 жыл бұрын
What is the advantage of using ESP32 board for HA, not using Passive BLE monitor integration?
@mostlychris
3 жыл бұрын
I can think of a few. 1) You have to have a bluetooth device on your HA server/system. 2) You have to have your sensors in range of your HA system. 3) You might have to mess with the environment variables in HA on some systems, which requires some advanced command line work. Of course, everybody's use case is different and there being more than one way to do the same thing, it's up to each person how they accomplish their goal.
@RandomTorok
7 ай бұрын
Ok I got this working got two of them in fact. But then I got to thinking, why don't we just put a temperature sensor on the ESP32? Like the DS18B20?
@anthonycalia1317
2 жыл бұрын
Thank you for all the good information. I have spent weeks working with esp32cams with and without BLE sensors integrated in accordance with these techniques. It is clearly my findings that the esp32cam performance deteriorates quickly when BLE temp sensors are included in the ESPHome integration. I can pretty-much always get them to work albeit after multiple flashing attempts etc. but then find continuous problems with both the camera images and uploading OTA. I believe the BLE interferes with the WIFI connection enough that these small devices just cannot do both together reliably. I pulled the BLE stuff out and the cameras work perfectly. I run a dedicated esp32 dev board with all my BLE Xiaomi sensors and BT Tracker and that too works perfectly. I just cannot get reliable results putting all this stuff into an esp32cam, even when I configure only one temp sensor per cam. I wonder if anyone else has had similar findings?
@anthonycalia1317
2 жыл бұрын
One added note. I tried using an esp32cam module configured as a generic esp32 module (no camera functions) as my BLE hub and that works fine as well...
@mostlychris
2 жыл бұрын
I'd be interested to know if anyone has a solution. I'm thinking that it is just too much for the ESP to do both but I don't have any of those to test with.
@RandomTorok
Жыл бұрын
I thought I had bricked my thermometer; I did the firmware update in Telink and then it wouldn't connect. Wouldn't connect to my phone or the Telink sofware. That is until I went into the bluetooth settings for my computer and deleted the device. Then Telink found the device no problem.
@carralf
3 жыл бұрын
Thank you fory your video. Really well explained. I am using esp32 with two thermometers one for cigars and other for a room. I am also using the esp32 as an additional wifi ap... thank you
@mostlychris
3 жыл бұрын
Cool applications and good job getting it working!
@RandomTorok
Жыл бұрын
Ok I followed you through parts one and two, twice, with 2 different esp32 and 2 different thermometers. Now, in home assistant when I go to ESPHome there are 2 thermometers one for the livingroom and one for outside. They both show as online. When I go to integrations ESPHome shows 1 device, the outside thermometer, and if I scroll down to the bottom of the integrations page there is a Xiaomi BLE device which is the livingroom thermometer. Why aren't they both showing up in the ESPHome?
@blaatand
6 ай бұрын
Hi Chris, thank you for a fantastic walk-through. Would it be possible to have thermostats in ESPHome, controlling relays based on temperature BLE sensors. Without using Home Assistant?
@brian.hanifin
3 жыл бұрын
Neat. I'm going to grab 8 of these, I like the idea of one in each room.
@mostlychris
3 жыл бұрын
Go for it!
@brian.hanifin
3 жыл бұрын
@@mostlychris Thank you for this. I had no idea these ones could be changed to Fahrenheit! I only bought one of the round Bluetooth Xiaomi sensors, because it didn't make sense to show the temperature if I had to do ask my Google Mini to convert the temperature for me every time. :) I do a humidity comparison between two sensors in my bathroom and a nearby bedroom, do decide when the turn the Exhaust Fan on and off. I like that my values should be easier to compare with two matching sensors.
@pinguinen
6 ай бұрын
Thanks for this dude! have these ordered and couldn’t find detailed steps for this after seeing someone on the HA forums talk about using these thermometers with an ESP32 Do you know if the ESP32 C3 can be used as well?
@basterojc
3 жыл бұрын
This gives me an idea... rather than forking out big bucks for a Nest thermostat sensor, one could use the Xiaomi sensor(s) in different rooms to determine which ambient temperature one would like to control to. Assuming of course that one could via the Google Nest API set the target temperature. Would make a great video :-)
@mostlychris
3 жыл бұрын
I have thought about that actually. My WFH office gets warmer than the rest of the house and I would like to turn on the A/C if the differential between the office and the house equals x. What I haven't completely figured out is what the threshold would be and how low to set the thermostat not to freeze everyone else out. It is also possible, via the Nest integration, to turn the fan on to "equalize" the air in specific rooms. That might be something I try.
@M4biz-g3d
2 жыл бұрын
Hi. Very useful video. Let's see if I understood correctly. The Xiaomi LYWSD03MMC Bluetooth BLE thermometer is connected to ESP32 via BLE (Bluetooth low Energy) and the ESP32 is connected to raspberry via WiFi? And, If yes, I've two questions: 1) if I don't want any kind of WiFi but only BLE, should I connect the ESP32 to Raspberry PI via USB cable? 2) Is there any kind of cheap relay that may I connect , even via BLE, to ESP 32 and show it and manage in Home Assistant in a similar manner of that shown in the video? Thanks in advance
@mostlychris
2 жыл бұрын
Maybe. Give this a look: community.home-assistant.io/t/passive-ble-monitor-integration/303583
@hamadalmarri2141
3 жыл бұрын
I think I would go with Shelly HT , no need for flushing , also it uses WiFi for better coverage. What you did is great but I like ready and easy stuff
@mostlychris
3 жыл бұрын
Interesting. Takes some of the fun away...but I see your point. More expensive than what I put together and it's bigger. I can't hide that thing up on a wall in the refrigerator. I can see use cases for it elsewhere though.
@hamadalmarri2141
3 жыл бұрын
@@mostlychrissometimes we might need to customize solutions, then I will go with your approach . Both I can have fun 😊
@mostlychris
3 жыл бұрын
Absolutely!
@NiallKearney
3 жыл бұрын
@@mostlychris If you want something of the same size Xiaomi make a Zigbee temp/humidity/pressure sensor. Overall cost is more though, per device and you need a Zigbee receiver to act as the gateway. I have some other Zigbee devices so it was easy enough to add them in to my current setup. Works through fridges as well :)
@GauravVermaGoogle
Жыл бұрын
It’s not working. Nothing happens when I click on connect button. Tried with my MacBook iPhone and iPad. Tried your link and Aaron’s 😢 Can you help please
@lgg4doru430
11 ай бұрын
Hello, I installed home assistant on a laptop. How can I monitor the laptop battery in home assistant?
@mbp5863
2 жыл бұрын
Thanks for these videos, they are very useful! Is it possible to write some code to the esp32 and get it to execute some action based on a trigger from Home Assistant? For example: if the time is X then home assistant tells the esp32 to send 5v through a pin on the esp32 board. Thanks for your help:)
@mostlychris
2 жыл бұрын
Answered this on the other vid with the same question.
@kadirbekil9225
4 ай бұрын
Can you please check the thermostat with this device?
@mattpatterson3975
3 жыл бұрын
Has anyone managed to change the update frequency in all the settings what one is it? Mine is stuck on 60sec I want 10min?
@mostlychris
3 жыл бұрын
You can do this with the advertising interval setting. Change that to what you want it to be.
@mrteausaable
2 жыл бұрын
Please note that you can get the MAC address from the esphome debugging log.
@mostlychris
2 жыл бұрын
Thanks for the tip. I've seen that.
@thomashessel9322
2 жыл бұрын
First off thank you so much for this very helpful video, I now have 10 of these running perfectly in my house. My question is how often are these reporting to home assistant? I look at the trends and seems to be somewhat random between 2 and 3 minuts. Just wondering if you know the exacts and from there I might be able to set them to report more or less frequently.
@mostlychris
2 жыл бұрын
You can set the update interval on the devices but my understanding is that Home Assistant ignores values that don't change. Saves space in storing history. These sensors might also only send updates if the state/value changes. In my MQTT setup, I tell my sensors that I care about to force update, which then sends an update even if the value is the same.
@diederikmaes2367
3 жыл бұрын
it took some trying but I got it to work, thanks. Maybe it is interesting to note that you should push a button on the ESP32 when trying to flash over USB initially :-)
@mostlychris
3 жыл бұрын
I didn't have to push anything when configuring via USB. Are you using the same D1 Mini boards?
@diederikmaes2367
3 жыл бұрын
@@mostlychris no, I'm using the Nodemcu ESP32 CP2102
@mostlychris
3 жыл бұрын
@@diederikmaes2367 Ahh ok. Some of those boards require a slightly different process. Makes sense.
@username63673
3 жыл бұрын
@mostlychris Hi, thanks for the nice video. I managed to connect to my NUC (where HA is) 3 sensors and all reporting fine. My problem is that when I try to move the esp32 to another location (in my living room) it stays offline. Is that how it supposed to work? Connected to my NUC or have I done something wrong?
@mostlychris
3 жыл бұрын
The ESP is wifi based and will connect to your IP network as long as you have a signal. The sensors are bluetooth low energy and they have a limited distance between them and the ESP. Which thing is offline?
@raamoon87
5 ай бұрын
You made me buy a ESP32 hahaha, how often does it updates the data over Bluetooth? I have an old rounded version that updates every few seconds and I want precise measurements like this old one, so I’m unsure if this model will cover my needs.
@GaryRobas
3 жыл бұрын
Thanks Chris, very interesting!
@mostlychris
3 жыл бұрын
Glad you enjoyed it!
@coin777
3 жыл бұрын
Is there a way to connect this termometr directly to my rpi with home assistant with Bluetooth?
@mostlychris
3 жыл бұрын
Yes. I have heard that is possible.
@onoxsis
2 жыл бұрын
HI Chris, your videos are amazing. I was just curious what do you use to power your WEMOS D1 mini ESP32 boards?
@mostlychris
2 жыл бұрын
Thanks! I use old cell/tablet/etc wall bricks. Got tons of them around from various devices that I either got rid of or have consolidated into other chargers.
@devonusmcable
3 жыл бұрын
Thanks been waiting for this video
@mostlychris
3 жыл бұрын
You're welcome!
@DannyDM00
3 жыл бұрын
There has been one out there for months. explaining the exact same stuff.
@mostlychris
3 жыл бұрын
Interesting. Hopefully this one is still helpful to someone and was still fun to play with.
@W-9789
3 ай бұрын
thank you very much sir,
@mostlychris
3 ай бұрын
Most welcome
@iulianch
3 жыл бұрын
Great video! Can you please share the code from node red for alerting you whne the temp from fridge go high? Thank you
@mostlychris
3 жыл бұрын
Sure. Here it is pastebin.com/rreJ2a5e.
@abuseifamina
3 жыл бұрын
Hi, Thank you for the gr8 effort, my question is what do you use to put the ESP32 board in? , I mean is it a plastic box, special case?
@mostlychris
3 жыл бұрын
Well.... I don't have a good solution for that. I'm still searching for a case for those boards.
Жыл бұрын
Is the signal quality 90 good? How can i extend the range for 2 thermomerers? How often should we send data? 2500ms is too often in my opinion. What do you recommend?
@mostlychris
Жыл бұрын
You can use the new bluetooth proxy in home assistant to read BLE devices that are outside the range of bluetooth on HA. You can set the update interval to whatever your preference is.
@liveartrainbow
3 жыл бұрын
Great work bro
@mostlychris
3 жыл бұрын
Thanks 🔥
@groto27
2 жыл бұрын
Do you think disabling the smiley would save any significant amount of battery life?
@mostlychris
2 жыл бұрын
I don't think so. I turn it off anyway because I don't need it.
@csabatamas7245
Жыл бұрын
Hello! I would like to ask for your help. I also bought such a small sensor. My goal with it is to measure and display the temperature in a tank in the xiaomi system. I would like to connect an external NTC thermistor. 1. Does anyone know what kind of sensor it has if I only want to use the temperature? for example NTC 10K B:3950 2. Does it have an input point (p1,p2,p3 ...etc) where it can be connected? The solder point on the original sensor is quite small.
@lolojr1
2 жыл бұрын
thank you these are the step by step that im looking for but i have an ESP 8266 can i use it ?
@mostlychris
2 жыл бұрын
ESP8266 doesn't have BLE so that won't work for monitoring these devices. You'll need the EPS32 or even the newer version of ESP board.
@user-zg2hg4cu5b
Жыл бұрын
Im trying to do this with a Shelly1plus and some Govee thermometers, but using the Shelly app it looks like the termometers only report the data once per minute. is there a way to use esphome and reduce the report rate so im getting data once every 10s or so?
@makaveli7771
3 жыл бұрын
Hi, Nice video. as I was about to onboard on a different solution to monitor my fridge freezer temperature using RF sensor then an RF receiver to Sniff the code. I think your solution is a lot cleaner. Now do I need an ESP32 board although the raspberry PI running HA have built in bluetooth? Do you have any idea about the battery life in freezing conditions? Many thanks
@mostlychris
3 жыл бұрын
Be careful with this solution for freezers. Its not suitable below a certain temp (I forget what). Battery life in the fridge has been fairly low. It's been in there a few months now and still chugging along. If your raspberry pi is close to your thermometer it might work. You'll have to experiment with that.
@pokeysplace
3 жыл бұрын
Have you seen a way to set the local display back to Fahrenheit (among other settings) after a battery change via the ESP connection?
@mostlychris
3 жыл бұрын
My understanding is that this isn't possible. I am thinking that the thermometer would have to be updated directly and not through the ESP board. Happy to be told I'm wrong and that it can be done if anyone knows of a way.
@frogeye22
2 жыл бұрын
Has anyone found a tidy way of having these esp boards fitted around the house? I've got various boards hanging from usb cables out of sockets that look a bit ugly (I'm agreeing with my wife on this one!!) - great video Chris
@mostlychris
2 жыл бұрын
Thanks! I'd be interested in this as well. I've got 'em under bookshelves and behind the fridge. I would like something a little nicer.
@ianthomson4427
3 жыл бұрын
Hi, Really great video! I’ve given it a go myself and manage to get one sensor working well with home assistant. I’ve since added two more, and with each addition it seems to be making the data slower, and by the third one, I could no longer get it connected. Do you have any suggestions on if it’s possible to get this many BLE sensors reporting to one ESP32? Maybe there is an optimal setup you could share for many trackers? I’ve purchased five in total.
@mostlychris
3 жыл бұрын
Hey Ian. I have seen documentation and comments that you can do up to 8 sensors on one ESP32. Are you saying that the Xiaomi devices cannot connect to the ESP32 after device 3?
@ianthomson4427
3 жыл бұрын
@@mostlychris thanks for your response - I was trying to use the alternate ESP32 platform for the custom firmware (atc_mithermometer) with customer advertisement. I’ve just now changed them all to use Mi as in your video and I now have all three working.
@mostlychris
3 жыл бұрын
@@ianthomson4427 Excellent!
@gutv
3 жыл бұрын
HI! Thanks for posting it. I installed the Home Assistant into the PI4, could I use the PI4 Bluetooth instead of an esp32? I saw there's an integration called "XIAOMI Mijia BLE Temp and Hum Sensor". Thank you!
@mostlychris
3 жыл бұрын
You might be able to do that. Some of that will depend on location of your HA box and the attached blue tooth stuff. I haven't tried it but a quick look at the docs seems it might work. YMMV of course. Also, the GitHub page shows an update 17 days ago so it might even still be maintained.
@gutv
3 жыл бұрын
@@mostlychris thank you very much
@mostlychris
3 жыл бұрын
@@gutv Welcome.
@stevedegard4097
2 жыл бұрын
I love all your videos. Setting up my devices as you show in your videos work great. But on this one HA is showing me the device, but it isn’t showing the temp, humidity, and battery entities. Can you please help. I bought six of these temp gauges..
@mostlychris
2 жыл бұрын
You need to make sure that you specify the correct MAC address in ESP for each of these devices or it will ignore it. It could also be that you are using the mode that requires the key and you haven't specified that. Make sure it is in Mii advertising mode.
@EricOnYouTube
2 жыл бұрын
Do you have a video on ESP32 and BLE to the Home Assistant and not Wifi? Thanks.
@mostlychris
2 жыл бұрын
I guess this is the same question as from the other video. Do you have an example of what you are trying to accomplish?
@ol-np8sy
2 жыл бұрын
Cool. Have you done similar with ZigBee sensors ?
@mostlychris
2 жыл бұрын
I have not, but have been asked this before. I keep saying that I need some zigbee in my life. The HA Amber has built in Zigbee but I don't have one of those..yet.
@shikdo
2 жыл бұрын
Hi Chris, thanks for yet another great video! Question: Do you know of a similar, low-cost BLE sensor that can do below-freezing temps (e.g. -20 -- 50 Celsius etc.) and works with ESPHome? I'd like to place one in my freezer but the specs for this sensor put its low temp limit at freezing (0 deg Celsius). Thanks!
@mostlychris
2 жыл бұрын
I use the Sonoff TH16 in my freezer. I don't see those available at the moment and they are wired. You could wire up a Dallas temp sensor with an ESP32 kzitem.info/news/bejne/2ISewICaj5-inXo and use that. The BLE stuff isn't forgiving of low temps.
@darknessblades
Жыл бұрын
Is there a way to recover the bind key/token. I lost them for 1 of my thermometers
@mostlychris
Жыл бұрын
You can revert to factory and then do it again, iirc.
@RonsonDenmark
2 жыл бұрын
Thanks for the guide - can't get it to work though. I flashed the ATC firmware, the thermometer says ATC when booting and flashes the battery percentage, so I take it that part went well. I set it up as "Mi like". After flashing I cannot get temp/humi via the telink flasher or change any settings, it just says "custom firmware found" and suggest another site where I can reflash it. Reflashing works just fine. Anyway, I noted down the MAC and bind key and compiled and flashed the esp, but it never connects. I've triple-checked the settings (at least..), recompiled and reflashed several times and while it DOES list the thermometer in the list of found BT devices (with the MAC I entered), it never connects to it. Did anyone have this issue and know how to solve it?
@mostlychris
2 жыл бұрын
The one time I saw something like this is when the MAC wasn't correct. It could see the thermometer but was essentially ignoring it. Are you specifying the bind key? Depending on how you flashed, you may need it.
@RonsonDenmark
2 жыл бұрын
@@mostlychris I have checked the MAC several times and used the bind key that the telink page showed (and set the advertising to "mi like"). Think I'll flash the stock firmware and start from scratch again.
@mostlychris
2 жыл бұрын
@@RonsonDenmark That was going to be my suggestion. Put the original firmware on and try again.
@best3140
3 жыл бұрын
can we config advertising time longer than 10000 mS for save battery ?
@mostlychris
3 жыл бұрын
The flasher that I am using shows a range up to 10000ms. You can also adjust other intervals to affect the frequency of updates.
@fredflintstone8048
3 жыл бұрын
Now that you've been running these for awhile, I wonder how long the batteries are lasting for you given the 4 minute updates.. If you're sending out updates at a different interval, I would love to know that interval along with approximately how long the batteries last.
@mostlychris
3 жыл бұрын
Looking at my graphs for one of the sensors, it looks like the reports only come in when there is a change in value. The battery goes up and down slightly throughout the day so I get sporadic readings. Looking back to March when I started recording data from this sensor, the battery was at 68.9% and today it is at around 60%. I also haven't changed my power level from the default so it is possible that I could get better battery performance if I were to use lower power during transmitting. I am seeing similar performance from one of my other sensors. There is definitely some tweaking that can probably improve battery life.
@JohnOstroot
2 жыл бұрын
Is there a way to change the decimal place reading on humidly.. Implement the "accuracy decimal: 0" change it to "accuracy decimal: 1" in the ymal file. The accuracy decimal is 1 on temperature. How do I change it on humidity?
@mostlychris
2 жыл бұрын
I've had to create a template to modify that value and return a rounded number.
@nics8040
2 жыл бұрын
I’m getting a fail needs to be in download mode message. Do you know what’s wrong?
@mostlychris
2 жыл бұрын
Have you put the board in programming mode with the button?
Жыл бұрын
Can we Increase the range of BLE termometres by Bluetooth Proxies in Home Assistant? I have 80m2 flat and 5 termometeres and 3 works fine, and 2 of them lost connection every few minues.
@mostlychris
Жыл бұрын
Yep. Exactly what the proxies are designed for...range extension.
@RandomTorok
Жыл бұрын
Do you know of a thermometer like this one that can be used outside?
@mostlychris
Жыл бұрын
I actually had an Aqara up under the eave of my house for about 3 months and it worked. I've even seen 3D printed enclosures for those to waterproof them.
@brianh.4185
Жыл бұрын
As usual, clear as mud.
@kaspotberzedge4704
3 жыл бұрын
Awesome!
@mostlychris
3 жыл бұрын
Thanks!
@timkuson
3 жыл бұрын
How to send atc_xiaomi bluetooth esp32dev temperature data to php webserver over wifi ?
@mostlychris
3 жыл бұрын
This is more than can be explained in a YT comment. If you can read it in via some method, like a Sensor, you can export it to other devices--or have your php webserver query the value from Home Assistant via websocket.
2 жыл бұрын
Hello, I want to get information from 1 esp32 and 3 Xiaomi thermometers, what should I do for this? It's like a multi-sensor.
@mostlychris
2 жыл бұрын
You can put all 3 Xiaomi sensors on one ESP32 as long as the ESP32 is in range of those Xiaomi devices.
@Lepelot
3 жыл бұрын
Hello Chris, thanks for another great video. Two quick questions: 1) is there a limit to the number of sensors one can read via an ESP32? and 2) what is the approximate maximum range of the ESP in a typical house?
@mostlychris
3 жыл бұрын
I thought I read that the theoretical limit was 8 but I can't find the reference to that now. Unless you have a ton of things in the same room, you will have coverage issues before you hit the limit and would need another ESP32 board anyway. Range is very much dependent on your environment. Bluetooth is 30ft (9m)in open air. Any obstructions or interference will limit that range.
@Lepelot
3 жыл бұрын
@@mostlychris excellent, thank you so much. it seems that one ESP for each room that has sensors is a good guess.
@mostlychris
3 жыл бұрын
@@Lepelot Maybe.. depending on location you could possibly use an ESP for every 2 or 3 rooms. Again, it's all about your environment. Experiment!
@Lepelot
3 жыл бұрын
@@mostlychris OK, I'll get a couple and see how it goes. Exprimenting is the fun part but for a starter like me, it wouldn't be nearly as much fun without your help. Thank you again.
@mostlychris
3 жыл бұрын
@@Lepelot You're welcome and have fun!
@erikvantveen5301
3 жыл бұрын
Hope you can give more insight in the fridge temp flow in node red in one of your video’s
@mostlychris
3 жыл бұрын
Import this flow into Node-RED. pastebin.ubuntu.com/p/gC2D2G8t3q/. It has the refrigerator door monitor and alerting. Change your entities as needed to work with your setup.
@erikvantveen5301
3 жыл бұрын
Men, you are great. Quick response. I like that.
@erikvantveen5301
3 жыл бұрын
@@mostlychris that flow is for door open or closed, I'm more interested in the one with Kitchen Fridge Temp when temperature get below a threshold and gives a warning
@mostlychris
3 жыл бұрын
Oh doh! Let me get that one. Here is the correct one: pastebin.ubuntu.com/p/WcQMHvtpQm/
@erikvantveen5301
3 жыл бұрын
@@mostlychris Thank you very much, I appreciated that
@MilesReetz
3 жыл бұрын
Hi there! thank you for these 2 vids! With your fantastic precise instruction, I was able to bring my sensors in, however... I cannot flash the firmware with Telelink flasher..... after doing activation... When I try to flash the device to custom firmware with Telellink I get: 1:09:28 AM: Load firmware file 'ATC_Thermometer31.bin'... 1:09:28 AM: File size: 61956 bytes 1:09:28 AM: Count: 3873 1:09:46 AM: Start DFU 1:10:48 AM: Update error: NotSupportedError: GATT operation failed for unknown reason. I'm stuck... Can you offer any direction?
@mostlychris
3 жыл бұрын
So a few things maybe... 1) Do this in an incognito tab to limit the number of other things running in the browser. 2) Make sure you have the correct and latest firmware for your device. 3) If you have flashed this before, try and reset the device to defaults and start again. 4) Make sure you are running this in a supported browser. 5) Make sure your bluetooth is running and that your browser has access to bluetooth.
@finereplicawatch
3 жыл бұрын
Hello. I am new to ESP. I have an ESP32 wifi-bluetooth board which is updated through HA. I add sucxessfully using custom firmware 4 Xiaomi MI Bluetooth thermometers. But i have a problem. HA is loosing connection after 6 to 8 hours with the ESP32 board and when i restart HA everything is ok for another 6 to 8 hours. In the HA log i get the error that is losing connection with the IP of the board which is static. That time i can normally ping the board from my PC. Another strange think is that while HA is not connected with the thermometers, the ESP Home read the data from the thermometers (through the log of board} Any suggestion how to fix this problem?
@mostlychris
3 жыл бұрын
This sounds like a network issue (or the board is bad). Are you running any kind of specialized network setup? Have you set the static IP on the board or router? Is there something else that shows up in your network that is causing the IP to conflict?
@jjussi
3 жыл бұрын
09:45 you said that it will update every 4 minutes, but values what you used were 2500ms and 4X, so it's 10.000 ms = 10s
@mostlychris
3 жыл бұрын
Thanks for the correction. I probably meant the one I had with stock values...or I just did the math wrong. Probably the latter. If it is 10s, that is a battery waster. I'll go back in and check to make sure I didn't really set it that way.
@mrteausaable
2 жыл бұрын
@@mostlychris What value to change to 10 minutes? Seems too many zeros for miliseconds. The old custom firmware is 10 minute max.
@mostlychris
2 жыл бұрын
@@mrteausaable You would adjust the advertising interval and measure interval the amount of time you want to update.
@wvpolekat
2 жыл бұрын
Is it a 1 to 1 relationship with ESP and sensors?
@mostlychris
2 жыл бұрын
No. You can add more than one of the Xiaomi's to the ESP.
@EvilCob
3 жыл бұрын
How can I have multiple sensors? I tried to add a second sensor to the code. But I got error messages. I have bought 4 LYWSD03MMC sensors and wanted to use 2 of them on one esp32 node
@mostlychris
3 жыл бұрын
This should be possible. What error are you getting? Is the error while trying to flash the ESP32 or something else? Without seeing anything, I'm guessing it might be related to the configuration in the config file.
@lewiepanda9159
3 жыл бұрын
Hi Chris - I have been using 5 of these successfully in ESPhome for many months and the values are posted to a HA dashboard. BUT ! the other day I had to change the battery in 2 of the mi xiaomi devices and since then the esp32 board has not been able to get the readings. I can see in the log that these ATC devices are found but their address type shows as public rather than random like the others. Have you any ideas how I can get these fully working again ?
@mostlychris
3 жыл бұрын
I don't think the settings in the devices persist after battery changes. You might need to flash the firmware again or at the very least make sure it is using the Mi advertising type. Double check the mac address matches what is in your config as well (it shouldn't have changed).
@vedvern
3 жыл бұрын
Thank you very much for this tutorial. I managed to update two of these Xiaomi LYWSD03MMC devices with custom firmware and have them connected to HA via the esp32 as you described with the updated mac addresses in the yaml as well. The issue I'm seeing is that the values only seem to have been updated once and HA just shows me a flat line. I'm guessing I need to update an advertising or sync interval either in the BLE device or HA (or both?). I want the update from BLE device every 10 min to conserve battery. Can someone help point me in the right direction?
@mostlychris
3 жыл бұрын
What I have seen is that the updates will show when there is a change in the sensor value (temp or humidity change). There is an advertising interval you can play with but even when I did that, the updates were only on state change.
@vedvern
3 жыл бұрын
Actually I noticed that I get a reading from the device only once when I power cycle my esp32 board
@vedvern
3 жыл бұрын
@@mostlychris thanks. Yeah I see the values updating on the LCD screen, but nothing in HA. Something must have gone wrong. Let me play around with the thermometer settings
@mostlychris
3 жыл бұрын
@@vedvern Sounds good. If all else fails, maybe flash it back to stock and then start over.
@MrX-yg7rz
2 жыл бұрын
After update software my sesnor not work reconnect :/
@mostlychris
2 жыл бұрын
Which software did you update?
@TheRealAnthony_real
3 жыл бұрын
I can see the ATC SW you use has a different UI from the standard one.. On the one that I have I can't really get the sensors to update rarely .. they always update 2-5 mins however I wanted to have them update every 10 mins .. sometimes some sensors won't update for quite some hours ... Looking at the logs in the esp or HA .. Is your ATC SW better ? Or it is a sensor issue ?
@mostlychris
3 жыл бұрын
Apologies. What do you mean by ATC?
@TheRealAnthony_real
3 жыл бұрын
@@mostlychris the SW that you write on .. the UI is different compared to what I have .. is it better ?
@mostlychris
3 жыл бұрын
Can you jump on my discord server and send a screenshot of what you are looking at. I think you are talking about the Telink Flasher but I want to be sure.
@TheRealAnthony_real
3 жыл бұрын
@@mostlychris in refering to the flash you write on the sensor ... It is different user interface once you connect to it compared to what I have on mine ..
@mostlychris
3 жыл бұрын
This might be dependent on the firmware you are running. At this point, I need to see a screenshot or something to be able to understand. Can you post that in Discord?
@garysteo3398
2 жыл бұрын
Hi Chris Just received these thermometers and my question is does the computer running home assistant need to have bluetooth for home assistant to talk to the device
@mostlychris
2 жыл бұрын
No. These are used with the ESP32 boards that have bluetooth enabled.
@garysteo3398
2 жыл бұрын
@@mostlychris I assume you can have multiple thermometers on one esp32 board correct?
@mostlychris
2 жыл бұрын
Yes.
@garysteo3398
2 жыл бұрын
@@mostlychris thank you
@chrphillip
2 жыл бұрын
Hi, and thanks for the great broadcasts. I have a question. Is it possible to connect multiple Xiaomi thermometers to one ESP32? - and if possible, how should I set up my YAML? Sincerely OZ1LKY - Christian
@mostlychris
2 жыл бұрын
Yes. You just duplicate the code for each sensor and change the MAC address and name of the sensor to match the different sensors (name is descriptive but MAC is required or it'll ignore the device).
@chrphillip
2 жыл бұрын
@@mostlychris Hello again. yes, of course, and thank you so much for the help. Sincerely OZ1LKY Christian
@michaels7828
3 жыл бұрын
Hey, Chris, Thank you for your videos, they're greatly appreciated by HA enthusiasts! Could it be possible for you to post a supplemental code for ease of copy/paste by viewers. Thanks in advance.
@mostlychris
3 жыл бұрын
Noted. For this sensor the code I used I got from here (linked in the description above as well): esphome.io/components/sensor/xiaomi_ble.html?highlight=ble#lywsd03mmc Obviously you need to update it to reflect your settings.
@michaels7828
3 жыл бұрын
@@mostlychris Thanks, Chris!
@mostlychris
3 жыл бұрын
@@michaels7828 Sure thing!
@chrisrosenkreuz23
2 жыл бұрын
do you know what version BT this works with? I got like version 4 I think
@mostlychris
2 жыл бұрын
What are you trying to connect these to that uses a specific version of BT?
@chrisrosenkreuz23
2 жыл бұрын
@@mostlychris connect them to my usb dongle receiver which is version 4 LTE. But I got a bt mesh hub in the mean time which has version 5 so problem solved. thanks for the video!
@RandomTorok
Жыл бұрын
Can you not connect the Xiaomi device directly to HA?
@mostlychris
Жыл бұрын
If you have BT on your HA device and it is range, sure.
@RandomTorok
Жыл бұрын
@@mostlychris Thanks for the reply. I have a hyper-V host in the basement and Home Assistant is running on a VM so I won't be doing bluetooth. However, I'm going to be setting up a console which will have BT. Could the console relay to the server? Or should I just transfer the server to the laptop?
@25nogard
3 жыл бұрын
once you flash the custom firmware, the device is accesible in mi home too or only in HA?
@mostlychris
3 жыл бұрын
That's a good question. I never used the mi app so unfortunately I can't answer. If anyone else knows the answer, please comment.
@sanderwolschrijn8707
3 жыл бұрын
It won't connect to the mi home app anymore. The device can only be paired to 1 other device. But you can use the home assistant app to see the values. And it works much faster that way.
@mostlychris
3 жыл бұрын
On a related note, you can flash it back to stock firmware if you ever wanted to use it in the mi app. But as Sander said, I'd just use it Home Assistant and create a card to display the values sent by the device.
@stevetrapp1095
3 жыл бұрын
Links to products as you said in video ????
@mostlychris
3 жыл бұрын
They are down below in the kit.co links. It's easier to maintain the list there than update all the YT descriptions when something changes.
@DIYReid
3 жыл бұрын
I couldn't get my computer to recognize the ESP32 board, I did move over to my macbook pro and tried ESP flasher and downloaded the bin file esphome created. I don't think the flash worked and am kind of stuck. :(
@DIYReid
3 жыл бұрын
Well... I figured it out. I had to keep pressing the boot button on the ESP32 over and over and over until it started flashing.
@mostlychris
3 жыл бұрын
Glad you got it working. BTW, have you seen the new way to flash these boards? kzitem.info/news/bejne/zqBjmGiJk36CfqA
@DIYReid
3 жыл бұрын
@@mostlychris I think my problem is I have HA installed via VirtualBox and I think I have to enable that USB port.
@mostlychris
3 жыл бұрын
@@DIYReid The new method shouldn't require that anymore. You just plug it into any PC that has a USB port and do the install via the browser.
@DIYReid
3 жыл бұрын
@@mostlychris OOOOH, I guess I didn't realize that. Thanks! That'll make for flashing another one easier.
@aakashrajput6309
3 жыл бұрын
Bro, I have similar setup for multiple sensors and esp32 gateway, but it creates multiple entities for each sensor: gateway pair... Is there any solution for this?
@mostlychris
3 жыл бұрын
What sensors is it creating? I assume you mean it is creating duplicates.
@aakashrajput6309
3 жыл бұрын
@@mostlychris yes it is creating duplicates.. how to remove duplicates... I am assuming sensors will change gateways... I have tried using mqtt but not really satisfied with the performance seems to have slowed down my HA machine
@mostlychris
2 жыл бұрын
Can you jump into discord and send me a screenshot of the duplicates? I am still not clear what the dupes are.
@ZeroPucksGiven78
2 жыл бұрын
Does anyone know how to add additional sensors? I keep getting a duplicate key error when I try to validate it.
@mostlychris
2 жыл бұрын
You need to make sure you are using the correct sensor mac address and specifying that in the ESP sensor config.
@ZeroPucksGiven78
2 жыл бұрын
@@mostlychris I realized it was a formatting issue I didn’t realize the hyphens were necessary with multiple sensors.
@mostlychris
2 жыл бұрын
@@ZeroPucksGiven78 Formatting errors don't happen. Says no one ever.
@ZeroPucksGiven78
2 жыл бұрын
@@mostlychris 🤣😂
@AgustinCaballero
3 жыл бұрын
Can it be linked somehow to Google assistant to know the temperature from each room?
@mostlychris
3 жыл бұрын
Did you mean asking Google what the temp is in a room based on sensor data?
@AgustinCaballero
3 жыл бұрын
@@mostlychris yes, is it possible?
@mostlychris
3 жыл бұрын
Yes. I can do this with both Alexa and Google. I exposed the sensor to Google and Alexa and then I say: "{Device} what is ... temperature". It then reports it back via voice to me. I am using Nabu Casa so my entities are available via that path.
@AgustinCaballero
3 жыл бұрын
@@mostlychris Thank you very much for your response, I will appreciate it you let me see It in a video ☺️😅
@patrickmaartense7772
3 жыл бұрын
why use these and not simple bme280 modules ?
@mostlychris
3 жыл бұрын
I suppose one could use those. However, they are more expensive than the already built Xiaomi hygrometer and a cursory glance makes me think they require some additional hardware. I also don't know how they would be powered inside the fridge as a self-contained device. As always, there is an application for everything so these might work for another type of setup. I would play with them just because.
@patrickmaartense7772
3 жыл бұрын
@@mostlychris these are 60cents each , pair that with a esp32mini and im still below 4 EUR and utilise the esp32 for other sensors in the same room ( like window sensor with a digital hall sensor , light sensor etc)
@mostlychris
3 жыл бұрын
I must have looked at the wrong thing then. They show to be $15 US. www.adafruit.com/product/2652
@amintaleghani2110
3 жыл бұрын
@mostlychris, Thank you for your video, How many of Xiaomi thermometer Hygrometer it can be connected to one ESP32? and how can you calibrate them if required?
@mostlychris
3 жыл бұрын
I have heard that you can put up to 8 on one epse32 but I haven't tried that many. To calibrate, you need to adjust the offset. This is an option available in the custom firmware settings when you flash the device.
@cupertinogeek2070
3 жыл бұрын
Note: the affiliate links are coming up with a blank screen.
@mostlychris
3 жыл бұрын
Which links? I tried the kit.co links and they are working for me. kit.co/mcyoutube/home-assistant-gear. Let me know if it's another link so I can look into it.
@charliedgabriel
3 жыл бұрын
how long was the shipping time?
@mostlychris
3 жыл бұрын
Depends on where you get it from. It was quite awhile when I ordered. So much depends on supply and demand right now.
@charliedgabriel
3 жыл бұрын
@@mostlychris If I order from your link, which is aliexpress and ship to Texas, how long will it take more or less? Thank you for your wonderful videos.
@mostlychris
3 жыл бұрын
@@charliedgabriel I don't have a good answer for you. It depends on so many factors. However, reading this sale.aliexpress.com/__pc/aliexpress_shipping_intro.htm it can be anywhere from 15 to 45 working days, which is an eternity when wanting something. My Bangood orders have taken a couple of weeks on average so any of these type shippers are going to have a longer shipping time.
@charliedgabriel
3 жыл бұрын
@@mostlychris thank you for your time and help!
@mostlychris
3 жыл бұрын
@@charliedgabriel Sure thing.
@mrteausaable
3 жыл бұрын
Anyone try to program this Xiaomi LYWSD02MMC with the clock on it. This hack seem to be not working with this model with clock yet.
@mostlychris
3 жыл бұрын
This one seems to be available in ESPHome esphome.io/components/sensor/xiaomi_ble.html?highlight=lywsd02
@mrteausaable
2 жыл бұрын
@@mostlychris I use the same procedure using new and old firmware but it does connect to flasher but stated error messages. Flashing firmware unsuccess. Any way get one and try flash one out?
@mostlychris
2 жыл бұрын
@@mrteausaable Do you have a link to the one you purchased?
@jesterSGI
3 жыл бұрын
Where is the custom firmware?
@mostlychris
3 жыл бұрын
You should be able to select it from the Telink Flasher when flashing that device.
@rogerransome9688
2 жыл бұрын
@@mostlychris possibly similar to John, i just get the option to browse locally for the bin file, it doesnt pre-populate like in your video. Maybe it remembered it from a previous session. Any pointers on where to get the bin file please? Update: Found it - the web page didn't autodetect which firmware was required for some reason, so i went to pvvx github and downloaded the BIN file from there (ATC_v37d.bin although the version may change in future of course). This then flashed fine :)
@GagliardiPhotography
2 жыл бұрын
I bought 4 of these devices from aliexpress. On the first I flashed the firmware with ATC_Thermometer.bin file. The procedure was ok, but when I disconnected the battery and connect it again the screen is blank and I cannot use it anymore. However the device is reachable via bluetooth and seen as a ATC_XXXX device. On another device I did the same and of course the same issue happened. Then I tried to flash the original firmware to the device (d4135e135443ba86e403ecb2af2bf0af_upd_miaomiaoce.sensor_ht.t2.bin file, found on this page). What happened next is the device is bricked, It is not discoverable anymore via bluetooth and the screen is blank. I now have two other new devices to use but I don’t want to brick them too. How can I solve this issues? Any help? Maybe the new devices are not compatible with this firmware?
@mostlychris
2 жыл бұрын
Wow. That's not good at all. I wouldn't think that you would have that many bad devices in a row. You are using this page to flash and getting the latest file from there? pvvx.github.io/ATC_MiThermometer/TelinkMiFlasher.html
@GagliardiPhotography
2 жыл бұрын
@@mostlychris Yes, but thankfully I was to restore the original firmware and then connect them again to the Xiaomi app and do a firmware upgrade. Now they're working again, but the problem is that they have a different hardware revision (1.6) and not compatible with this procedure
@mostlychris
2 жыл бұрын
Interesting. I need to check into that. That's the problem with technology. Keeping up with the changes in firmware and hardware--especially with compatibility.
@Banjoba
3 жыл бұрын
Intermittent tech did this a couple of months ago right?
@mostlychris
3 жыл бұрын
Oh yeah? Wasn't trying to duplicate anyone else's stuff. But I'm sure I'm not the first person to make a video with similar content as others on YT. Hopefully it'll still be helpful to someone.
@brian.hanifin
3 жыл бұрын
@@mostlychris Yes he did, I didn't realize you could change it to display Fahrenheit after watching his video. ;) I also like your fridge monitoring idea.
@mostlychris
3 жыл бұрын
Thanks. That fridge monitor was born out of necessity and has been quite handy. I need something for the freezer now that will handle sub zero temps.
@nigelholland24
3 жыл бұрын
shame you have to sign up to Kit just to see what your using and what we need , sorry wont be doing that one ,but good video anyway
@mostlychris
3 жыл бұрын
Hey Nigel. You shouldn't have to sign in to see the kits. I tried in an incognito window and it didn't ask me to sign in. It does ask you if you want email updates as a pop-up to the top right of the window when you click a link, but that isn't necessary.
@nabun00bs
3 жыл бұрын
Your Fridge should be 38 degrees, certainly below 40.
@mostlychris
3 жыл бұрын
I hear that a lot. Temps vary based on location of the sensor in the fridge. I think it is just where it is placed. It is also very cyclical as it goes through defrost cycles (freezer air feeds the refrigerator).
@mostlychris
3 жыл бұрын
I put a glass thermometer in the fridge and then set the temp offset on the Xiaomi to reflect the glass reading and it is now down where it should be.
Пікірлер: 273