I am pretty new to automation but I had some hardware classes at university and would like to play a bit with openhab. I was thinking to create my own temperature sensor, for that I assume I need a device capable to send information (Ideally something to flash with tasmota?) and a sensor to attach to it.
Can someone tell me if this is possible and which hardware will be good to do this as cheap as possible?
I used NodeMCUs (an ESP8266 with the programmer built in) with DHT22s for just this project. I chose ESP Easy instead of Tasmota at the time because Tasmota required rebuilding the firmware to enable use of the analog pin and I wanted to also use a photoresistor. Tasmota now supports that though I think.
Another choice a lot of people use Wemos (much smaller but I think it requires a programmer to flash ESP8266).
An ESP32 would probably be way overkill and Arduino will be a lot more work and you’ll need some sort of shield to get it on the network (that’s what ESP8266s were created for in the first place before we discovered that they can run Arduino code natively).
I was using NodeMCU, but have recently started using Wemos D1 Mini more - for a couple of sensors, it’s a little smaller, so easier to fit it into things.
I’ve got nearly 30 of them throughout the house, and they all run ESPEasy - it’s a case of plugging the device in, running the ESP.Easy.Flasher tool, selecting a couple of options, and away you go.
Here’s the Devices page for the one in my garage - I’ve got a temp/humidity sensor (DHT22) plus a couple of magnetic door sensors. I also control a relay from one of the GPIO (General Purpose Input/Output) pins.
I was planning to power it with battery, still reading about using LiPo with a voltage regulator or a LiFePo4 and use the deep sleep of the ESP8266 to send the temp just once per minute or so. Because is battery powered I probably want to go directly for the ESP-01. Are my thoughts right?