Difference between revisions of "Tasmota"
(Added configuration section) |
(→Configuration: add ds18b20) |
||
Line 13: | Line 13: | ||
rule3 on tele-DHT11#Temperature do var1 %value% endon | rule3 on tele-DHT11#Temperature do var1 %value% endon | ||
rule3 1 | 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 | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 11:54, 8 August 2021
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
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
Resources
- ESP32 (beta) tasmota page
- Tasmota Device Templates Repository
- Displays
- Heltec WiFi Kit 32
- ~ / download / WiFi_Kit_32 HiLetgo
- ESP32 on Heltec WiFi Kit 32 , I2C assignment creates additional relay #10223 in Github Github
- ESP flasher for ESP32 and ESP8266 (Tasmota)
- Tasmota Displays
- ESP32 OLED WiFi Kit ESP-32 0.96 Inch Blue OLED Display WIFI Bluetooth CP2012 Internet Dev Board
- WiFi Kit 32
- HeltecTM ESP32+Arduino Series Frequently Asked Questions
- Heltec WiFi Kit 8 Display Tasmota template repository