Tasmota

From Review or Discard at Will
Revision as of 13:19, 15 August 2021 by Jeffa (talk | contribs) (Add cookbook)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

tasmota

ESP8266

ESP32

7/24/2021 I bought this from Amazon; (?Heltec?)HiLetgo ESP32 OLED WiFi Kit ESP-32 0.96 Inch Blue OLED Display WiFi+Bluetooth CP2012 Internet Development Board for Arduino ESP8266 NodeMCU a long time ago, it's been in a box for a couple years. I thought I'd give it a whirl. from the tasmota 9.5.0 releases page I've loaded tasmota32.bin, it currently has tasmota32-display.bin. It connects, I configured GPIO25 as relay allowing me to toggle an onboard LED.

Configuration

GPIO13 Button_in

GPIO5 DS18B20

GPIO17 DHT11

 
rule1 ON power1#state=1 do backlog power2 on; DisplayText[zs4r1c1]%var1% endon ON POWER1#state=0 do power2 off endon
rule1 1
rule3 on tele-DHT11#Temperature do var1 %value% endon
rule3 1

# cycle dht11 delay 6 seconds ds18b20 6 seconds off
rule3 on tele-DHT11#Temperature do var1 %value% endon on tele-DS18B20#Temperature do var2 %value% endon
rule1 ON power1#state=1 do backlog power2 on; DisplayText[zs3r1c1]H %var1% ; delay 60 ; DisplayText[zs3r1c1]S %var2% ; delay 60 ; power2 off endon ON POWER1#state=0 do power2 off endon

Debugging

  
i2cscan
13:27:56.560 CMD: i2cscan
13:27:56.614 MQT: stat/02CA28/RESULT = {"I2CScan":"No devices found"}

displayaddress
16:34:54.298 CMD: displayaddress
16:34:54.313 MQT: stat/02CA28/RESULT = {"DisplayAddress1":113}

DisplayText [s1l1c1]Hello how are you?
16:38:52.640 CMD: DisplayText [s1l1c1]Hello how are you?
16:38:52.654 MQT: stat/02CA28/RESULT = {"Command":"Error"}

DisplayAddress 60
16:56:14.908 CMD: DisplayAddress 60
16:56:14.924 MQT: stat/02CA28/RESULT = {"DisplayAddress1":60}
DisplayAddress 
16:56:31.339 CMD: DisplayAddress 
16:56:31.355 MQT: stat/02CA28/RESULT = {"DisplayAddress1":60}

i2cscan
17:49:55.026 CMD: i2cscan
17:49:55.078 MQT: stat/02CA28/RESULT = {"I2CScan":"Device(s) found at 0x3c"}

DisplayText [s1l1c1]Hello how are you?
16:56:53.516 CMD: DisplayText [s1l1c1]Hello how are you?

# Found in log after restart;
00:00:00.154 I2C: SH1106 found at 0x3c
00:00:00.301 DSP: SH1106
00:00:00.315 Project tasmota 02CA28 Version 9.5.0(display)-1_0_6(2021-06-17T08:31:15)

Images

HiLetgo ESP32 OLED WiFi Kit ESP-32.jpg

Resources

Heltec esp32 wifi devkit tasmota device template
{"NAME":"WiFi Kit 32","GPIO":[1,1,1,1,640,1,1,1,1,1,1,608,3840,1,1,1,0,1,1,1,0,224,1,1,0,0,0,0,1,1,1,1,1,0,0,1],"FLAG":0,"BASE":1}
  • WIFI Kit 32 pinoutDiagram V1.pdf

Cook Book

  • mosquitto_pub -t cmnd/homeamation/sonoff02/status -m '5' <- display network info