Commit Graph

379 Commits

Author SHA1 Message Date
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
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
Theo Arends c9d0106007 Removed max number of 30 backlog entries 2024-01-18 16:32:28 +01:00
Theo Arends 0f541a963b Fix TimedPower blink off 2024-01-18 10:38:22 +01:00
Theo Arends 2832ed914b Change command ``TimedPower``
Change command ``TimedPower`` from erasing all timers to showing remaining timers
2024-01-17 15:55:25 +01:00
Theo Arends 9d00897cb4 Fix TimedPower using state names 2024-01-16 15:07:23 +01:00
Theo Arends 2c5508ee96 Add TimedPower update before end 2024-01-16 12:40:35 +01:00
Theo Arends 77d54985d0 Tune TimedPower 2024-01-16 11:02:24 +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
s-hadinger 9045a7da83
IP stack compatible with new Core3 IPv6 implementation (#20509)
* IP stack compatible with new Core3 IPv6 implementation

* Fix compilation

* Forece CI
2024-01-15 21:05:40 +01:00
Theo Arends c2d6bbf2c1 Code admin 2024-01-10 11:13:19 +01:00
Theo Arends 0d300aebff Update GPIOViewer
- Add ESP8266 PWM state logging
- Add ADC state functions
2024-01-07 15:10:19 +01:00
Theo Arends 13a9c3b5b2 Add delays to wifi init code
Add delays to wifi init code to fix some edge power cases.
2023-12-27 17:29:03 +01:00
Theo Arends e5abd47c86 More syslog explaining 2023-12-21 14:49:37 +01:00
Theo Arends 2f824b1976 Document different syslog layouts 2023-12-21 14:30:49 +01:00
Theo Arends a445c7f23a Fix syslog server warning
Fix syslog server warning caused by lack of <PRI> field and hostname starting with 'z' (#14689)
2023-12-20 16:00:27 +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
stefanbode f19d15654c
Restart 9 support deepsleep with TIMER based wakeup (#20165)
* Allow restart 9 to use TIMERS for wakeup

* support for restart 9

allow restart 9 to use any defined TIMER to restart a a specific time.
2023-12-05 13:47:53 +01:00
Theo Arends 728f91b602 Update changelogs 2023-12-05 10:07:02 +01:00
Theo Arends 14793c2594 Shorten code and add more comments 2023-12-04 11:44:59 +01:00
Theo Arends 7a6cca6d20 Add command ``WebCanvas``
Add command ``WebCanvas linear-gradient(#FF0018 7%,#FFA52C,#FFFF41,#008018,#0000F9,#86007D 93%)`` to set GUI canvas
2023-12-03 15:52:44 +01:00
Theo Arends 28c8f8cf47 Fix PowerOnState on ESP32 (#20144) 2023-12-02 17:49:02 +01:00
Theo Arends b7819bcfac ESP32 show LHBT background if ``WebColor2`` bit0 is not set. Bit0 is default set using #252525 2023-12-02 16:59:04 +01:00
Theo Arends ad831418e5 Fix SO51 2023-11-24 11:36:20 +01:00
s-hadinger 1c60527099
Berry `scale_int`, equivalent of `scale_uint` for signed integers (#20090) 2023-11-23 11:31:26 +01:00
s-hadinger 1cd13d7f66
Fixed `changeUIntScale` for linearity when expanding range (#20089) 2023-11-23 10:57:47 +01:00
Theo Arends 74aa056650 Final fix ESP32C3 relay toggle
Final fix ESP32C3 relay toggle on restart (#20030)
2023-11-17 16:17:29 +01:00
Theo Arends 5297bab041 Revert "Final fix ESP32C3 relay toggle"
This reverts commit 4489dba8dd.
2023-11-17 16:06:45 +01:00