Commit Graph

510 Commits

Author SHA1 Message Date
Theo Arends cc2ea328d5 Add Rule and Scripter xdrv sensor polling 2024-08-11 17:47:01 +02:00
Theo Arends 82add09bf9 Fix Core 3.0.4 baudrate detection 2024-08-04 16:11:13 +02:00
Theo Arends d4a63f791e Fix SPI busses 2024-07-26 14:29:51 +02:00
Theo Arends e02615827b Fix compilation without SPI 2024-07-26 13:50:15 +02:00
Theo Arends 401d7b9b41 Fix StrCaseStr_P() 2024-07-23 14:28:36 +02:00
gemu 58485dec2a
fix resistive Touch xpt for 2 spi busses (#21814)
* fix xpt touch for 2 spi busses

* support for 2 utouch spi busses

* Update support.ino
2024-07-22 13:58:50 +02:00
Theo Arends 990a0e4257 Add Propagating upload to ESP8266 minimal 2024-07-21 15:22:15 +02:00
Theo Arends e2fdf18625 Fix CalVer to SemVer updates 2024-07-21 12:23:10 +02:00
lmelette 9c8f3826b2
Added support for Wooliis LCD Coulometer/Battery Monitor (#21732)
* Added support for Wooliis LCD Coulometer/Battery Monitor

* Adjusted code structures and data types for Wooliis sensor

---------

Co-authored-by: Luca Melette <luca@positive.security>
2024-07-17 12:25:44 +02:00
Theo Arends 69f1ea5627 Move StateText fro MQTT to commands (#21782) 2024-07-16 15:16:18 +02:00
Theo Arends 105a08dd20 Skip MQTT response if command is prefixed with underscore (#21740) 2024-07-08 16:57:21 +02:00
Theo Arends 09b2670c45 Add command ``Backlog3`` to execute commands without response but rule processing (#21740) 2024-07-08 15:53:15 +02:00
s-hadinger 243df3f2cf
`FUNC_BUTTON_PRESSED` now contains `press_counter` encoded in `XdrvMailbox.command_code` (#21724) 2024-07-03 22:13:50 +02:00
Jason2866 b1422ff6b5
make Tasmota compatible for Arduino espressif32 based on IDF 5.2.2 (#21723)
Co-authored-by: Christian Baars <Baars@gmx.de>
2024-07-03 20:27:18 +02:00
Theo Arends 33062dc839 Refactor energy drivers 2024-06-30 16:58:37 +02:00
Theo Arends 178d42c286 Change ESP32 support for energy margin checks, like ``MaxPower2`` per phase (#21695)
- Add ESP32 support for power and energy limit checks, like ``MaxEnergy2`` per phase (#21695)
- Bump version v14.1.0.3
2024-06-27 16:50:45 +02:00
Theo Arends bf1dace55d Add ESP32 USE_FLOG support (experimental) 2024-06-25 22:52:15 +02:00
Theo Arends af1fa724af Fix non-webserver compilation 2024-06-25 16:36:28 +02:00
Roland Praml f3dcbdcea9
FIX: Allow use of UART0 with enabled USB_CDC_CONSOLE (#21496)
Co-authored-by: Roland Praml <roland@DESKTOP-MKLGCJR>
2024-06-22 14:17:05 +02:00
Theo Arends 75c47b6948 Extend command ``SetOption147 1`` to disable publish of IRReceived MQTT messages (#21574) 2024-06-14 11:23:03 +02:00
Theo Arends 7bde0b89d1 Fix QMP6988 2024-06-12 10:50:29 +02:00
Theo Arends 87148ae0c1 Change SerialBridge command ``SSerialSend9`` replaced by ``SSerialMode``
- Bump version v14.1.0.2
2024-06-11 17:27:39 +02:00
Theo Arends 0471ba24c1 Add support for QMP6988 temperature and pressure sensor 2024-06-10 16:05:25 +02:00
Theo Arends 8cfa6f28ea Fix restart on wifimanager timeout 2024-06-09 10:40:01 +02:00
Jason2866 c556c06413
remove dead code (#21595) 2024-06-09 10:25:32 +02:00
Marius Bezuidenhout f68e2285e8
Fixed incorrect output size clamping (#21568) 2024-06-06 09:39:23 +02:00
s-hadinger 01f9097acb
Add default value for `SetOption151` (#21560) 2024-06-03 22:53:13 +02:00
s-hadinger 0bd5f6b27a
Remove deprecated code from drivers, `USE_TTGO_WATCH` and `USE_M5STACK_CORE2` (#21533) 2024-05-31 08:58:11 +02:00
Theo Arends f5ed2e0845 Fix oops 2024-05-30 10:54:32 +02:00
Theo Arends 2771827c15 Changed TCP bridge increased baudrate selection (#21528)
- Bump v14.0.0.4
2024-05-30 10:50:12 +02:00
Theo Arends 2347f37269 Revert "Fix ESP32 slow response when using UDP as in emulation (#21470)"
This reverts commit f132663dfe.
2024-05-29 16:45:16 +02:00
Theo Arends 7c98e0d303 Revert "Another few victims of core3 UDP"
This reverts commit 27c35befdf.
2024-05-29 16:45:04 +02:00
Theo Arends adcc50ac6e Revert "Fix network flushes"
This reverts commit b88ec44d15.
2024-05-29 16:44:50 +02:00
Theo Arends b88ec44d15 Fix network flushes 2024-05-29 14:09:54 +02:00
Theo Arends 27c35befdf Another few victims of core3 UDP 2024-05-29 11:57:29 +02:00
Theo Arends f132663dfe Fix ESP32 slow response when using UDP as in emulation (#21470) 2024-05-29 11:46:55 +02:00
s-hadinger bb40642225
Fix Telegram TLS fingerprint, remove CA validation (#21514) 2024-05-27 22:31:27 +02:00
s-hadinger 0a2990de59
Update Telegram CA (Go Daddy Root Certificate Authority - G2) (#21510) 2024-05-27 18:21:05 +02:00
s-hadinger 25a2a46917
Matter auto-fix IPv6 link-local zone id when network reconnects (#21494) 2024-05-25 19:51:00 +02:00
Theo Arends 3b4035b3e2 Add FUNC_ABOUT_TO_RESTART (#21460) 2024-05-21 17:28:02 +02:00
Theo Arends a4c7add8df Prep ESP32 SPI bus 2 support 2024-05-21 15:58:16 +02:00
s-hadinger b9bd558abe
Enabled watchdog for ESP32 and variants (#21422)
* Enabled watchdog for ESP32 and variants

* Ensure compilation for sageboot

* Fix compilation

* Fix compilation for RISCV
2024-05-16 21:19:34 +02:00
Theo Arends ac06195907 Remove non IDF5 code 2024-05-15 16:45:42 +02:00
s-hadinger 2865630309
Prepare for ESP32 WDT (#21383)
* Prepare for ESP32 WDT

* make `sleep()` reset WDT
2024-05-12 21:12:08 +02:00
Theo Arends 141a4086b3 Revert "ESP8266 removed SPI check for valid SPI Chip Select (#21393)"
This reverts commit 584329a6c0.
2024-05-09 14:11:57 +02:00
Theo Arends 584329a6c0 ESP8266 removed SPI check for valid SPI Chip Select (#21393) 2024-05-09 13:52:07 +02:00
gemu 61814e79fe
fix jpeg compile core3 (#21387) 2024-05-08 13:21:14 +02:00
Theo Arends 9314032f69 Fix safeboot logging flood 2024-05-07 11:05:54 +02:00
Anton Gladky dd161dc732
Replace Let’s Encrypt R3 by ISRG Root X1 one. (#21352)
According to the blog post [1] new intermediate certificates
will be deployed. Thus R3 certificate, used now will not allow
to setup a secure connection.

This root certificate is valid till 2035/06
2024-05-05 21:19:16 +02:00
Theo Arends c41f18a9b6 Fix calloc allignment 2024-05-05 18:26:21 +02:00
s-hadinger 3d0532ce8c
Fixed void unwanted OTA upgrade when safeboot starts for the first time (#21360) 2024-05-05 18:03:32 +02:00
Jason2866 1e63c8924e
use "minimal" instead of "safeboot" (#21346) 2024-05-04 15:34:11 +02:00
s-hadinger 599526a90c
``Publish3`` to send binary data encoded as Hex, disabled in safeboot (#21345) 2024-05-04 15:26:07 +02:00
Marius Bezuidenhout 545cc27ca8
Fixed HexToBytes function. Added Publish3 command. (#21329) 2024-05-04 14:42:35 +02:00
Jason2866 9168f7b198
More shrink of safeboot (#21333)
* remove crash recorder from safeboot

* small refactor

* safeboot more shrink
2024-05-03 15:01:31 +02:00
Jason2866 9b8cd42e5f
remove crash recorder from safeboot (#21332)
* remove crash recorder from safeboot

* small refactor
2024-05-03 14:47:14 +02:00
s-hadinger 041540c80c
Changed internal macro `APP_SLEEP` to `TASMOTA_SLEEP` to specify default sleep in ms (#21324) 2024-05-03 09:03:45 +02:00
s-hadinger 18bdf07903
Reduced safeboot size by 2.9KB (#21322)
* Reduced safeboot size by 2.9KB

* remove leftover
2024-05-02 23:09:56 +02:00
Jason2866 fb78c3a796
Fix PIO Inspect
Solo1 framework does not support PSRAM
2024-05-02 13:31:34 +02:00
sfromis 311a9f18e6
Wrong feature bit for USE_SPL06_007 (#21286)
Obvious "typo" in setting the feature bit for this recently added sensor. Already mentioned in https://github.com/arendst/Tasmota/pull/21185#issuecomment-2071122611
2024-04-27 16:30:57 +02:00
Jason2866 41970f7d62
Disable psram check to avoid "blinking" of GPIO 16/17 at startup (#21282)
* add `DISABLE_PSRAMCHECK`

* remove code before IDF 5

* add no psram env
2024-04-25 20:19:20 +02:00
s-hadinger 466652549a
Fix faulty printing of IPv4 2024-04-25 11:23:27 +02:00
s-hadinger 2a35f325b8
Put back wifi IPv6 workaround (#21274) 2024-04-25 10:28:42 +02:00
s-hadinger c4431eb6fe
Fixed IPv6 support in safeboot (#21233) 2024-04-20 22:15:54 +02:00
Rai 13cbf26b87
Adds support for SPL06_007 Temperature & Pressure I2C (+10k2 code) (#21185)
* Adds support for SPL06_007 (+10k2 code)

* removes not so used methods.

Removes -2kb

* change doubles to floats

* fixes a name

* change sns idx to 25
2024-04-18 11:20:02 +02:00
s-hadinger 87f5fbd5fd
safeboot: don't publish sensor valies (#21193) 2024-04-15 22:20:28 +02:00
s-hadinger d9895a0fcb
SSD1351, ST7789 drivers replaced with uDisplay (#21184) 2024-04-15 19:52:57 +02:00
s-hadinger a006e5fc53
SSH1106 driver replaced with uDisplay (#21183) 2024-04-15 10:57:14 +02:00
s-hadinger 0b4cddff72
SSD1331 driver replaced with uDisplay (#21177) 2024-04-14 18:06:17 +02:00
s-hadinger 05f4011491
SSD1306 driver replaced with uDisplay (#21176) 2024-04-14 16:46:58 +02:00
s-hadinger ff43dc29b2
ILI9341 driver replaced with uDisplay (#21169) 2024-04-14 10:26:37 +02:00
Theo Arends d678666ef0 Fix MQTT heatindex calculation 2024-04-08 14:58:31 +02:00
Theo Arends 9cacf2f609 Fix Power off due to overtemp and/ot overload 2024-04-08 12:03:11 +02:00
s-hadinger 541f3630a1
Wifi provide Mac Address on Core3 (#21117) 2024-04-07 10:55:53 +02:00
stefanbode b9a0ae98df
Bugfix: power0 if power_lock is used (#21102)
* Bug Fix: power_lock with Power0 command

Power0 changed power regardless of the new lock state of power. New implementation respect the LOCK also on global change

* simplify

* readded the all_on filter to power_lock change

readded the all_on to ensure new defined relays always start with power off ass intended.
2024-04-06 17:21:54 +02:00
s-hadinger 2128dfbade
Refactored Wifi for ESP32 to allow for Core3 (#21106)
* Refactored Wifi for ESP32 to allow for Core3

* Fix case in include

* Grrr

* Fix compilation

* Fix Ethernet IPv6

* Fix wrong hostname due to mac address unknown at start
2024-04-05 23:44:21 +02:00
Theo Arends ed7909f23f Removed unused `#define MQTT_DATA_STRING` support 2024-04-04 17:03:08 +02:00
Theo Arends db92a843fc Change Wifi 5 to Wifi 6 2024-04-04 14:59:32 +02:00
Theo Arends 6558414e2b Add PowerLock to status
- Change Power format in status to bitmap
2024-04-03 15:02:11 +02:00
Theo Arends 7c36029ec2 Add command ``Wifi 5`` to enable 11ax on ESP32 Core3 2024-04-03 14:36:52 +02:00
Theo Arends fe89774fe0 Bump version v13.4.0.4
- Add command ``PowerLock`` to disable power control of selected outputs (#21081)
2024-04-03 11:47:38 +02:00
Theo Arends 7774ce5ad8 Update TXPowerBasedOnRssi() 2024-03-29 14:30:31 +01:00
Theo Arends 4b44d2fa32 Change ESP32 WiFi phy modes 11n and 11ax represented as HT20, HT40 and HE20 (#19350) 2024-03-29 13:04:44 +01:00
Marcus Better 1a462c986c
[tuyamcu_v2] Fix suppressed dimmer updates from MQTT (#20950)
The driver tried to avoid loops when state updates from the MCU (eg
from physical button press) could be reflected back by Tasmota and
trigger another MCU command, followed by a state update. It did this
by tracking the source of the command in the last_source and
last_command_source variables, suppressing the command if either of
those was SRC_SWITCH.

However this logic is faulty: Since there are two last_source
variables to check, a command might reset one of them, but the other
would still suppress the update. As it turns out, MQTT commands would
only set last_source but not last_command_source. As a result, any
dimmer changes via MQTT would be dropped by the driver and not applied
to the MCU.

Switch functionality (on/off) was still working because those do not
rely on last_command_source, only last_source.

This change removes the loop detection logic altogether for dimmer
updates. This should be safe, because the driver already has the
latest dimmer value in its shadow state, and will not try to re-apply
a current value, thus breaking the loop.

This patch has been tested with several CE-WF500D dimmers which had
this problem.
2024-03-14 17:42:52 +01:00
Theo Arends ce419cce81 Add LoRa to ESP8266 2024-02-29 17:12:08 +01:00
s-hadinger a2bb0afea2
IR support data larger than 64 bits (#20831) 2024-02-28 22:42:29 +01:00
Theo Arends 77cba87994 Update changelogs 2024-02-27 14:16:13 +01:00
Theo Arends 9a5217bf90 Add heatindex to BMP driver (#4771) 2024-02-19 14:17:40 +01:00
Theo Arends fb003e006e Add Show calculated heat index if temperature and humidity is available with ``#define USE_HEAT_INDEX`` (#4771) 2024-02-18 18:00:41 +01:00
Theo Arends 1abaf146b5 Fix ESP32 PWM activity on unconfigured PWM GPIOs (#20732) 2024-02-17 15:19:12 +01:00
Theo Arends 080cdb4f0d Add core3 ethernet support on SPI for all ESP32 models 2024-02-14 16:19:51 +01:00
Jason2866 2f32e3c2ee
Fix C2 compile error 2024-02-09 13:53:19 +01:00
Theo Arends 715914bdd0 Add internal support for persistent JSON settings using single file 2024-02-07 22:55:39 +01:00
Fulvio Spelta ab8676d865
SetOption158 publish/suppress ModbusReceived MQTT messages (#20678) 2024-02-07 15:57:09 +01:00
Andrey Osin 478bd0ce17
Fix Wi-Fi scan results process when scanning fails. (#20631) 2024-02-03 12:35:13 +01:00
Theo Arends 95b03592dc Add ISR logging failsafe 2024-01-30 16:57:45 +01:00
Theo Arends 886b453e69 Fix ESP8266 eFuseMac result 2024-01-28 17:34:15 +01:00
Theo Arends af9d4cadd8 GPIO Viewer update from 1.0.7 to 1.5.0 2024-01-27 23:58:00 +01:00
Theo Arends 5d06a25915 Add ESP32-C3 support for GPIO11 (#18350) 2024-01-26 12:13:23 +01:00
Theo Arends 10885fe60d Refactored rules ``Subscribe`` using LList allowing full message size and enabled by default 2024-01-22 16:57:59 +01:00