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.




1377 posts

Uber Geek


#272918 24-Jul-2020 16:40
Send private message quote this post

I put together a DHT 11 and D1 mini to record temperature and send to Home Assistant. I have both components in a small 3d-printed case but the heat from the D1 mini is affecting the readings.

 

I read that you need to put the D1 mini into deep_sleep mode and I found some Python?? code here to do that but how can I put that into the D1 mini using ESPHome?

 

I could move both components into separate cases but if I can fix it with some code that would be preferable.

 

Thanks.





 I'm supposed to respect my elders, but it's getting harder and harder for me to find one now.


Create new topic
2246 posts

Uber Geek

Trusted
Subscriber

  #2528296 24-Jul-2020 17:12
Send private message quote this post

Nice. I've not managed to get my DHT shield to work for some reason.

 

What is your case specification?





Generally known online as OpenMedia, now working for Red Hat APAC a Technology Evangelist and Product Manager. Still playing with MythTV and digital media on the side.




1377 posts

Uber Geek


  #2528297 24-Jul-2020 17:17
Send private message quote this post

Actually I may have found a better case design that keeps the two components separated. I am going to print one and see how it performs. I would still like to know how to insert that sleep code though if anyone can assist.





 I'm supposed to respect my elders, but it's getting harder and harder for me to find one now.


 
 
 
 


4915 posts

Uber Geek

Trusted

  #2528386 24-Jul-2020 19:12
Send private message quote this post

How much does it cost to print a case like this (the last one). I’ve had some dhts running for a couple of years now (homie mqtt to openHAB). But I just bluetack the board to a leg somewhere to try and keep it out of sight




Previously known as psycik

OpenHAB: Gigabyte AMD A8 BrixOpenHAB with Aeotech ZWave Controller, Raspberry PI, Wemos D1 Mini, Zwave, Xiaomi Humidity and Temperature sensors and Bluetooth LE Sensors
Media:Chromecast v2, ATV4, Roku3, HDHomeRun Dual
Windows 10
Host (Plex Server/Crashplan): 2x2TB, 2x3TB, 1x4TB using DriveBender, Samsung 850 evo 512 GB SSD, Hyper-V Server with 1xW10, 1xW2k8, 2xUbuntu 16.04 LTS, Crashplan, NextPVR channel for Plex,NextPVR Metadata Agent and Scanner for Plex


23456 posts

Uber Geek

Trusted
Subscriber

  #2528392 24-Jul-2020 19:54
Send private message quote this post

If you are using someone elses code on it, they would need to have allowed for deep sleep in their stuff.

 

Tasmota has support for it because of battery powered devices being useless without it. I havent done it because all mine are mains powered but there is support for it. Needs a hardware connection to the reset pin from one other.

 

 





Richard rich.ms



1377 posts

Uber Geek


  #2528393 24-Jul-2020 20:12
Send private message quote this post

@richms OK thanks, I will try the other case design then, sounds easier.

 

 

 

@davidcole Only a few cents for the filament. If you are interested I can print an extra one for you to try, just pay postage.





 I'm supposed to respect my elders, but it's getting harder and harder for me to find one now.


4915 posts

Uber Geek

Trusted

  #2528407 24-Jul-2020 20:43
Send private message quote this post

peejayw:

 

@richms OK thanks, I will try the other case design then, sounds easier.

 

 

 

@davidcole Only a few cents for the filament. If you are interested I can print an extra one for you to try, just pay postage.

 

 

 

 

where are you based?  I may take you up on the offer. 





Previously known as psycik

OpenHAB: Gigabyte AMD A8 BrixOpenHAB with Aeotech ZWave Controller, Raspberry PI, Wemos D1 Mini, Zwave, Xiaomi Humidity and Temperature sensors and Bluetooth LE Sensors
Media:Chromecast v2, ATV4, Roku3, HDHomeRun Dual
Windows 10
Host (Plex Server/Crashplan): 2x2TB, 2x3TB, 1x4TB using DriveBender, Samsung 850 evo 512 GB SSD, Hyper-V Server with 1xW10, 1xW2k8, 2xUbuntu 16.04 LTS, Crashplan, NextPVR channel for Plex,NextPVR Metadata Agent and Scanner for Plex




1377 posts

Uber Geek


  #2528413 24-Jul-2020 21:06
Send private message quote this post

Auckland. Bare in mind that case is for the non-shield version of the 22. Have a look at his website for more info. If you want one pm me, going to print one tomorrow.




 I'm supposed to respect my elders, but it's getting harder and harder for me to find one now.


Create new topic




News »

Freeview On Demand app launches on Sony Android TVs
Posted 6-Aug-2020 13:35


UFB hits more than one million connections
Posted 6-Aug-2020 09:42


D-Link A/NZ extends COVR Wi-Fi EasyMesh System series with new three-pack
Posted 4-Aug-2020 15:01


New Zealand software Rfider tracks coffee from Colombia all the way to New Zealand businesses
Posted 3-Aug-2020 10:35


Logitech G launches Pro X Wireless gaming headset
Posted 3-Aug-2020 10:21


Sony Alpha 7S III provides supreme imaging performance
Posted 3-Aug-2020 10:11


Sony introduces first CFexpress Type A memory card
Posted 3-Aug-2020 10:05


Marsello acquires Goody consolidating online and in-store marketing position
Posted 30-Jul-2020 16:26


Fonterra first major customer for Microsoft's New Zealand datacentre
Posted 30-Jul-2020 08:07


Everything we learnt at the IBM Cloud Forum 2020
Posted 29-Jul-2020 14:45


Dropbox launches native HelloSign workflow and data residency in Australia
Posted 29-Jul-2020 12:48


Spark launches 5G in Palmerston North
Posted 29-Jul-2020 09:50


Lenovo brings speed and smarter features to new 5G mobile gaming phone
Posted 28-Jul-2020 22:00


Withings raises $60 million to enable bridge between patients and healthcare
Posted 28-Jul-2020 21:51


QNAP integrates Catalyst Cloud Object Storage into Hybrid Backup solution
Posted 28-Jul-2020 21:40



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.


Support Geekzone »

Our community of supporters help make Geekzone possible. Click the button below to join them.

Support Geezone on PressPatron



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.

Alternatively, you can receive a daily email with Geekzone updates.