Commit Graph

295 Commits

Author SHA1 Message Date
Theo Arends 09b2670c45 Add command ``Backlog3`` to execute commands without response but rule processing (#21740) 2024-07-08 15:53:15 +02:00
Jason2866 7e8bcd896a
include `SD_MMC.h` only when supported (#21611) 2024-06-11 13:25:47 +02:00
Theo Arends a4c7add8df Prep ESP32 SPI bus 2 support 2024-05-21 15:58:16 +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
s-hadinger e6e15a214f
Seriallog set to `SERIAL_LOG_LEVEL` at boot (#21363)
* Seriallog set to `SERIAL_LOG_LEVEL` at boot

* Ensure seriallog has at least LOG_LEVEL_INFO at boot
2024-05-05 21:08:24 +02:00
Theo Arends c41f18a9b6 Fix calloc allignment 2024-05-05 18:26:21 +02:00
Theo Arends 53073b374d Fix initial default settings 2024-05-05 18:21:03 +02:00
Jason2866 3be5f630e1
fix s2cdc serial console (#21344) 2024-05-04 15:14:51 +02:00
Jason2866 117cee9e6e
Update esp32 platform to 2024.04.14 (#21299)
* use new HWCDC Arduino code
2024-04-30 17:58:30 +02:00
s-hadinger c4431eb6fe
Fixed IPv6 support in safeboot (#21233) 2024-04-20 22:15:54 +02:00
Theo Arends cb0e2938e5 Start clean-up code 2024-04-15 15:12:17 +02:00
Theo Arends 1fe18cf7b6 Fix Core3 ESP32S2 compile 2024-04-15 13:00:09 +02:00
Theo Arends 5cb3ea2114 Update changelogs 2024-04-12 16:01:00 +02:00
Christian Baars 1721de0b76
use new API for check of USB cable connection (#21135) 2024-04-10 11:31:18 +02:00
s-hadinger 541f3630a1
Wifi provide Mac Address on Core3 (#21117) 2024-04-07 10:55:53 +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
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
Jason2866 2cc87b086b
latest Arduinon 3.0.0. needs HWCDC (#20905) 2024-03-10 15:20:43 +01:00
Theo Arends 3bbc33f554 Add support for Github SED inserted SHA_SHORT 2024-02-29 13:03:41 +01:00
Theo Arends bfd44d06f9 Refactor GPIO Viewer 2024-01-29 17:16:38 +01:00
Theo Arends 1ffbbc914d Refactor backlog from LinkedList to TasmotaLList 2024-01-21 22:07:49 +01:00
Theo Arends 95f76d623f Changed command ``TimedPower`` refactored from String to LList 2024-01-21 14:29:44 +01:00
Theo Arends 9608b7513a Refactor backlog by removing some str copies 2024-01-20 22:45:24 +01:00
Theo Arends 05014d48cf Refactor backlog from String to char 2024-01-20 17:18:03 +01:00
s-hadinger 6c3f70589a
Core3 reset GPIOs 16/17 when PSRAM is not used (#20547)
* Core3 reset GPIOs 16/17 when PSRAM is not used

* clean
2024-01-19 23:19:56 +01:00
Theo Arends c9d0106007 Removed max number of 30 backlog entries 2024-01-18 16:32:28 +01:00
Theo Arends 789fd1e055 Add command ``TimedPower``
Add command ``TimedPower<index> <milliseconds>[,ON|OFF|TOGGLE|BLINK]`` executes ``Power<index> [ON|OFF|TOGGLE|BLINK] `` and after <millisecond> executes ``Power<index> [OFF|ON|TOGGLE|OFF]``
2024-01-15 23:58:33 +01:00
Theo Arends 0ed01c3b1d Revert "Add ESP32 experimental support GPIOViewer when ``define USE_ESP32_GPIO_VIEWER`` is enabled"
This reverts commit 9d27f395d8.
2024-01-04 22:50:41 +01:00
Theo Arends 9d27f395d8 Add ESP32 experimental support GPIOViewer when ``define USE_ESP32_GPIO_VIEWER`` is enabled 2024-01-04 18:28:37 +01:00
Theo Arends 21c7edcb50 Add display of active drivers using command ``status 4`` 2023-12-27 22:03:56 +01:00
Theo Arends b81eaf5bc8 Support syslog updates every sleep
Support syslog updates every sleep or every second if `#define SYSLOG_UPDATE_SECOND` (#20260)
2023-12-19 12:45:13 +01:00
budulinek 23b4cd08d4
Realtime syslog (#20260)
* Realtime Syslog

* Update tasmota.ino

---------

Co-authored-by: Theo Arends <11044339+arendst@users.noreply.github.com>
2023-12-19 12:29:39 +01:00
Theo Arends 26f14caee9 Fix S2 core3 compiles 2023-10-28 16:20:44 +02:00
Jason2866 75ec9da8a2
Refactoring of storing safeboot bin (#19858)
* Folder for storing safeboot is now configurable
* Platform 2023.10.06
* Platform 2023.10.12
2023-10-28 13:15:31 +02:00
Theo Arends 84eaae572c Fix core 3 S2 USB 2023-10-24 17:00:11 +02:00
Theo Arends 5c395ffc06 Fix core 3 S2 USB 2023-10-24 16:41:36 +02:00
Theo Arends 84ced0fcab Add ESP32 core v3 auto TasConsole USB or Serial connection by @staars 2023-10-24 16:32:39 +02:00
Theo Arends d96ed15e95 Bump version v3.1.0.4 2023-10-04 13:52:08 +02:00
Theo Arends 99df8edc2d Fix ESP32 chip version number 2023-10-04 12:47:58 +02:00
Theo Arends 0c3b559630 Phase 1 support C2/C6 2023-08-21 16:00:20 +02:00
s-hadinger 0b3d6fd146
Prepare for Arduino v3 / esp-idf v5 2nd batch (#19265) 2023-08-05 20:34:24 +02:00
Theo Arends 522e6cf234 Implement deepsleep(0)
Implement deepsleep(0) as command ``restart 9`` (#19024)
2023-07-03 21:07:45 +02:00
Theo Arends fc67cca8b4 Add generic SystemWaitIfBusy() to fix WS2812 led flicker
Add generic SystemWaitIfBusy() to fix WS2812 led flicker
2023-05-24 16:21:59 +02:00
stefanbode a76ebaae48
Shutter continuous improvement (#18701)
* Update xdrv_27_esp32_shutter.ino

* Update xdrv_27_shutter.ino

* Update xdrv_01_9_webserver.ino

* Update xdrv_12_discovery.ino

* shutterinvert

removed slider display to driver
fix wrong invert display

* codereduction+refactor slider

removed webui slider into driver
optimized code

* update slide, fix invert shutters

- refactor sliders into driver
- fix percent calculation on iverted shutters

* fix on realpercent if inverted shutter

* fix ShutterPercentToRealPosition

fix on inverted shutter

* added shutter to bootloop reset

* bugfix integration

* bugfix
2023-05-21 12:25:11 +02:00
Theo Arends 77103baa0a Add internal support for max log level 2023-05-19 15:20:21 +02:00
Theo Arends 0385204ca7 Add command ``WifiPower 0``
Add command ``WifiPower 0`` to enable dynamic wifi power based on RSSI by @TD-er (#15443)
2023-05-16 18:55:55 +02:00
Theo Arends 53bd49ddcd Remove USE_ARDUINO_OTA from ESP32 2023-04-27 16:35:47 +02:00
Theo Arends 9f77cfd890 Fix single pin latching relay power on state
Fix single pin latching relay power on state (#18386)
2023-04-19 16:17:04 +02:00
Theo Arends 6f6c43a724 Add command ``SetOption152 0/1``
Add command ``SetOption152 0/1`` to select two (default) or one pin bistable relay control (#18386)
2023-04-18 17:16:29 +02:00