Commit Graph

1278 Commits

Author SHA1 Message Date
s-hadinger 5ecd45e2da
Berry avoid crash when Berry is disabled after bootloop (#21235) 2024-04-21 10:03:55 +02:00
s-hadinger c4431eb6fe
Fixed IPv6 support in safeboot (#21233) 2024-04-20 22:15:54 +02:00
Theo Arends 9b5df76860 Add Domoticz safeguards 2024-04-18 11:21:35 +02:00
s-hadinger 042eecc378
HASPmota `dropdown_list` and fixes (#21208) 2024-04-17 21:43:12 +02:00
Theo Arends e6d9d826ac Clean up code 2024-04-17 21:40:45 +02:00
Theo Arends b6b74ecb96 Fix regression on SendKey() (#21187) 2024-04-17 17:30:25 +02:00
Theo Arends 0bb1fcbc00 Change comments 2024-04-17 15:58:20 +02:00
Theo Arends e4936f6c5f Fix ethernet 2024-04-17 15:34:14 +02:00
Theo Arends e95c940345 Change ESP32 Ethernet Phy Type number for ETH_PHY_DM9051 from 4 to 10 (#21204) 2024-04-17 15:10:45 +02:00
Theo Arends ecf2504edf Fix invalid rule handling 2024-04-15 17:25:11 +02:00
Jason2866 6492596a10
Fix BLE compile with core 3.0.0 (#21182)
* Delete lib/libesp32_div/NimBLE-Arduino directory
* rm obsolete ignores
2024-04-15 10:24:06 +02:00
s-hadinger 5f7584efe4
Fade out on CCT bulb with `SO92 1` (#21159) 2024-04-12 19:53:37 +02:00
gemu 7984b7513c
support for centered pictures (#21140) 2024-04-11 15:36:37 +02:00
gemu d5ee89677b
scriptsize cmd (#21139) 2024-04-11 15:36:27 +02:00
Theo Arends 1b5fdb5c57 update changelogs 2024-04-11 14:07:25 +02:00
s-hadinger 39ad5a41bb
Core3 ethernet simplify ipv6 (#21141) 2024-04-10 23:12:20 +02:00
Theo Arends 54e4aba750 Add LoRaWan MAC response 2024-04-09 14:06:38 +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
Theo Arends 02f6e05289 Fixed M5Core2 LoRa868 module receive exception 2024-04-06 15:04:05 +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
s-hadinger 07a2df1b74
Berry add `flash.current_ota` (#21097) 2024-04-04 19:14:33 +02:00
Theo Arends ed7909f23f Removed unused `#define MQTT_DATA_STRING` support 2024-04-04 17:03:08 +02:00
gemu ad3782bed1
google charts memory leak (#21093) 2024-04-04 10:18:57 +02:00
Theo Arends 1ebdbfd6a4 Allow Domoticz unsubsctibe using command ``DzIdx0 0`` (#21019) 2024-04-01 13:56:40 +02:00
Barbudor 0422b25e31
Change format of KNX Energy to match specifications (#21074)
* take 1

* refactor knx enhancement

* round on energy + auto show temp/hum sensors
2024-03-31 21:15:53 +02:00
Theo Arends b15a0e2f1f Add support for Domoticz non-persistent ``DzIdx5`` to ``DzIdx32`` (#21019) 2024-03-31 14:33:27 +02:00
gemu e336913b32
fix multidisplay mode (#21067) 2024-03-31 08:16:15 +02:00
Theo Arends caed27645e Consolidate Lora memory usage 2024-03-30 15:02:20 +01:00
Theo Arends 6ccb3ae290 Move Lora variables from fixed to heap 2024-03-29 17:56:06 +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
Theo Arends 0814acb8dc Fix Lora ESP32S3 compile warning 2024-03-28 18:20:13 +01:00
Theo Arends bd3c7d8ddf Fix LoRaWan joining 2024-03-28 17:51:09 +01:00
Theo Arends 894e46cb5a Refactor lorawan 2024-03-28 17:15:45 +01:00
Theo Arends 7c52906a2e Fix ESP8266 Lora SX1262 exceptions 2024-03-27 23:03:10 +01:00
s-hadinger 6ad2c4c945
LVGL simplify configuration (#21043) 2024-03-26 23:16:16 +01:00
Theo Arends 03cf7dc460 Fix ESP32 LoRaWanBridge OTAA 2024-03-26 17:02:44 +01:00
Pabasara Perera 2fff690af3
Azure iothub direct method support (#21013)
* feature: azure iot hub direct method support

* null terminator

* Remove vulnerability

---------

Co-authored-by: s-hadinger <49731213+s-hadinger@users.noreply.github.com>
2024-03-25 22:11:36 +01:00
s-hadinger 10465ce941
Added GPIO for SPI for Universal Touch Screen (#21025)
* Added GPIO for SPI for Universal Touch Screen

* Rename GPIOs

* Fix indentation

* Add parsing of I2C Reset and IRQ GPIOs
2024-03-25 22:04:50 +01:00
Theo Arends f10218a257 Add support for LoRaWanBridge 2024-03-23 15:20:22 +01:00
gemu 31adf74634
fix linker error (#21017) 2024-03-23 10:05:56 +01:00
gemu aad917d060
Email32 more debug (#21010)
* more debug on esp32 mail

* Update xdrv_01_2_webserver_esp32_mail.ino
2024-03-22 08:09:16 +01:00
s-hadinger 3c70e63af8
LVGL library from v9.0.0 to v9.1.0 (#21008) 2024-03-21 18:47:41 +01:00
gemu a38e88422f
fix google char memory leak (#20995) 2024-03-21 15:11:40 +01:00
Theo Arends c18ed34685 Fix Lora watchdog
- Update file JSON settings demo
2024-03-20 18:18:31 +01:00
s-hadinger 9c34707401
Zigbee added for attributes of type `uint48` used by energy monitoring (#20992) 2024-03-19 22:21:10 +01:00
Frank Werner 70bce974b2
Add MCP23S08 support (#20971) 2024-03-18 10:18:14 +01:00
gemu ca17be0e0b
fix regression (#20962) 2024-03-16 12:11:48 +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 cc8614da9c Add command ``RfTimeout`` to Sonoff RFBridge (#20937) 2024-03-14 17:21:09 +01:00
s-hadinger 8b7cd2de44
HASPmota moved to a distinct library `lv_haspmota` (#20929) 2024-03-11 22:31:44 +01:00
gemu 190493c747
fix regression from last commit (#20923) 2024-03-11 08:22:10 +01:00
Theo Arends 14f976b8a4 Update xdrv_122_file_json_settings_demo.ino 2024-03-10 12:13:13 +01:00
Theo Arends 8231a0429c Fix JSON Settings save 2024-03-10 12:04:57 +01:00
s-hadinger 3429ebd359
LVGL fix montserrat-10 and icons-10 (#20901) 2024-03-09 22:09:41 +01:00
s-hadinger 16afaf3c59
LVGL improved readability of montserrat-10 (#20900) 2024-03-09 21:15:30 +01:00
gemu 99f4774e14
core3 fixes (#20895) 2024-03-09 09:19:04 +01:00
s-hadinger 804ee37098
Haspmota optim fonts (#20880)
* LVGL optimize fonts and add icons

* changelog
2024-03-05 23:09:53 +01:00
Marcus Better 47ae5bc9c8
[tuyamcu_v2] Send updates unconditionally (#20868)
Remove the logic that inhibits the sending of updates to the MCU until
the DP's state has been observed at least once in a status report from
the MCU. This logic was intended to ensure that a DP is not updated
with its current value, which reportedly crashes some very broken
devices.

However, other devices like the Feit DIM/WIFI dimmers do not reliably
report DPs that haven't been changed. So the required status report
would never arrive, resulting in the inability to control these
devices remotely, at least until their state had been changed by a
manual button press, something that is not always practical as it
requires physical device access and needs to be done after every
restart.

Removing this logic allows Tasmota to control the device state.
2024-03-04 13:23:12 +01:00
Marcus Better bb790efefd
[Tuya v2] Remove unused variable (#20869) 2024-03-04 13:22:35 +01:00
Marcus Better ee6863ffd9
Heartbeat every 15s as documented (#20867) 2024-03-04 13:21:41 +01:00
s-hadinger d4720d9378
LVGL remove embedded typicons font (#20872) 2024-03-04 13:04:11 +01:00
Theo Arends 24372207de Update changelogs
- Elevate some messages
2024-03-04 11:58:46 +01:00
Theo Arends 9c4dfd28ef Add command `LoRaCommand` 2024-03-03 16:55:02 +01:00
Theo Arends d394eef7c8 Fix LoRa binary send 2024-03-01 18:07:10 +01:00
Theo Arends 715ca102c7 update changelogs 2024-03-01 16:52:28 +01:00
Theo Arends 9bb8d6e1ff Add hard fought spaces around image name 2024-03-01 10:15:37 +01:00
Theo Arends adfbf6508a Remove CAD from SX127X to fix intermittent reception 2024-02-29 17:23:37 +01:00
Norbert Richter 9026b95f45
Prevent shutter MQTT broadcast with activated ShutterLock (#20827) 2024-02-29 13:16:33 +01:00
s-hadinger a2bb0afea2
IR support data larger than 64 bits (#20831) 2024-02-28 22:42:29 +01:00
Theo Arends 24b59376bb Fix LoRa Config 2024-02-27 17:09:50 +01:00
Theo Arends 8f1cb3431f Fix LoRa SX1262 user GPIO selection 2024-02-26 22:25:59 +01:00
Theo Arends d61c96a485 Add command LoRaConfig 2024-02-26 17:31:24 +01:00
s-hadinger 55be1866ad
Berry add explicit error log when memory allocation fails (#20807) 2024-02-25 21:17:08 +01:00
Theo Arends 389bf124bf Update comments 2024-02-25 17:58:38 +01:00
Theo Arends c9c1eee302 Add SX127x lora support 2024-02-25 17:03:46 +01:00
Theo Arends b218f6bff1 Allow lora on ESP8266 2024-02-25 14:29:56 +01:00
Theo Arends 9aff378ef8 Update LoRaSend 2024-02-24 18:25:40 +01:00
stefanbode ae01d4ccd5
Support for 3 pulse relay shutters OPEN/CLOSE/STOP (#20758)
* new option on dedicated STOP relay.

* added new stoprelay shutter

* fix

* new option stoprelay

* fix
2024-02-23 22:54:39 +01:00
Theo Arends 90b3f0f62b Add LoRa demo using LilyGo T3S3 on 868MHz (#17790) 2024-02-23 18:25:13 +01:00
SteWers 5f07afab1b
[EQ3-TRV] Fix label `Valve Position` (#20757) 2024-02-19 11:29:14 +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
Felipe Martínez d77cf7d2f0
Support LWT messages when using TASMESH (#20392)
* Send LWTs when nodes come online and offline

* Use string macro

* Add a TASMESH_HEARTBEAT config

* Add flags to config file

* Fix missing break in case

* Rename heartbeat feature define

* Comment out tasmesh settings

* Detect online peers on all packets, not just heartbeats
2024-02-18 15:28:00 +01:00
stefanbode c7894181b7
fix issue on inverted shutters with commands comming with shutterposition (#20752)
* fix INVERTED bug

fix shutterposition xxx commands do not work on inverted shutter

* fix INVERTED bug

* fix INVERTED bug

shutterposition UP/DOWN/... commands did not work as expected on inverted shutter
2024-02-18 12:36:03 +01:00
Theo Arends 1abaf146b5 Fix ESP32 PWM activity on unconfigured PWM GPIOs (#20732) 2024-02-17 15:19:12 +01:00
Theo Arends 0faef8e4dd Fix PWM channels after restart (#20732) 2024-02-16 18:57:03 +01:00
Fulvio Spelta c93d6676b9
Fix SetOption158 publish/suppress ModbusReceived MQTT messages (#20733)
Fixed a bug that let some mqtt messages be published anyway
2024-02-16 15:06:11 +01:00
s-hadinger a51b08b36c
typicons font to LVGL and HASPmota (#20742) 2024-02-16 12:42:11 +01:00
Theo Arends 4cb53fef06 Fix ethernet config chk 2024-02-14 17:01:31 +01:00
Theo Arends 080cdb4f0d Add core3 ethernet support on SPI for all ESP32 models 2024-02-14 16:19:51 +01:00
Theo Arends 00ea2a78d6 Revert "add json value for rules (#20718)"
This reverts commit 04cd8950a3.
2024-02-14 09:20:56 +01:00
Theo Arends 9aa5a6d7fb Fix compilation 2024-02-13 14:54:35 +01:00
Barbudor 04cd8950a3
add json value for rules (#20718) 2024-02-13 13:52:48 +01:00
Theo Arends 71ae3fb231 Prep release v13.4 2024-02-13 12:15:38 +01:00
Theo Arends 88f1e3593a Fix GPIO Viewer 2024-02-13 10:15:12 +01:00
s-hadinger 710ed2e42c
Berry option to invert serial (#20707) 2024-02-11 17:27:40 +01:00
Theo Arends 523a28c39f Fix Touch logging 2024-02-09 17:54:47 +01:00
Theo Arends 4e7e256892 Add ESP32 Core3 support for SPI ethernet on DM9051, W5500 and KSZ8851 2024-02-08 16:45:28 +01:00
Theo Arends 2f0b1e8edd Update example code 2024-02-08 14:42:58 +01:00
Christian Baars b02de6de6f
add BLE.info() (#20682) 2024-02-08 11:31:48 +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
Theo Arends b31ff75f3c Revert "Add support for JSON settings file"
This reverts commit 9471a29ad9.
2024-02-07 14:25:38 +01:00
Theo Arends 9471a29ad9 Add support for JSON settings file 2024-02-07 13:10:26 +01:00
Theo Arends f88a8a6765 Add berry divider 2024-02-05 15:59:37 +01:00
s-hadinger ff6be70ce1
LVGL library updated to v9.0.0, some small breaking changes in C, none in HASPmota (#20659)
* LVGL library updated to v9.0.0, some small breaking changes in C, none in HASPmota

* fix compilation

* Move lvgl_berry to LVGL_assets
2024-02-05 12:07:41 +01:00
Theo Arends 4bdf1aafb5 Update xdrv_121_gpioviewer.ino 2024-02-04 16:49:35 +01:00
Theo Arends dec230c19f Update xdrv_121_gpioviewer.ino 2024-02-04 16:31:17 +01:00
Theo Arends 0f0a125cdb Update comments GPIOViewer 2024-02-04 16:19:59 +01:00
Theo Arends d29b3b2871 Tune GPIO Viewer 2024-02-04 12:52:50 +01:00
Theo Arends 92b8bb3c9b Update changelogs 2024-02-03 17:23:07 +01:00
SteWers 55259aa8c5
[Energy] Fix frequency handling (#20626)
* [Energy] Prepare MQTT subscribe

- Prepare energy driver for using MQTT subscribe
- Fix handling of frequency

* MQTT in xnrg

* Revert MQTT
2024-02-03 12:37:57 +01:00
Mark Fickett 58816aa9a2
Lower the minimum temperature to 10C (50F) and make it pick up user-defined values. (#20628) 2024-02-03 12:34:24 +01:00
Christian Baars c24c0a53c0
fix compilation with newer Arduino framework (#20641) 2024-02-02 11:09:43 +01:00
Theo Arends bfd44d06f9 Refactor GPIO Viewer 2024-01-29 17:16:38 +01:00
Theo Arends e15e131ca2 Update xdrv_121_gpioviewer.ino 2024-01-28 18:32:34 +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
gemu 04bb28bc20
fix email32 file system (#20603)
* fix file system

* fix email attachments

* Update MB_FS.h
2024-01-27 09:06:41 +01:00
Theo Arends cce5204177 Refactored rules USE_EXPRESSION and SUPPORT_IF_STATEMENT replacing LinkedList with arrays and enabled by default 2024-01-24 14:33:55 +01:00
Theo Arends a74200d40d Refactored rules USE_EXPRESSION and SUPPORT_IF_STATEMENT replacing LinkedList with arrays 2024-01-23 23:52:18 +01:00
Theo Arends c6355e02fb Better bailout 2024-01-23 18:23:04 +01:00
Theo Arends dca33c10a3 Fix subscribe same topic, multiple events
And even smaller by unstringifying
2024-01-23 18:17:42 +01:00
Theo Arends a9a3f5638c Fix subscribe rule handling 2024-01-23 12:32:12 +01:00
gemu 780940d5d0
Utouch update (#20561)
* toched return int16

* add XPT and more opcodes

* add guesture

* increase code buffer
2024-01-22 18:21:40 +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
s-hadinger de91133414
Zigbee ``ZbEmulation`` to selectively exclude some devices from Hue/Alexa emulation (#20552) 2024-01-21 11:42:04 +01:00
SteWers 76a7ab5131
[Energy] Decoupled `FREQUENCY` and `Energy->type_dc` (#20549) 2024-01-21 11:37:04 +01:00
Theo Arends 9608b7513a Refactor backlog by removing some str copies 2024-01-20 22:45:24 +01:00
stefanbode 8223777e4f
Improve init behavior (#20548)
Ensure filesystem init is executed after so80 1. The shutter command will check for proper init and if not done will do it.
2024-01-20 17:29:50 +01:00
Theo Arends 05014d48cf Refactor backlog from String to char 2024-01-20 17:18:03 +01:00
s-hadinger 1eb1025c18
Berry/Zigbee auto `import zigbee` (#20543) 2024-01-19 13:28:12 +01:00
s-hadinger 860f3857d5
Berry/Zigbee add web hook per device for customized status display (#20542) 2024-01-19 08:24:17 +01:00
s-hadinger 30c3165b6f
Audio for Core3, MP3Stream and Shine (#20540) 2024-01-18 23:35:53 +01:00
Theo Arends c9d0106007 Removed max number of 30 backlog entries 2024-01-18 16:32:28 +01:00
Theo Arends db70d9c8cb Fix GPIOViewer exception 3 2024-01-18 15:55:59 +01:00
gemu 9ccc3f8fda
Universal touch driver (#20492)
* add universal touch

* add universal touch

* add universal touch

* add universal touch

* Update xdrv_10_scripter.ino

* utouch add word address support (gt911)

* optimizations

* add simple resistive touch
2024-01-18 10:23:21 +01:00
Theo Arends f28c9b6ea9 Slicing GUI information 2024-01-17 18:17:46 +01:00
stefanbode c705c8f89c
Fixed DIV/0 (#20524) 2024-01-17 10:03:42 +01:00
Theo Arends c15ad066d0 Sync shutter drivers 2024-01-16 16:40:57 +01:00
SteWers 0ac559bf7f
[Shutter] Fix html table syntax (#20519)
* [Shutter] Fix html table syntax

The html code for the slider was placed in a `<table>` but not fenced with `<tr>` / `<td>` tags. So the browser placed it "randomly" outside of the table.

* [Shutter] revert date
2024-01-16 16:35:19 +01:00
SteWers 0cd3d3b003
[WebUI] Fix first line seperator (#20518)
The separator (request) flag has to be cleared before starting the output of sensors/drivers to ignore previous outputs. So there will no seperator in front of the list. This only appeared, when `WebTime` is off.
2024-01-16 16:14:40 +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
SteWers 4f436cdf73
Remove first separator (#20507) 2024-01-15 18:58:14 +01:00
SteWers ab2439f6c8
Modify shutter driver for GUI sensor separators (#20506) 2024-01-15 18:24:15 +01:00
SteWers f2800dd770
Modify drivers for GUI sensor separators (#20504) 2024-01-15 16:53:34 +01:00
Theo Arends 637fac5ae8 Add GUI sensor separators (#20495) 2024-01-15 15:36:59 +01:00
Theo Arends ee4bf86e6a Fix compilation when USE_ADC is not defined (#20498) 2024-01-15 10:34:14 +01:00
SteWers f14ee6415b
[EQ3-TRV] View some values in WebUI (#20487)
* [EQ3-TRV] View some values in WebUI

- View some values in WebUI
- code cleanup

* [EQ3-TRV] Remove lines
2024-01-14 17:39:15 +01:00
Christian Baars be54104676
add remote_addr and _port to info() (#20485) 2024-01-14 11:31:04 +01:00
Theo Arends 25cadcbbdc Prefer using default GPIOViewer board repository 2024-01-13 22:13:27 +01:00
Theo Arends 1854b9a069 Free some more bytes from GPIOViewer 2024-01-13 16:11:40 +01:00
Theo Arends 9fc47b7d90 Tune GPIOViewer 2024-01-13 15:16:34 +01:00
s-hadinger c1f3561a3e
Fix random crash in Zigbee main page (#20481) 2024-01-12 22:34:42 +01:00
Theo Arends 61f6c26b03 Fix GPIO Viewer single instance 2024-01-12 16:54:24 +01:00
Theo Arends 3e3bfccb58 Bump version v13.3.0.3 2024-01-12 12:17:31 +01:00
Benjamin Nestler a13e83e1e6
FIX: Reset the 'upload_error' variable after web file upload error (#20340)
* FIX: Reset the 'upload_error' variable after signaling the error to enable the next upload action.

* ADD: Introduce HandleUploadUFSDone() to display information messages for uploaded files in UFS and handle errors.
ADD: Include '?fsz=' web-argument (filesize) in the upload button click function.
2024-01-12 10:08:05 +01:00
SteWers b69cc802db
[MI BLE] added support for LYWSD02MMC (#20381)
* [MI BLE] added support for LYWSD02MMC

- initial support for MI LYWSD02MMC
- code rework

* Update CHANGELOG.md

* Update CHANGELOG.md

* [MI BLE] add Mi32Time / bugfixes

* [MI BLE] plain read, debug enhanced

* [MI BLE] add LYWSD02MMC battery

* [MI BLE] improved debug log, code cleanup

* [MI BLE] improved debug log, code optimize
2024-01-12 10:06:55 +01:00
gemu fa6d18a505
fix memory leak in >w x (#20473) 2024-01-12 10:04:19 +01:00
s-hadinger 20c54a3647
Fix compilation of Zigbee for Core3 (#20464) 2024-01-11 10:02:12 +01:00
Theo Arends 20c70d578e Remove padding between tool buttons 2024-01-10 17:17:56 +01:00
Theo Arends f30f3f8016 Add user control over GPIOViewer sampling interval 2024-01-10 15:51:19 +01:00
Theo Arends c2d6bbf2c1 Code admin 2024-01-10 11:13:19 +01:00
chefpro 0b509f60b4
Add support for pipsolar inverter (#20408)
* Add support for pipsolar inverter

* Fix CI-Warnings

* Remove unneeded define

* Pipsolar: Fix dat result

* Add support for the rules engine

---------

Co-authored-by: Peter Rustler <peter@rustlerit.de>
2024-01-10 09:21:02 +01:00
s-hadinger edda5ddc33
Berry `tasmota.webcolor` (#20454) 2024-01-10 09:08:11 +01:00
s-hadinger 453a3462b7
Fixed Zigbee Aqara attributes on ESP32 (#20452) 2024-01-09 22:30:38 +01:00
Gregory Holder 345de0aded
[Thermostat] Save and restore XdrvMailbox if output relay is switched off (#20405) 2024-01-09 22:07:30 +01:00
btsimonh fa959d9f47
Webcam v2 tweaks 2024 (#20451)
* suppress compiler warning about 'used' function

* don't stop and start cam webserver every time we save to flash.  Only stop the actual cam clock.

* change cmds WcMenuVideoon and wcmenuvideooff to be wcmenuvideodisable 0/1 to be more TAS like, and save a little.
2024-01-09 22:06:22 +01:00
s-hadinger 69d4e323d6
Berry provide lightweight options for `tasmota.wifi/eth/memory/rtc` (#20448) 2024-01-09 19:49:30 +01:00
s-hadinger 85fb54fe8d
Berry `webserver.header` to read browser sent headers (#20447) 2024-01-09 19:34:19 +01:00
s-hadinger 8712aba3c5
Header `Host` is now collected by Webserver (#20446) 2024-01-09 19:34:07 +01:00
Theo Arends 52dd206fb7 Add GPIOViewer flow control
Add GPIOViewer flow control to reduce system load if not used
2024-01-09 17:08:13 +01:00
Theo Arends 451f9ba4ae Fix GPIOViewer init and event data 2024-01-09 14:58:33 +01:00
s-hadinger 935fa3519c
Fix display of source IP when restarting from UI button (#20443) 2024-01-09 13:43:26 +01:00
Christian Baars 81fac80859
MI32 legacy: add optional argument to BLE.run() (#20431)
* add optional argument to BLE.run()

* set default of scan response to NO
2024-01-09 09:10:45 +01:00
Theo Arends 883d34d81e Update xdrv_121_gpioviewer.ino 2024-01-08 22:16:33 +01:00
gemu 92214ac633
ADD FTP server to filesystem (#20402)
* add ftp lib

* add ftp server
2024-01-08 16:44:49 +01:00
s-hadinger aa1dd392ca
Add Button to dynamically load GPIO Viewer with Berry backend (#20424) 2024-01-08 09:30:18 +01:00
Theo Arends d51340961f Rename "Consoles" to "Tools" 2024-01-08 09:29:02 +01:00
Theo Arends 5c521d300a Add gpioviewer startup delay 2024-01-07 18:10:30 +01:00
Theo Arends 82313c65b7 Add GPIO Viewer button 2024-01-07 16:06:31 +01:00
Theo Arends 0d300aebff Update GPIOViewer
- Add ESP8266 PWM state logging
- Add ADC state functions
2024-01-07 15:10:19 +01:00
s-hadinger bd9a99caff
Berry `gpio.get_pin_type` and `gpio.ger_pin_type_index` (#20415) 2024-01-06 22:20:22 +01:00
Theo Arends ec75462905 Minor fixes 2024-01-06 21:57:09 +01:00
Theo Arends 8e06dcdcc3 Revert "Minor fixes"
This reverts commit aea3789f40.
2024-01-06 21:49:55 +01:00
Theo Arends aea3789f40 Minor fixes 2024-01-06 21:46:37 +01:00
Theo Arends 11da340c62 Revert "Minor fixes"
This reverts commit cee219a55f.
2024-01-06 21:35:08 +01:00
Theo Arends 4e361538bc Merge branch 'development' of https://github.com/arendst/Tasmota into development 2024-01-06 21:34:19 +01:00
Theo Arends cee219a55f Minor fixes 2024-01-06 21:34:15 +01:00
s-hadinger 324689ee53
Berry `gpio.read_pwm` and `gpio.read_pwm_resolution` (#20414) 2024-01-06 21:22:45 +01:00
Theo Arends 2f184b394f Add GPIO Viewer to see realtime GPIO states. Enable with define USE_GPIO_VIEWER 2024-01-06 17:54:23 +01:00
s-hadinger ea6b191378
Berry add `tasmota.urlbecload(url:string) -> bool` (#20412) 2024-01-06 17:32:50 +01:00
s-hadinger 15b40801d4
Fixes for tcpasync (#20411) 2024-01-06 17:03:51 +01:00
s-hadinger af2b90caac
Berry add support for `tcpclientasync` in `tcpserver` (#20401) 2024-01-05 09:54:18 +01:00
gemu 9194ac6c94
max variables > 256 (#20358) 2023-12-30 13:20:33 +01:00
David Gwynne de0c39582f
don't send commands to the AC while reading data from the AC. (#20352)
on some units it can take around 250ms to reply to a request, by which
time we're shoving another command to the unit. if this happens, the
unit gives up and starts replying to the new command, which can again
take 250ms. in this situation effectively nothing gets through.

avoid this by checking if we're in the parser state machine. this also
gives us timeout handling.

tested on 4 different AC units. one which was unusable before is now
functioning as expected, and the other 3 appear just as functional as
they were before.
2023-12-30 09:14:56 +01:00
Theo Arends 6d94d9e766 Cleanup 2023-12-28 17:53:21 +01:00
Theo Arends d5a4f8441b Fix Berry claiming UART0 if needed (#20324) 2023-12-28 17:25:01 +01:00
Jason2866 21de682f58
Fix compile (#20329) 2023-12-28 13:48:27 +01:00
Theo Arends 21c7edcb50 Add display of active drivers using command ``status 4`` 2023-12-27 22:03:56 +01:00
Theo Arends c744612a29 Fix scripter buffer overflow (#20303) 2023-12-26 14:22:47 +01:00
smhc b7b83eaaaa
Only reduce sleep for lights if necessary (#20146)
Co-authored-by: Shane Hird <shane@email.com>
2023-12-26 12:41:55 +01:00
Theo Arends 77a58a3642 Fix domoticz topic edge case 2023-12-25 14:18:59 +01:00
DUPONCHEEL Sébastien d39896f6a2
HDMI CEC: Allow TV device type emulation. (#20310)
The previous check set device type default when HDMIType was set to CEC_Device::CDT_TV.
2023-12-25 12:42:20 +01:00
s-hadinger 2808653ad9
Moved Berry animate to its own `berry_animate` lib (#20309)
* Moved Berry animate to its own `berry_animate` lib

* Fix solidification

* fix compilation

* Fix compilation
2023-12-25 11:01:19 +01:00
UBWH bebffa040f
Update xdrv_58_range_extender.ino (#20295)
RESULT to RgxSSId command is not valid JSON

BEFORE:
RSL: RESULT = {"Rgx":{"Valid":"true","SSId":"solar_5BDBFC","Password":"MyPassword","IPAddress":"192.168.99.1","Subnetmask":"255.255.255.0"}

AFTER
RSL: RESULT = {"Rgx":{"Valid":"true","SSId":"solar_5BDBFC","Password":"MyPassword","IPAddress":"192.168.99.1","Subnetmask":"255.255.255.0"}}

Not extra terminating '}'
2023-12-25 09:13:32 +01:00
DUPONCHEEL Sébastien c13886e00d
HDMI CEC: Fix HDMIType command (#20308)
According to documentation HDMIType is from 0 to 5 but the actual check is lower than 1 and above or equal 6, so the function is never applied. Also note that setting the HDMIType to 0 use the default type value 4, that make impossible the emulation of a TV device.
2023-12-25 08:54:53 +01:00
Theo Arends a6a8214ea7 Fix support for Domoticz floor/room topics
Fix support for Domoticz floor/room topics. Regression from v12.0.1 (#20299)
2023-12-23 16:13:13 +01:00
s-hadinger fbc827d11d
Berry fix leds brightness (#20292) 2023-12-22 18:10:34 +01:00
Christian Baars 0e87096bad
allow Berry fast_loop for BLE module (#20281) 2023-12-21 20:28:08 +01:00
Marcus Better 04a8414217
Fix Tuya v2 module compilation (#20272) 2023-12-20 10:00:52 +01:00
Theo Arends 9e2ae391fc Fix ESP32 piezo ceramic buzzer
Fix ESP32 piezo ceramic buzzer doesn't buzz (#20118)
2023-12-19 15:38:12 +01:00
Theo Arends f65ae0694b Fix XSS phase 1 2023-12-18 12:31:14 +01:00
Arne Meeuw 6b35fc8ddb
Add support for CST816S touch interface (#20213)
* Add initial version (prints coordinates)

* Add CST816S_found

* Revert formatting

* Add supported gestures (untested)

* Correct use of enums

* Remove library dependency

* Unification of methods

* Remove redundant variables and format
2023-12-18 11:03:18 +01:00
Barbudor 7c290388d9
Sonoff Basic R4 Magic switch (#20247)
* magic switch take 1

* good to go

* good to go

* final, including in tasmota32c3
2023-12-16 18:23:51 +01:00
s-hadinger 3f4b69f91c
Improve animation (#20246) 2023-12-16 17:26:58 +01:00
s-hadinger c1f8ee5dbb
Refactoring of Berry `animate` module for WS2812 Leds (#20236) 2023-12-14 20:13:17 +01:00
s-hadinger f7cf94b929
Remove Berry `every_200ms` event which didn't work anyways (#20205) 2023-12-11 21:22:20 +01:00
Christian Baars 864a99d887
Berry ULP - API changes for IDF5.x (#20198)
* remove pointless dependencies

* add API changes for IDF5.x
2023-12-09 13:32:02 +01:00
s-hadinger d61adb0b0c
Leds animation refactoring stage 1 (#20197) 2023-12-08 21:13:44 +01:00
Barbudor 73268e4bb6
Fix TUYA state machine (in TUYA v1) (#20110)
* rework state machine

* some comments

* wip

* looks good now

* little updates
2023-12-08 20:33:40 +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 e00d5ff914 Update comments 2023-12-04 12:08:57 +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 70a082c8e5 ESP32 show colorful background if ``WebColor2`` bit0 is not set. Bit0 is default set using #252525 2023-12-03 11:59:16 +01:00
SteWers b4a54ae880
[Thermostat] Simplify code (#20141)
* [Thermostat] Simplify code

Simplify code of PR #20133

* [Thermostat] small code changes

- removed unused const
- replaced constant value
2023-12-03 08:08:24 +01:00
Theo Arends 050fdbf5de Important fix 2023-12-02 17:04:43 +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
stefanbode 45ba50bb2f
scripter compile error fix (#20140)
compile error if rules are disabled fixed
2023-12-01 17:14:09 +01:00
stegerfa a9a734ddba
fixed possible char array overflow (#20133)
* fixed possible char array overflow

the temporary char arrays size was fixed to 4 bytes before.
snprintf was set for the second char, so maximum size must be limited to 4-1, instead of 4 bytes.
to avoid further mistakes usage of a #define
(assuming that flaw made never problems as the number of attached sensors was usually <99)

* fixed possible char array overflow, optimization of preprocessor-constant name

instead using shortname TEMPLEN for the preprocessor-constant using a name specific to the thermostat-function to avoid interference with the rest of the project

* fixed possible char array overflow, no preprocessor constant neccessary

fixed possible char array overflow, without using preprocessor constant
2023-12-01 09:14:42 +01:00
stefanbode 9a010bdf7d
fix on undef TIMERS (#20123)
fix compilation error
2023-11-30 08:54:08 +01:00
stefanbode 47bc321ebb
Fix compile issue with rules and startup procedure of deepsleep (#20122)
* Fix compile issue with rules and startup procedure of deepsleep

* fix

* fix inc with old functionality

fix a side effect with the old behavior
2023-11-29 15:36:43 +01:00
stefanbode d0f47efae5
Integrate TIMERS into Deepsleep (#20117)
* Integrate Timers into Deepsleep

Added new functionality to controll the Deepsleep Wakeup process with TIMERS.

* added 60sec initial runtime
2023-11-28 11:38:46 +01:00
Christian Baars fb51d9df8a
MI32 GUI changes (#20115) 2023-11-27 19:08:44 +01:00
Theo Arends 62afe918f0 Add webquery message when empty response 2023-11-27 15:59:27 +01:00
Theo Arends 07031d5ebf Fix ``WebQuery`` response buffer corruption and format character ``%`` (#20111) 2023-11-27 15:22:30 +01:00
Barbudor 3273aaa9f9
Fix ESP32 webquery response (#20111)
* logging webreponse

* to test

* final

* simple
2023-11-27 12:38:52 +01:00
Theo Arends 01e51b2c9d Fix undocumented use of Energy struct 2023-11-24 16:49:51 +01:00
Theo Arends 2cee622af8 ESP32 remove restart energy logging if no energy monitoring is selected 2023-11-24 16:36:41 +01:00
s-hadinger 1c60527099
Berry `scale_int`, equivalent of `scale_uint` for signed integers (#20090) 2023-11-23 11:31:26 +01:00
Daniel Kucera 7e2fbdea55
tuyamcu: allow sending arbitrary commands (#20077) 2023-11-22 11:37:01 +01:00
Theo Arends 433d69d4bc Fix serial resource checks
Fix serial resource checks (#20053)
2023-11-20 12:35:06 +01:00
SteWers f4ad7586bb
Multilingual fixes (#20064)
* Multilingual fixes

Some fixes for a better user experience matching every language.

* Revert frag mem

Solved problem with regional decimal conversion in language file.
2023-11-20 09:05:40 +01:00
SteWers 040e25a92c
Label of upload button (#20036)
As the label of the upload button is concatenated at runtime, this does not match in all languages. To solve this, there is now a full label text for `Start upgrade` and `Start restore`.
2023-11-17 10:35:29 +01:00
s-hadinger bc8dd8894e
Fix compilation for Audio Core3 ESP32C3 (#20023) 2023-11-14 22:20:26 +01:00
stefanbode dd9e2a7409
regression of MAX_SHUTTERS for stepper motors (#20019)
maximize on 4 stepper shutters due to limits in number of counter
2023-11-14 17:54:01 +01:00
SteWers 52a0d5b365
[Thermostat] Fix JSON index (#20011)
* [Thermostat] Fix JSON index

* Fix index in debug log
2023-11-14 10:00:55 +01:00