Wemos D1 Mini + SHT30 + OLED shield 64x48 display issue

409 views
Skip to first unread message

Acatrinei Valentin

unread,
Jan 30, 2021, 11:28:51 PM1/30/21
to TasmotaUsers
Hello. 
I am kind of new to tasmota. Installed in on some sonoffs, and I am trying to build 2 temphum sensors that I will laster enroll in hass. 

I have following hardware:
- Wemos D1 mini
- SHT30 temperature/humidity sensor
- OLED display shield 64x48 (wemos size)

What I am trying to achieve:
I want to build 2 temperature/humidity sensors that I will install in rooms. I want these sensor to send data via mqtt to home assistant in the end, but also display temperature and humidity locally on the oled screens. After some research I think tasmota is a great way to do this. 

The issue:
I took it step by step. First I installed tasmota on D1 mini and added the SHT30 sensor. Configured D1 and D2 as SDA/SCL and everything worked fine. But when I add the screen it is not working any more. I did a i2cscan (both devices are i2c) and can see 2 addresses, so both devices are recognized. At first I used the tasmota-sensors branch for SHT30 to work. When I tried display commands on it, none were recognized, so I installed tasmota-display, but the display is not showing anything. 

Question?
What branch of tasmota do I need to use in order to have both the SHT30 and display working?
What commands to use for the display in order to show the sensor data? All display commands I used when testing the tasmota-display branch were useless. Nothing showing on the oled.

Any help here would be appreciated. 
Thank you

sfromis

unread,
Jan 31, 2021, 5:19:47 AM1/31/21
to TasmotaUsers
The precompiled binaries for Tasmota do not have one combining displays and sensors. You can compile your own binary to include the mix of features you want, as long as you do not try to do it by adding to either tasmota-display or tasmota-sensors. https://tasmota.github.io/docs/Compile-your-build/

Acatrinei Valentin

unread,
Jan 31, 2021, 5:48:09 AM1/31/21
to TasmotaUsers
Thanks. I will give TasmoCompiler a try. Seems pretty simple to use. 

Adam Mościcki

unread,
Feb 2, 2021, 2:41:08 AM2/2/21
to TasmotaUsers
After compiling binary with this two extra features (OLED+sensors) I think we will need a few extra lines of code to display temp/humid values on oled display.
i'm also waiting to see how to do this :)
I wonder if this code we will add before compiling self build ... or ... we will send to a working set as a  command or rule or script ?

sfromis

unread,
Feb 2, 2021, 4:57:10 AM2/2/21
to TasmotaUsers
To display stuff, the standard method is to create rules using the DisplayText command to output what you like to see there.

Adam Mościcki

unread,
Feb 3, 2021, 10:43:45 AM2/3/21
to TasmotaUsers
:) thanks - I found an example there in the link 

One more question - OLED display livecycle is up to 10000h ... how to display that data for for example 1 minute and then shut off the display for 59 minutes ?
is there a command to start / stop display ?

benjam...@t-online.de

unread,
Feb 3, 2021, 10:51:57 AM2/3/21
to TasmotaUsers
Dimmer 0 = off , Dimmer 100 = on

sfromis

unread,
Feb 3, 2021, 11:14:43 AM2/3/21
to TasmotaUsers
Depending on the display in use, there may also be power on/off.

Adam Mościcki

unread,
Feb 3, 2021, 1:00:06 PM2/3/21
to TasmotaUsers
I will try ... next weekend ...few minutes soldering hardware and will try.  :) 
Thanks for help 
Reply all
Reply to author
Forward
0 new messages