Commit Graph

1278 Commits

Author SHA1 Message Date
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
Christian Baars 0b54b7df40
fix compilation without PARTITION_WIZARD (#20009) 2023-11-14 08:52:09 +01:00
Theo Arends 7e384ebff8 Add image name to GUI footer 2023-11-13 14:41:49 +01:00
s-hadinger 65e07e8387
Fix Berry `gpio.dac_voltage()` broken in 13.2.0 (#19997) 2023-11-12 22:17:17 +01:00
Jason2866 44ef425b89
disable warning only for specific compiler version (#19994) 2023-11-12 19:01:41 +01:00
SteWers 64f0520b23
[Thermostat] Change to language files (#19982)
* [Thermostat] Change to language files

* [Thermostat] Gradient display

Enhance display of gradient temperature
2023-11-12 11:26:45 +01:00
s-hadinger de1b5929b8
Partition Wizard can be loaded dynamically (#19980)
* Partition Wizard can be loaded dynamically

* Centralize config

* Don't display duplicate buttons

* Fix test
2023-11-11 23:52:41 +01:00
Christian Baars cf6de0ce31
add AES_CBC to crypto module (#19964) 2023-11-09 14:27:17 +01:00
s-hadinger 9cfe78a8a0
Audio refactoring of DAC (#19939) 2023-11-06 08:52:11 +01:00
s-hadinger 3207d542c1
Fix Zero-Cross Dimmer for ESP32 with Core3 (#19929)
* Fix Zero-Cross Dimmer for ESP32 with Core3

* Remove left-over

* Fix esp8266
2023-11-04 19:19:48 +01:00
s-hadinger fbe31ab294
Fix Core3 warnings when compiling LVGL (#19921) 2023-11-04 12:22:44 +01:00
s-hadinger 46df036b51
Cosmetic changes (#19920) 2023-11-04 11:46:25 +01:00
protectivedad 11e9b7375d
The webserver for the esp32-cam stream doesn't get started automatically. (#19905)
This ensures that it does start when the WcStream (or WcInterrupt) are run.

Co-authored-by: Anthony Sepa <protectivedad@gmail.com>
2023-11-03 16:02:42 +01:00
stefanbode b83516970f
fix #19911 tilt position is not restored with command: shutterposition 0,-45 (#19916)
* fix shutterposition 0,-45 does not keep tilt

allow , on different config settings

* fix shutterposition 0,-45 does not maintain tilt

allow , on different config settings.
2023-11-03 16:01:57 +01:00
gemu 2d05bd2597
add tcp client, fix timer issue (#19914) 2023-11-03 10:39:18 +01:00
stefanbode 2e95f45458
continuous improvement (#19897)
- servo fix on movement during operation. position did not behave as expected if position change before stop
- enhanced minimum change on stepper shutter depending on motordelay
2023-11-01 14:15:52 +01:00
Barbudor f9717ceb7f
fix compile USE_PID (#19890) 2023-10-31 20:42:42 +01:00
stefanbode 24927f17c9
enhancement servo shutter (#19888)
allow on servo also very small changes of position. need to do similar with steppers later
2023-10-31 20:41:41 +01:00
stefanbode 8540ee37fc
fix on servo and ESp32 (#19878)
servo did not react same on ESP32 than ESP8266. Changed to TASMOTA pwmapply  capabilities
2023-10-30 14:48:32 +01:00
anishsane be94a6cac8
Fix for CmndHDMIAddr function. (#19866)
* Fix for CmndHDMIAddr function.
1. Typical values for XdrvMailbox.payload are 0x1000...0x4000. Hence the
   check should be (value > 0).
2. Don't overwrite the user supplied value with value read from the hardware.

* Correct the condition in CEC_Device::OnReady.
We should check for _on_ready_cb before calling _on_ready_cb.
2023-10-29 17:14:44 +01:00
s-hadinger 4f9c7ada04
Fix audio Arduino 3 (#19819) 2023-10-22 21:30:36 +02:00
stefanbode d5f506b1e3
reverted back some function and fix frequency storage (#19791)
* optimize disc write delay during shutter movement

changed to dynamic write delay to ensure no disc write on multiple shutter movement with stepper shutters.

* optimize disc write delay

ensure disc write will be postponed until all shutters stopped

* reverted back to simple version

* removed duplicate obsolete compiler options
2023-10-18 23:41:52 +02:00
stefanbode 2daaa367ff
stepper shutter channel fix (#19784) 2023-10-18 11:29:35 +02:00
s-hadinger 82858616f6
Zigbee fix timezone when device reads LocalTime attribute (#19772) 2023-10-17 09:02:14 +02:00
Norbert a04995a3f4
Update xdrv_63_modbus_bridge.ino, brackets not needed. (#19759) 2023-10-16 09:42:55 +02:00
JeroenSt 91ba05ac3b
ModbusBridge write memleak fix (19733) (#19758)
Co-authored-by: JeroenSt <nospam@nospam.org>
2023-10-16 08:26:26 +02:00
s-hadinger d3784a26ab
Audio Core3 compilation for ESP32C3 (#19755) 2023-10-15 22:46:01 +02:00
stefanbode 124fbf8dcb
fix shutterfrequency change on mutiple channels (#19737)
* fix shutterfrequency change on mutiple channels

* LEDC channel management for stepper shutter

LEDC channels dynamically assigned to ensure up to 16 shutters can be defined. Number of simultaneous moving shutters is limited by number of LEDC channels.

* bugfix  >=
2023-10-15 18:40:26 +02:00
s-hadinger 16307bc4b8
More audio refactoring for core3 (#19749) 2023-10-15 11:22:20 +02:00
Jason2866 2950de0016
rm WifiClientSecure 2023-10-13 16:57:01 +02:00
Theo Arends 5cee525d02 Add Active Power Total
Add Active Power Total if multiple phases AND both positive and negative values (#19141)
2023-10-13 13:56:04 +02:00
Jason2866 a3dcbc6661
Remove `WiFiClientSecure` (#19725)
* Update HttpClientLight.cpp
* Update HttpClientLight.h
* Update Powerwall.h
* Update xdrv_10_scripter.ino
2023-10-12 20:10:16 +02:00
stefanbode dade00bf59
Fix shutterfrequency esp32 (#19717) 2023-10-11 17:12:07 +02:00
Theo Arends 39e0cf574d Refactor AP1 information 2023-10-09 11:33:24 +02:00
SteWers 6bec09b23f
[WebUI] WiFi Information (#19705)
* [WebUI] WiFi Information

Structured and more infos on WebUI Information page

* [WebUI] WiFi Info multiple lines

Divide one long line into multiple short lines
2023-10-09 08:39:12 +02:00
chefpro 9fbb4a8b0b
Fix modbus receive handling for float types (#19697)
Co-authored-by: Peter Rustler <peter@rustlerit.de>
2023-10-08 13:14:53 +02:00
s-hadinger 8c6788c6bc
Audio exclusive mode (#19698) 2023-10-07 22:11:37 +02:00
s-hadinger bf9c5b86c6
Remove warnings when compiling Audio with Arduino 3 (#19687) 2023-10-06 19:47:10 +02:00
Theo Arends 74bcbd898e Fix compilation when webserver disabled 2023-10-06 12:17:37 +02:00
Theo Arends 21ac018d70 Fix compile error 2023-10-06 11:23:58 +02:00
s-hadinger 11aad19800
Audio support for Microphone + Berry (#19677) 2023-10-05 21:47:07 +02:00
s-hadinger 473a8ee999
Audio refactoring, filters and I2SConfig (#19662) 2023-10-03 22:39:02 +02:00
s-hadinger e32c39f21d
Fix access to version from Berry 2023-10-03 19:21:47 +02:00
s-hadinger 77cba731b9
Partition_Wizard compatible with grow on mount (#19645) 2023-10-02 23:32:55 +02:00
s-hadinger 795a194d65
Audio prepare for Arduino3 (#19637) 2023-10-02 09:18:53 +02:00
stefanbode 540acdc638
smaller fixes (#19621)
* position report during moverment

during moving the teleperiod will now report the actual position

* fix error on inverted shutter
2023-09-29 17:46:41 +02:00
Barbudor 335e18e8cb
Allow webbutton up to 32 (#19580)
* Allow webbutton up to 32

* use named const
2023-09-29 09:56:52 +02:00
gemu 3bcdf9487d
fix compile error with new email lib (#19608) 2023-09-27 18:36:38 +02:00
stefanbode 955d2d86dd
fix JSON Bug (#19607) 2023-09-27 16:05:32 +02:00
s-hadinger 31e56903c5
Audio refactoring and fixes (#19594) 2023-09-25 23:31:32 +02:00
stefanbode 0f6b59f67e
fix #16560 (#19589)
shutter reacted on QUAD press with HOLD event. Fixed
2023-09-25 09:25:45 +02:00
s-hadinger 74900edc96
Audio change of configuration file format (#19585) 2023-09-24 18:59:43 +02:00
Barbudor 0d7c2dee72
support https URL (#19582) 2023-09-24 15:39:20 +02:00
s-hadinger 81d287a3b0
Berry fix audio MP3 (#19578) 2023-09-23 12:23:51 +02:00
s-hadinger 375c825d32
More cleaning of audio for ESP32 (#19577) 2023-09-23 11:25:58 +02:00
stefanbode 7a75eb7021
Improvement in shuttersetup (#19565)
* Improvement in shuttersetup

- reduce call of energy to 10x a sec.
- stop detection more rigid to avoid wrong messages
- more accurate calculation of duration

* fix energy hickup on autosetup
2023-09-22 08:38:01 +02:00
s-hadinger 761ddaa57b
Berry counter 0-base (#19561) 2023-09-21 09:42:28 +02:00
s-hadinger 7de25acac0
Minor refactoring of audio code for Arduino3 (#19559) 2023-09-21 09:00:28 +02:00
s-hadinger fc513af351
Berry counter (#19558)
* Berry read and write Counters

* rename counter
2023-09-20 22:28:40 +02:00
s-hadinger ddeb380a19
I2S improvements to MP3 play (#19547) 2023-09-18 22:49:49 +02:00
Christian Baars d6a9eaf8aa
Preps for IDF5.1: microphone/input for i2s audio (#19544) 2023-09-18 20:39:15 +02:00
s-hadinger 2d0339e8bf
Fix IR compilation for ESP32 with Arduino3 (#19537) 2023-09-17 21:12:36 +02:00
s-hadinger 00bd97fdc7
Matter virtual lights (#19511) 2023-09-13 22:49:46 +02:00
gemu cb4671ee88
fix hardware serial port swap on ESP8266 (#19505) 2023-09-13 09:09:01 +02:00
Paul Blacknell 728b1b2d36
Update xdrv_29_deepsleep.ino (#19492) 2023-09-10 22:35:54 +02:00
Theo Arends 0e6a012499 Fix possible MQTT disconnect exception 2023-09-09 23:30:55 +02:00
Theo Arends f9fd813842 Fix core 2.0.12 exception 2023-09-09 23:04:08 +02:00
s-hadinger 4c6ff44e42
Zigbee fix warnings with Arduino3 (#19486) 2023-09-09 15:27:16 +02:00
s-hadinger f1bd9446d5
Matter events phase 1 (#19484) 2023-09-09 14:50:40 +02:00
s-hadinger 4100682297
Fix TLS by removing redundant BearSSL code from libmail (#19472) 2023-09-06 20:12:59 +02:00
stefanbode f7775b5194
cosmetic changes only (#19468)
- reorder functions alphabetically
- reformat equations for better reading following guidelines
- adding comment for understanding
2023-09-06 16:52:40 +02:00
s-hadinger f4bc7c34c6
Support for IPv6 link-local zones for esp-idf 5.1 (#19469) 2023-09-06 14:48:12 +02:00
stefanbode 3cb63bcb67
Enable multipress events on buttons (#19465) 2023-09-06 09:37:29 +02:00
s-hadinger c2f8821b2f
`Sendmail` upgraded to ESP-Mail-Client v3.4.9 from v1.2.0, using BearSSL instead of MbedTLS (#19460)
* `Sendmail` upgraded to ESP-Mail-Client v3.4.9 from v1.2.0, using BearSSL instead of MbedTLS

* Fix compilation on ESP8266

* Fix compilation

* fix compilation
2023-09-04 23:00:37 +02:00
stefanbode 1ea12583d1
Fix migration error to filesystem settings (#19454) 2023-09-04 21:36:45 +02:00
s-hadinger c6938e2048
Reduce IRAM consumption of HDMI CEC to 1453 bytes (#19452)
* Reduce IRAM consumption of HDMI CEC to 1453 bytes

* Add changelog
2023-09-03 23:15:33 +02:00
s-hadinger bb4d99114a
Berry move mapping from C++ to C (#19450) 2023-09-03 22:50:03 +02:00
s-hadinger fe0423c6cd
Berry cleaned udp class (#19449) 2023-09-03 21:49:35 +02:00
s-hadinger 4cb8b987a4
Berry move solidified code to C (#19446) 2023-09-03 18:30:22 +02:00
Christian Baars 4f6afbf849
all output parts for I2S and IDF5.1 (#19440) 2023-09-02 22:07:20 +02:00
s-hadinger f4b3574ed4
Berry fast_loop is now called every 5ms whatever the Sleep value (#19436) 2023-09-02 11:10:50 +02:00
s-hadinger f7c4c16a9c
Support for HDMI CEC protocol (#19434) 2023-09-01 21:46:18 +02:00
Theo Arends 48cf04db3a Fixed PCF8574 mode 1
- Fixed PCF8574 mode 1 with base relays exception 3/28 regression from v12.4.0.4 (#19408)
- Bump version v13.1.0.2
2023-08-31 15:15:18 +02:00
Christian Baars 8e8e019e0f
expected changes for arduino30 (#19421) 2023-08-30 14:17:21 +02:00
Norbert Richter 39083b6add
Fix xdrv_122_file_settings_demo buffer overflow (#19405) 2023-08-29 19:53:40 +02:00
Theo Arends a4cfc414be Final change to GUI twilight 2023-08-29 19:49:20 +02:00
Theo Arends 23d6c0f5d5 Add twilight info to GUI (#19334) 2023-08-27 17:24:33 +02:00
SteWers dd8b85282a
EnergyMargins - always send MQTT telemetry message (#19397) 2023-08-27 10:53:04 +02:00
s-hadinger ab94b16d8d
Fix IRHVAC crash v2 2023-08-26 15:04:08 +02:00
s-hadinger 4ad3070558
Fix crash in IRHVAC (#19389) 2023-08-26 10:17:53 +02:00
Theo Arends 7f24d2027f Fix rotary edge cases (#19164) 2023-08-25 17:06:27 +02:00
Theo Arends 9b6efc674d Fix compilation 2023-08-24 15:17:04 +02:00
stefanbode d1e85635e3
fix inverted shutter inconsistencies (#19374)
* inverted shutter fix on overflow

* fix inverted_shutter > 9

fix on inverted shutter at esp32.
fix tilt behavior on inverted shutter

* fix tilt behavior on inverted shutter
2023-08-24 12:39:42 +02:00
Christian Baars 65a1a4feeb
Neopixel add SPI driver for C2 and some minor updates (#19372) 2023-08-24 10:34:17 +02:00
stefanbode ca14dc5507
Shutter ESP32 fixes (#19362)
* fix esp32 shutter

* fix shutterinvert+shutterbutton
2023-08-22 09:21:30 +02:00
btsimonh c9b5e5ab1f
Add new webcam driver over latest dev. (#19280)
* Add new webcam driver over latest dev. To use the old one, define USE_WEBCAM_LAGACY

* enable build without RTSP.
check pin_pwdn before using it n 0x105!!!

* more fixes around pwdn.  Make wcresolution -1 set the resoltuion setting to 'disbale cam' value (15).

* fix task stop - wait for debug to leave-> prevents guru. pin task to core 0.

* split motion from other code.  Add USE_WEBCAM_MOTION to control inclusion of motion code (big hit). Change from using USE_WEBCAM_LEGACY to USE_WEBCAM_V2

* logging minimisation - behind WEBCAM_DEV_DEBUG
2023-08-22 08:24:05 +02:00
Theo Arends dd877972be Phase 1 support C2/C6 2023-08-21 17:10:06 +02:00
Theo Arends 37a527696a Phase 1 support C2/C6 2023-08-21 16:18:21 +02:00
stefanbode 7927c989c4
fix shutterinvert (#19341)
* fix shutterinvert

* fix shutterinvert
2023-08-18 09:02:17 +02:00
Theo Arends b8804cf2a8 Add variables to rules
Add variables ``%power<1..28>%`` and  ``%switch<1..28>%`` to rules (#19331)
2023-08-17 15:34:13 +02:00
Paul Blacknell aa097e9034
add: shutdown command for PID controller (#19318) 2023-08-16 11:17:54 +02:00
Paul Blacknell be88e701d9
Add commands to allow setting of timeprop parameters (#19310)
* add: commands to set timeprop settings

* Update my_user_config.h

* fix: properly generated json response to commands
2023-08-15 09:43:55 +02:00
Christian Baars b5cc48dd64
ESP32: pass flashmode at build time to macro definition (#19299)
* pass flashmode at build time to macro definition

* fix 8266 builds
2023-08-12 11:31:06 +02:00
Paul Blacknell 9eb184c30e
Improvements to PID controller driver (#19285)
* add: update DEBUG_THERMOSTAT to only control the virtual switch

Also, debug output is still generated but end user can control this debug level 3

* add: debug output of main controller parameters when thermostat enabled

Also, add units for debug outputs added to make them more intelligible

* Update xdrv_39_thermostat.ino

* add: debug message when sensor is detected as not alive

fix: display thermostat number in debug messages

* add: log message prefix string for thermostat

* Update xdrv_39_thermostat.ino

fix: typos in comments
add: debug messages

* add: debug prefix for thermostat

* add: debug prefix added to output lines

* fix: comment typos and small grammatical changes for clarity

* add: debug prefix 'THE' added to debug output

* add:  display PID status and key info on web output

* fix: remove extraneous comments that included unused code fragments

* add: local sensor handling improvements

add: define a local sensor name
add: define the local sensor measurement parameter
add: limit sensor not seen error message to every 60 seconds to avoid flooding the logs
add: include interval since which sensor data was last updated
fix: properly update the maximum interval time so missing sensor data is properly alerted

* Update xdrv_49_pid.ino
2023-08-10 16:20:06 +02:00
Paul Blacknell c3fadde3e8
Improvements to thermostat debug output (#19279)
* add: update DEBUG_THERMOSTAT to only control the virtual switch

Also, debug output is still generated but end user can control this debug level 3

* add: debug output of main controller parameters when thermostat enabled

Also, add units for debug outputs added to make them more intelligible

* Update xdrv_39_thermostat.ino

* add: debug message when sensor is detected as not alive

fix: display thermostat number in debug messages

* add: log message prefix string for thermostat

* Update xdrv_39_thermostat.ino

fix: typos in comments
add: debug messages

* add: debug prefix for thermostat

* add: debug prefix added to output lines

* fix: comment typos and small grammatical changes for clarity

* add: debug prefix 'THE' added to debug output
2023-08-08 10:55:05 +02:00
Christian Baars 76aa6747a5
more idf5.1 preps: Berry SPI (#19273) 2023-08-06 21:10:36 +02:00
s-hadinger 0b3d6fd146
Prepare for Arduino v3 / esp-idf v5 2nd batch (#19265) 2023-08-05 20:34:24 +02:00
s-hadinger 5c8c7cdfca
Prepare for Arduino v3 / esp-idf v5 (#19264) 2023-08-05 15:11:10 +02:00
stefanbode 959d105413
Change shutterbutton hold behavior with grouptopic (#19263)
* skip stop on hold if grouptopic

If shutterbutton is defined with a grouptopic send on HOLD, there is no stop on releasing the button. All shutters will move to defined position

* do not stop on hold release if group submitt

If mqtt broadcast is defined on hold then release the hold button will not anymore stop the local shutter. All shutter will move to defined position
2023-08-05 14:51:56 +02:00
Theo Arends 7c3c3855c4 Fix console Firefox layout 2023-08-05 12:35:03 +02:00
Theo Arends fc798540b7 Fix console min height 2023-08-05 11:56:06 +02:00
s-hadinger 362326f004
Zigbee Berry minor fix and cleaning (#19257)
* Zigbee Berry minor fix and cleaning

* Fix compilation
2023-08-05 09:50:39 +02:00
Theo Arends e2c79b45e4 Save some more code bytes 2023-08-04 17:24:05 +02:00
Theo Arends 7736ba8af1 Change console height
Change console height from default 318 pixels to viewport (#19241)
2023-08-04 16:11:58 +02:00
stefanbode 6572f0ed39
Fixing SHUTTERINVERT issues (#19243)
* fix wrong inverted shutter

* fix inverted shutter for esp32
2023-08-03 11:55:20 +02:00
s-hadinger df50a56c25
Fade would fail when the difference between start and target would be too small (#19246) 2023-08-02 17:48:12 +02:00
stefanbode 355b1e3b74
unsigned overflow fixed (#19221)
fixed overflow on negative value with dimmer 100%
2023-07-30 15:01:21 +02:00
msedv fb45e73384
Four files which used #ifdef EPS8266 instead of #ifdef ESP8266 - which e.g. broke the MFRC522 functionality between 12.5 and 13.x. (#19209) 2023-07-29 16:50:27 +02:00
s-hadinger f2ab3b36a9
Zigbee decode Aqara 0000/FF01 attribute 03 as Temperature (#19210)
* Zigbee decode Aqara 0000/FF01 attribute 03 as Temperature

* Changed to AqaraTemperature
2023-07-29 14:19:15 +02:00
stefanbode de3b0a4b00
ensure minimum interrupt time (#19211)
prevent interrupts <30 micro seconds because sometimes see crashes on esp8266.
esp32 stop of interrupt >30microseconds and < 105microseconds
2023-07-29 14:15:00 +02:00
s-hadinger 11f056040e
Make TCPStart ip filter more IPv6 friendly (#19199) 2023-07-26 22:52:48 +02:00
s-hadinger 1a91dc441b
Berry improve tasmota.scale_uint() (#19197) 2023-07-26 22:31:22 +02:00
s-hadinger 9f16f09f29
Berry `mqtt.publish` now distinguishes between `string` and `bytes` (#19196) 2023-07-26 19:54:14 +02:00
Theo Arends 0ddcea9905 Add alternative for PCA9685
Add alternative for PCA9685 as define PCA9685_V2 (#18805)
2023-07-24 15:11:20 +02:00
gemu 994c105bda
fix empty line problem (#19171) 2023-07-23 11:55:01 +02:00
s-hadinger 6d3aedcafe
Berry SK6812_GRBW crash (#19166) 2023-07-22 21:51:37 +02:00
Theo Arends 973ce106e7 Fix compilation (#19134) 2023-07-22 11:28:23 +02:00
Theo Arends b149443691 Fix default battery level
- Fix default battery level (#19160)
- Bump version to v13.0.0.3
2023-07-21 14:35:22 +02:00
s-hadinger 758b0237b4
Matter latency improvement for single attribute reads and single commands (#19158) 2023-07-20 21:26:55 +02:00
stefanbode d1a4296867
New DEEPSLEEP topic for HA + Battery Level % support (#19134)
* New LWT on deepsleep

To allow better integration into HA LWT topic will report details of sleep status:
16:54:04.388 MQT: hm/tele/ESP_3284D1/LWT =
{"Sleep":{"Time":"2023-07-17T16:55:03","Sleep":1689612844,"Wakeup":1689612903}}

* Revert LWT back to non JSON

Send DeelSleep on LWT
Send Deepsleep parameters on topic DeepSleep

* Setting default for batteryLevel

* Enable BatteryPercentSet

Changing the battery level e.g. by rule

* Added Battery % to status message

* added battery_level_percent

* Added battery % support in STATE message

* Enable setting battery level

101 is reserved for power-plug. No battery Level reported

* Setting default for battery Level

101 is reserved for power plug
0..100 normal battery values

* Revert back LWT to Offline

Removed "DeepSleep" LWT status until further decision is made. Current implementation is technical sufficient for HA to detect a battery powered device

* Added discovery message after deepsleep change

* Added discovery for battery and deepsleep
2023-07-20 09:51:08 +02:00
s-hadinger 3da5124348
Berry add AES CCM decrypting in a single call to avoid any object allocation (#19153) 2023-07-19 21:15:08 +02:00
s-hadinger 2a3690b866
Berry `tasmota.loglevel()` and `tasmota.rtc_utc()` for faster performance (#19152) 2023-07-19 20:58:50 +02:00
s-hadinger ada754c582
Berry add `energy.update_total()` to call `EnergyUpdateTotal()` from energy driver (#19117) 2023-07-15 17:06:10 +02:00
stefanbode ebca2f0a07
Zero-Cross Dimmer fixes (#19109)
* Fix Zero-Cross flickering on Savedata

* Fix reboot on DIMMER usage with Zero-Cross

* Fix Flickering on dimmer 0
2023-07-14 09:10:20 +02:00
Theo Arends 5b6a25a7a0 Fix driver config backup and restore
Fix driver config backup and restore (#18295)
2023-07-12 10:52:58 +02:00
Theo Arends 889e6ea54d Fix driver config restore 2023-07-11 16:12:04 +02:00
Theo Arends 258976c014 Verify correct functionality 2023-07-10 18:14:23 +02:00
Theo Arends 43bc81010f Configuration file save and restore .xdrvsetXXX
Configuration file save and restore now backup and restore ``.xdrvsetXXX`` files too (#18295)
2023-07-10 16:03:32 +02:00
btsimonh b1cc87d24f
File UI changes (#19014)
* Remove recursion into folders on Manage Files.  May be enabled with UFILESYS_RECURSEFOLDERS_GUI.  On Edit of a file, Save and Magane btuttons return to the folder containgint the file being edited.  On delete file, UI returns to the folder that the deleted file was in.

* Make newfile put in in the current folder, and return to current folder on save of manage button.

* Add folderOnly and FileOnly functions to reduce code duplication.
Enable folder delete.
Enable folder listing to be aborted (x in browser)
Disbale ESP32 Download Task.  Needs attention.
Allow folder create from newfile name.
2023-07-10 10:27:20 +02:00
Theo Arends f726c904ab Enable ESP32 shutter driver
Enable ESP32 shutter driver (#18295)
2023-07-08 17:21:06 +02:00
stefanbode 8ce7cb4ccd
Enhance ZC-Dimmer for falling and leading edge dimmer (#19054)
* Update tasmota_types.h

* Update xdrv_68_zerocrossDimmer.ino
2023-07-07 19:50:36 +02:00
s-hadinger 57c4825ccd
`BrRestart` now supports web handlers to work after Berry restart (#19057) 2023-07-06 21:37:46 +02:00
xsp1989 862edddb56
Fix BUG: Zigbee devices cannot be added through routing nodes (#19036) 2023-07-06 21:10:57 +02:00
Theo Arends fc9065d4c8 Fix miel_hvac
Fix miel_hvac (#18923)
2023-07-03 11:55:21 +02:00
s-hadinger d72f3b9978
Command ``BrRestart`` to restart the Berry VM (experimental) (#19003)
* Command ``BrRestart`` to restart the Berry VM (experimental)

* Add web button for Berry Restart
2023-07-02 21:52:01 +02:00
Theo Arends 85aed3a17d Remove phase_count_virtual 2023-07-01 14:31:03 +02:00
Theo Arends 6dd8aabeef Cleanup scripter logging 2023-07-01 14:04:27 +02:00
Theo Arends 3edb5bb096 Move SD card init up
Move SD card init up (#18934)
2023-07-01 12:48:33 +02:00
Jacek Ziółkowski 2705374160
add Energy.phase_count_virtual to berry energy module (#19004)
* add Energy.phase_count_virtual to berry energy module

* Update xdrv_52_3_berry_energy.ino

* Update xdrv_52_3_berry_energy.ino
2023-06-30 22:19:59 +02:00
Theo Arends 1e3b41dd2d Fix PCF8574 mode2 init using scripts
Fix PCF8574 mode2 init using scripts (#18934)
2023-06-30 11:37:20 +02:00
Theo Arends 58e13edea0 Change loglevel message 2023-06-30 11:31:59 +02:00
Theo Arends ca452c5e43 Add Energy->phase_count_virtual 2023-06-30 11:14:37 +02:00
jonschz a51096e400
update light when `VirtualCT` is invoked (#18972)
Co-authored-by: jonschz <jonschz@users.noreply.github.com>
2023-06-27 14:23:44 +02:00
Paul Blacknell 7892a38795
add HybridControllerPhase to json payload (#18842) 2023-06-26 21:56:07 +02:00
gemu 3642d8ef37
fixes TS_FLOAT (#18961) 2023-06-25 12:08:42 +02:00
s-hadinger 36de007909
Berry replace `string.format`with `format` (#18945)
* Berry replace `string.format`with `format`

* remove import.string
2023-06-23 18:33:31 +02:00
Norbert 04521e5542
Change format of KNX Group address (#18928)
"%d.%d.%d" -> "%d/%d/%d"

Co-authored-by: Norbert <Noschvie@users.noreply.github.com>
2023-06-22 21:56:55 +02:00
s-hadinger 28861821a6
Zigbee fixed regression with SetOption101 (#18884) 2023-06-14 22:46:18 +02:00
stefanbode 156a3551b0
Repair SHUTTER Shelly 2.5 with manual relay change on switches (#18877)
* Repair manual relay change

* Repair manual relay change
2023-06-14 16:14:10 +02:00
stefanbode 0e3b32e848
Readded up/down/open/close commands (#18864)
* Update xdrv_27_shutter.ino

* fix shutterposition with up/down/open/close
2023-06-12 19:09:19 +02:00
Subhash Chandra 2f616eef2c
make IRHVAC send incremental changes. (#18310)
This change will allow mqtt messages simpler by allowing something like
`publish cmnd/ir-bridge/IRHVAC {"Power": "On"}`.
The simpler format is required for working with mqtt clients like
iotMQTTPanel or similar on android.

Limitations:
- Requires full message be sent at-least once. I work around this with
   a `system#boot` rule
- Gets messy with multiple devices. I have only one AC per room, and
  this doesn't doesn't interfere with other IR devices.

TODO:
- [ ] Change the build flag `INCREMENTAL_IRAC`to a `SetOption`
- [ ] Persist `irac_prev_state` across reboots.
- [ ] Support multiple devices.
2023-06-10 14:53:02 +02:00
btsimonh 63cc575c8b
Berry Webclient: Change StreamBytes to StreamBeBytesWriter, and improve wc_getbytes (#18837)
This reduces allocation to a single allocaiton, but also theroetically allows the Bytes object to grow if content-length was unset.

(cherry picked from commit 936477f5977dd1a4f899498cc7cc0baf05b34a89)
2023-06-10 11:28:31 +02:00
Barbudor 6aed929e17
fix #18817 http response for status with retain (#18819)
* fix http response for status with retain

* take 2

* add a failsafe when JSONlen reach zero
2023-06-09 07:59:24 +00:00
btsimonh fc92dc0995
Add wcclient.get_bytes() to Berry (#18829)
(cherry picked from commit 5903b21448a3f088b12bd47a04996ff84e467a3a)
2023-06-09 08:56:05 +02:00
blakadder 676165f3f6
better way to support LSBJ (#18827) 2023-06-08 20:39:02 +02:00
blakadder ae67c6cfa1
Add support for INMP441 MEMS microphone (#18823)
* Add INMP441 MEMS mic support

* add I2S audio defines as preview
2023-06-08 16:24:44 +02:00
blakadder 5a8f13d57f
Pdm_mic (#18807)
* add I2S LSB flag

* add support for PDM microphones
2023-06-07 12:34:44 +02:00
blakadder 24233924c5
add I2S LSB flag (#18793) 2023-06-04 23:01:46 +02:00
s-hadinger f8df9e5f00
Berry `webclient.url_encode()` is now a static class method, no change required to existing code (#18775) 2023-06-02 13:29:57 +02:00
jonschz 9d57a19be3
Fix interaction of `SO92`, `VirtualCT`, and `RGBWWTable` (#18768)
* remove unused variable

* Relocate SO92 implementation
This way, SO92 does not ignore SO106

* Relocate RGBWWTable implementation
This fixes a bug related to RGBWWTable and SO92.
Also, the code is tidier this way

* Cleanup: Reduce code duplication

* more consistent behaviour for SO92 and free_cw

---------

Co-authored-by: jonschz <jonschz@users.noreply.github.com>
2023-06-01 22:12:57 +02:00
s-hadinger b9d855ef79
Berry RS256 crypto algorithm (RSASSA-MCKS1_v1-5 with SHA256) used for JWT (#18763) 2023-06-01 10:02:23 +02:00
s-hadinger 3c75bc92a2
Zigbee Berry mapping fix attributes (#18747) 2023-05-29 23:05:45 +02:00
Theo Arends 07b7a7ee9a Fix initial ESP32 Energy kWh total time 2023-05-29 16:19:55 +02:00
s-hadinger fe570a1b26
Matter Border Router for ESP8266 (experimental) (#18734) 2023-05-29 10:40:24 +02:00
Theo Arends d91e1e8bcc Fix berry scheme select 2023-05-27 12:33:50 +02:00
Theo Arends e87714dbcd Add TODO 2023-05-26 17:51:20 +02:00
Theo Arends fcf3477165 Initial support for WS2812 scheme 14 2023-05-26 17:47:57 +02:00
s-hadinger 6fa22aae6b
adjust neopixel busy time (#18723)
* adjust neopixel busy time

* Adjust time for Berry
2023-05-25 19:21:18 +02:00
Theo Arends e05d75248e Add undocumented feature 2023-05-25 17:13:31 +02:00
Theo Arends d0e88c9dae Fix BusyDelay WS2812 2023-05-24 17:24:48 +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
gemu 242eb3074a
fixes and enhancements (#18718)
* onewire fixes, webui radiobuttons

* fix regression
2023-05-23 11:30:59 +02:00
Theo Arends 22abc8ad99 Fix ESP32 InfluxDb initial connection delays
Fix ESP32 InfluxDb initial connection delays using HTTPClient (#18015)
2023-05-21 16:21:43 +02:00
Theo Arends ae518424bc Add IPv4 DNS lookup to influxdb
- Add IPv4 DNS lookup to influxdb (#18015)
- Add response to influxdb send
2023-05-21 15:34:36 +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
Bernhard Urban-Forster d5ad79985b
haas: sync shutter discovery and fix for more than 4 shutter (#18694)
* discovery: hoist shutter computation out of loop

* haas: sync shutter discovery and fix for more than 4 shutter
2023-05-20 09:06:56 +02:00
Theo Arends 4afcdc11d6 Simplify Berry Mute option 2023-05-19 16:30:48 +02:00
s-hadinger 043ea2986b
Berry `tasmota.wifi()` would wrongly report wifi as up (#18687)
* Berry `tasmota.wifi()` would wrongly report wifi as up

* Fix ESP8266 compile

* Fix display of IP in wifiman

* Improve wifiman IP handling for IPv6
2023-05-18 11:23:09 +02:00
stefanbode 4d131fd543
zero-cross dimmer cleanup (#18674)
removed zero cross dimmer initialize
2023-05-17 08:54:22 +02:00
stefanbode adff41f962
bugfix (#18673) 2023-05-16 22:34:07 +02:00
btsimonh f8b26a90f6
Add mutex to many camera functions. (#18655)
* Add mutex to many camera functions.

* Allow stream to continue after wcinit command (and other commands which reconfigure).

* Adust retries on camera init, specifically log success if it retried.
Shorten messages to save rom.
I have seen fail of 0x103 and 0x20002 succeed on second try.
2023-05-16 12:21:25 +02:00
s-hadinger 81d7785f66
LED PWM ac_dimmer curve was wrongly applied instead of Gamma (#18666) 2023-05-15 22:51:14 +02:00
s-hadinger 98bfc172c1
Zigbee support for air sensors (#18665)
* Zigbee support for air sensors

* ppm
2023-05-15 22:04:13 +02:00
Theo Arends f1a9a0b45b Add support for PCA9557
Add support for PCA9557 8-bit I/O expander (#18632)
2023-05-14 15:08:09 +02:00
Theo Arends 26508e55fc Merge branch 'development' of https://github.com/arendst/Tasmota into development 2023-05-14 14:42:23 +02:00
Theo Arends 7cad4f95b6 Enable I2c on webcam 2023-05-14 14:42:11 +02:00
CCTweaker 885737a1fd
Add support for PCA9557 8-bit IO expander (#18632)
* add PCA9557 driver

* text correction

* added switches and buttons

* update max devices to 8

* cleanup
2023-05-14 14:19:39 +02:00
Jeroen f860722eba
Added Endianess Parameter (#18650)
https://github.com/arendst/Tasmota/discussions/18244

Co-authored-by: JeroenSt <nospam@nospam.org>
2023-05-14 14:18:45 +02:00
Jason2866 0bf27e70fe
fix logic when init cam was successful (#18653) 2023-05-14 14:08:53 +02:00
Theo Arends 86979646ff Energy power delta report delayed
Energy power delta report delayed by two seconds allowing hardware to stabilize (#17751)
2023-05-11 18:10:52 +02:00
Christian Baars 79a826a206
Update xdrv_81_esp32_webcam.ino (#18637) 2023-05-11 09:28:33 +02:00