Tasmota DS18B20 Temperatursensor [SmartHome]

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
Hello and welcome to a new TASMOTA Sensors tutorial on my channel EddyD's SmartHome. In today's video I would like to introduce you to an old friend, this temperature sensor, to be precise the DS18b20. I introduced it about a year ago. Back then I showed you how you can operate the whole thing with ESP Easy and in today's video I would like to show you the whole thing again. But this time I would like to use a few rules with TASMOTA . I would like to show you the rules again and show you how you can evaluate a temperature sensor with rules and then display the whole thing with such LEDs, for example. That means, for example, if it is warmer like 30 degrees or something similar then the red LED comes on and if it is colder like I think I had set it to 29 degrees then the blue LED comes on and now as you can see it is a little colder like 30 degrees but I think it should change soon and in this video I would like to show you again, as I said, how you can connect this sensor here, how you can operate it with TASMOTA, what you have to set up so that the whole thing works. There is no Blockly in today's video because I think you will already know how you can use such a sensor in ioBroker and what you can do with it there . So if you are interested in the topic then stay tuned after a short intro it starts and remember if you liked the video or if it helped, I would be very friendly in this by giving it a thumbs up and a subscription and a comment and a bell Have fun with the video and it's great that you stuck with it. As you can see, the LED has now changed, which means it's warmer than 30 degrees or warmer than 30 degrees and now the blue LED should light up again and the red one should go out As I said, the whole thing currently runs with Rules, which means it doesn't have to be configured or set in the ioBroker or anything else , just type a little code into the console and then the whole thing works, so if you 're interested in Rules in general, I have I've already made a video on the topic of rules and displays. There are also a few other examples in there. I'll link the video up here . Take a look at it if you're interested in the topic in general and if you haven't had anything to do with TASMOTA That means you are TASMOTA newbies. I have already made a basic video on the subject of TASMOTA . I explain a bit about TASMOTA and the ESP 8266. If, as I said, you are interested in it, look up or down in the video description there I'll link you to the video on the topic ok then I would say let's get started and first connect the sensor what do you need so that you can use the sensor well on the one hand you need an ESP8266 D1 Mini so at least yes if you use something else If you want it to work, you might need a few LED resistors, you'll need at least two, a 4.7 kilo resistor at the top and a 220 resistor at the top and maybe a few jumper cables to test it so you can install the whole thing on a breadboard like this first You can test it before you continue using it if you want to operate the whole thing with such a display. As I said , I already had a video about it where I also show how to connect a display with temperature sensors and then controls the whole thing using rules, for example, or in the ioBroker. Attention, there is a small special feature because you then have to compile your firmware yourself because the displays and temperature sensors are usually not in the same firmware from TASMOTA and that's why the firmware has to be a bit can be adjusted but as I said there was already a video for this, you are welcome to watch it, I will also link it to you at the bottom of the video notification ok, so to get started I'll first get the part here on the table in front of me and then we'll take a look then we'll take a quick look at the whole thing, so we've connected the ESP here as normal, we've put the power supply here, i.e. plus and minus, then the temperature sensors are simply connected plus to plus, minus to minus and the yellow one or that Yellow wire here this yellow jumper cable if you use two sensors then you simply connect them together and put a resistor between the yellow cable and the plus so simply connect the yellow cable with the resistor and the resistance will then be here at the same time as the one with the plus connected and then in the end the whole thing works here too, the GPIO's I have clamped the temperature sensor here on D6 and then on D7 and D8 I have connected the two LEDs here, that is on D8 this is the green cable on D8 this is located here red LED and on D7 the cable is the purple cable here and the blue LED is there and that simply means if the temperature sensor here or that I'm not sure at the moment is greater than 30 degrees, so if the value is greater than 30 degrees see if I have the right one, then the rule says that it should jump from the blue LED to the red LED in the same way as the whole thing is connected here, so I'll show you the sketch again, which means you have to go here now I can't figure out how where something is connected, but in the end, as I said, it's relatively easy to connect the two yellow cables together , put a resistor on it and connect the resistor to the plus and the yellow cable also has to be connected to the ESP on the right port and then it works In the end everything and that's it ok then I would say let's take a look at how we copy or flash TASMOTA onto the ESP and what we have to do to make the whole thing work ok to get started you need at least TASMOTIZER here I use it to flash the firmware and you also have to download the TASMOTA *.BIN from the TASMOTA site. In my case, I downloaded the TASMOTA DE firmware because all you need is the standard firmware, nothing special is needed, ok the ESP is connected to the computer, we start TASMOTIZER and make sure that the right port is selected here, go to the top and select our firmware as I said, I decided on the TASMOTA DE firmware, confirm the whole thing, make sure that Erase before flashing is written and then you do it one click on TASMOTIZE! Now we have to wait a moment until the firmware has been flashed, this will take a few seconds and then everything will continue so wonderfully, the flashing process is complete. Next we make a few configurations by pressing send config here. On the one hand , we can Enter our WLAN and our password here if you want If you want you can select the module and the associated template here, in my case just take module generic 18 here, activate the MQTT here, enter my MQTT data here, activate the whole thing and then I say safe here, now the data will be transferred to the ESP It now takes a few seconds until it is completed and then we display the IP address that has been assigned to the device by simply clicking on get IP. As I said, it takes a short moment, so wait. This is my IP address, so we open it the web browser with the corresponding IP and make the first configurations in tas moda so that the sensors are recognized. On the one hand, we go to settings, configure devices and tell TASMOTA which GPIO the sensor is connected to. It doesn't matter whether you have one or three If you have connected sensors, I don't know what the maximum number is, but you can connect the sensors completely to a GPIO. You do n't have to put them separately on different GPIOs, so in my case the temperature sensor is on GPIO 12 or d6 and choose there I simply select DS18x20 here in the list, this is our sensor here, press save, there was a short moment until the device restarted and then the temperature sensors should appear here. You can see we didn't have to do anything for the whole thing to work, so that's it In the end, we'll move on to the temperature sensors . I would like to show you a few little things that you can set here and then I would like to show you the rules again about how the whole thing works with the sensors or with the LEDs turn on and off depending on the temperature but first let's take another look at the settings because I would like to show you the following again because people have asked about it again and again: how can you change this name here and, above all, how can you change this generic 18 Change up here First of all , let's change the name here from TASMOTA. To do this, we go to other configurations and can then enter our name here under Device, which means in my case I can now simply enter temperature sensors here, confirm the whole thing and then it should be here now There are temperature sensors in there so wonderfully, that's what it says next, yes we can do that here, I can show you how you can change that, go back to the settings here then you go to configure template here and then say here at GPIO 12 it hangs there Yes, our sensor there, we now simply say DS18b20 and very important we now have to enter our name here. I just say DS18b20 here and then the generic should disappear up here and the name should be in it or almost have to make a small adjustment We have to go back to the settings, go to other configurations and then you can see that something has changed in the template. It says here that this is our sensor, so this DS18b20, we still have to activate the whole thing here and then after a restart this generic is replaced by The one in the template by the name configured in the template so you can see it works. The disadvantage of the whole story is of course you ca n't just go here and configure anything anymore Because in the end something has changed here and all the changes you want to make, that is, if you want to connect any sensors here , you can no longer do that here, at least I don't do that here, I have n't even tested it yet It works but normally you do it here with the template, you configure it directly there, which means we still have to connect our red and blue LEDs. The red LED is on GPIO 15. There is now a relé there because the LED is controlled as a relé and then we have the blue LED and the blue LED goes on GPIO, let me take a quick look at GPIO 13 and there we also say very important that we have to, on the one hand, that they call relay 1 and that they call relay 2 like that and next we click on save so that the whole thing is taken over and then our relés should also be displayed in the WebUI so they are displayed there so we test the whole thing and on the first the first LED is the blue one and the second one should be the red one Great, that works, let's look at the whole thing again in the console, so the first was Power 1 and the second was Power 2. We need this information to create the rule. In the end, the rule is relatively simple. I'll hide you here again otherwise I'll just copy it here, which means that rules are simply specified here and what makes the rule relatively simple in the end. We query our temperature sensor here. Here we query the one because we have two and say if the temperature is smaller If it is 29 degrees then it should be power one so our relay one or the LED one should be switched on and power two it should be switched off. We do that with the zero here and then we say if the temperature sensor has a value greater than 30 degrees then we should power one switch to zero and power two we switch to one so we transfer the whole thing and activate the rule because as you can see Rule is on here and we activate it with rule one and as you can see the blue LED is on because it is right now yes it's 20 degrees now let's check the whole thing I'll heat the temperature sensor now it'll take a while until it rises for you yes I'll just cut it out now until the value changes so immediately the value should change to 29.6 and will be entered that at 30 degrees it should switch from the red LED to the blue LED to the red LED so wonderfully he did it, that means the temperature is over 30 degrees and the red LED has come on, now the whole thing is cooling again off a bit and then the blue LED should come on again, that is, if the temperature has fallen below 29 degrees then the blue LED will come on again, so now it should come on Now you can also see that the rule is here or that the rule was triggered if you don't see that then there is something wrong with your rule then it wasn't accepted correctly but to test it I 'll link the rule to you in the video description if you recreate it Just like the articles I used, I'll link them to you in the video description and that's it for today, I hope so You liked the video and you were able to take a little something away with you. If you liked the video, I would give you a thumbs up, subscribe and don't forget to activate the little bell so that you will be notified as soon as the next video is online because this is it just the preliminary stage of a slightly larger project or of a two three-part project, I do n't know exactly yet and in the second part of this project it continues with another sensor and the two then work together and take on a meaningful task, if you are interested in the topic or if I was able to arouse your curiosity, then as I said, activate the bell, click on subscription, like, leave a comment, until next time, take care and have fun with your temperature sensor DS18b20
Info
Channel: EddyD's SmartHome
Views: 26,495
Rating: undefined out of 5
Keywords:
Id: 1HJuibPSdSE
Channel Id: undefined
Length: 16min 52sec (1012 seconds)
Published: Wed Nov 17 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.