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.


peejayw

1913 posts

Uber Geek
+1 received by user: 123


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

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
openmedia
3449 posts

Uber Geek
+1 received by user: 877

Trusted

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

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 as a Technology Evangelist and Portfolio Architect. Still playing with MythTV and digital media on the side.




peejayw

1913 posts

Uber Geek
+1 received by user: 123


  #2528297 24-Jul-2020 17:17
Send private message

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.


davidcole
6099 posts

Uber Geek
+1 received by user: 1465

Trusted

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

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

Home Assistant: Gigabyte AMD A8 Brix, Home Assistant with Aeotech ZWave Controller, Raspberry PI, Wemos D1 Mini, Zwave, Shelly Humidity and Temperature sensors
Media:Chromecast v2, ATV4 4k, ATV4, HDHomeRun Dual
Server
Host Plex Server 3x3TB, 4x4TB using MergerFS, Samsung 850 evo 512 GB SSD, Proxmox Server with 1xW10, 2xUbuntu 22.04 LTS, Backblaze Backups, usenetprime.com fastmail.com Sharesies Trakt.TV Sharesight 




richms
29097 posts

Uber Geek
+1 received by user: 10205

Trusted
Lifetime subscriber

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

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

peejayw

1913 posts

Uber Geek
+1 received by user: 123


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

@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.


davidcole
6099 posts

Uber Geek
+1 received by user: 1465

Trusted

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

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

Home Assistant: Gigabyte AMD A8 Brix, Home Assistant with Aeotech ZWave Controller, Raspberry PI, Wemos D1 Mini, Zwave, Shelly Humidity and Temperature sensors
Media:Chromecast v2, ATV4 4k, ATV4, HDHomeRun Dual
Server
Host Plex Server 3x3TB, 4x4TB using MergerFS, Samsung 850 evo 512 GB SSD, Proxmox Server with 1xW10, 2xUbuntu 22.04 LTS, Backblaze Backups, usenetprime.com fastmail.com Sharesies Trakt.TV Sharesight 


 
 
 

Shop on-line at New World now for your groceries (affiliate link).
peejayw

1913 posts

Uber Geek
+1 received by user: 123


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

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








Geekzone Live »

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



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.