indoor air temp sensor

If you have a question or need help, this is the place to be.
Post Reply
barnabas1969
Experienced User
Posts: 133
Joined: Sat Feb 04, 2012 1:42 am

indoor air temp sensor

Post by barnabas1969 » Tue Jul 16, 2019 1:27 am

I have searched the forums and I cannot find a good answer.

Are there any inexpensive air temperature sensors (indoor) that can be used by EventGhost to read the indoor air temperature over Ethernet or WiFi?

If I must write a new plugin, I will do it. I simply want to know if there are inexpensive (less than $100 USD) indoor air temperature sensors that could be used by EG to read the indoor air temperature. I prefer a sensor that can be connected to Ethernet or WiFi.

Thank you.

User avatar
kgschlosser
Site Admin
Posts: 5144
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: indoor air temp sensor

Post by kgschlosser » Tue Jul 16, 2019 3:34 pm

would 14.00 USD be cheap enough for you??... Wifi, temperature and humidity sensor.. optionally you can add a little display for 10.00 USD.

You would need an old USB micro cell phone charger (most people have these in a drawer somewhere) for a power supply.

The nice thing is these things can be multipurpose. So you can also make them IR blasters and receivers. light sensors.. a slew of other things at the same time.

you can flash the thing with a python interpreter. Making it communicate with EG would be a snap.
https://docs.micropython.org/en/latest/ ... /intro.htm


6.99
https://www.amazon.com/IZOKEE-NodeMcu-I ... ay&sr=8-14


6.99
https://www.amazon.com/ACROBOTIC-ESP826 ... way&sr=8-9


9.99
https://www.amazon.com/ACROBOTIC-ESP826 ... ay&sr=8-13


there are many esp8266 development boards you can use the Wemos D1 (or a knockoff) is just one type. You can also use Adafruit HUZZAH boards as well.

These things are small the actual ESP chip is about the size of a US dime. the Wemos D1 is maybe the size of a book of matches.
If you like the work I have been doing then feel free to Image

slattynan
Experienced User
Posts: 63
Joined: Fri Jul 06, 2018 12:15 pm

Re: indoor air temp sensor

Post by slattynan » Tue Jul 16, 2019 4:47 pm

Is there any existing plugins for the ESP8266? I have a tone of sensors, switches etc setup working with another inferior home automation tool, it would be good to get migrate them to EG.

User avatar
kgschlosser
Site Admin
Posts: 5144
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: indoor air temp sensor

Post by kgschlosser » Wed Jul 17, 2019 7:19 am

I know that Pako was working on something a while back. There are a few large issues with any kind of a specific plugin being made for the ESP chips...

First issue... What firmware gets used???
Second issue... because of the almost limitless uses (sensors, input, output.. etc.....) how would someone make a plugin that would know what needs to be done.
Third issue. modules, libraries or the like that may need to be installed with the firmware in order to use an attached sensor etc....


The easiest thing to do would be to install MicroPython on the thing. This is pretty simple to do so long as the ESP has enough RAM and Flash. Once this is done a non EG dependent Network Sender can be made.. This is pretty easy to do. One of the things that you have to remember is that there is no threading on the ESP. there is a single program loop that can be run. so everything has to be handled in a single thread so to speak. There is an async module that can be used. It works well from what i have read.

I guess a plugin could be made that would handle uploading code to the thing for specific modules and also to handle the connection to EG..
If you like the work I have been doing then feel free to Image

barnabas1969
Experienced User
Posts: 133
Joined: Sat Feb 04, 2012 1:42 am

Re: indoor air temp sensor

Post by barnabas1969 » Sat Sep 21, 2019 1:02 am

kgschlosser wrote:
Tue Jul 16, 2019 3:34 pm
would 14.00 USD be cheap enough for you??... Wifi, temperature and humidity sensor.. optionally you can add a little display for 10.00 USD.

You would need an old USB micro cell phone charger (most people have these in a drawer somewhere) for a power supply.

The nice thing is these things can be multipurpose. So you can also make them IR blasters and receivers. light sensors.. a slew of other things at the same time.

you can flash the thing with a python interpreter. Making it communicate with EG would be a snap.
https://docs.micropython.org/en/latest/ ... /intro.htm


6.99
https://www.amazon.com/IZOKEE-NodeMcu-I ... ay&sr=8-14


6.99
https://www.amazon.com/ACROBOTIC-ESP826 ... way&sr=8-9


9.99
https://www.amazon.com/ACROBOTIC-ESP826 ... ay&sr=8-13


there are many esp8266 development boards you can use the Wemos D1 (or a knockoff) is just one type. You can also use Adafruit HUZZAH boards as well.

These things are small the actual ESP chip is about the size of a US dime. the Wemos D1 is maybe the size of a book of matches.
Sorry for the delayed response. I knew that I could use Arduino or something like that, but I hoped to find a pre-built solution so that I don't need to spend a lot of time on this. I have never done anything with Arduino or similar products, but I will give it a try. I just ordered the first two items in your list (I don't need a local temp display).

Do you happen to know if there are ventilated cases for these boards? I did some searching and the closest I found was a sealed, outdoor case.

EDIT: I found a 3D printed case, but it's not very attractive. I could pay someone to print it (I don't have a 3D printer), but I would prefer something a little more refined. Here are the details: https://www.thingiverse.com/thing:3385550

User avatar
kgschlosser
Site Admin
Posts: 5144
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: indoor air temp sensor

Post by kgschlosser » Tue Sep 24, 2019 8:01 am

the case does not need to be ventilated technically... If it is for indoor use you can make a case out of one of those old surface mount type telephone jack boxes. I am sure you can still find them at walmart or some other store. you will want to use a razor knife or a dremil tool to cut a hole in the top of the box large enough for the DHT sensor to fit through. but you can make it flush with the top of the box it's self so it looks good. remove the phone jack and wires from inside so there is room to put the thing in there. run the usb phone charger up through the hold where the phone jack was located and you are good to go.
If you like the work I have been doing then feel free to Image

Post Reply