Commit Graph

306 Commits

Author SHA1 Message Date
Theo Arends 99df8edc2d Fix ESP32 chip version number 2023-10-04 12:47:58 +02:00
Theo Arends 0c3b559630 Phase 1 support C2/C6 2023-08-21 16:00:20 +02:00
s-hadinger 0b3d6fd146
Prepare for Arduino v3 / esp-idf v5 2nd batch (#19265) 2023-08-05 20:34:24 +02:00
Theo Arends 522e6cf234 Implement deepsleep(0)
Implement deepsleep(0) as command ``restart 9`` (#19024)
2023-07-03 21:07:45 +02:00
Theo Arends fc67cca8b4 Add generic SystemWaitIfBusy() to fix WS2812 led flicker
Add generic SystemWaitIfBusy() to fix WS2812 led flicker
2023-05-24 16:21:59 +02:00
stefanbode a76ebaae48
Shutter continuous improvement (#18701)
* Update xdrv_27_esp32_shutter.ino

* Update xdrv_27_shutter.ino

* Update xdrv_01_9_webserver.ino

* Update xdrv_12_discovery.ino

* shutterinvert

removed slider display to driver
fix wrong invert display

* codereduction+refactor slider

removed webui slider into driver
optimized code

* update slide, fix invert shutters

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

* fix on realpercent if inverted shutter

* fix ShutterPercentToRealPosition

fix on inverted shutter

* added shutter to bootloop reset

* bugfix integration

* bugfix
2023-05-21 12:25:11 +02:00
Theo Arends 77103baa0a Add internal support for max log level 2023-05-19 15:20:21 +02:00
Theo Arends 0385204ca7 Add command ``WifiPower 0``
Add command ``WifiPower 0`` to enable dynamic wifi power based on RSSI by @TD-er (#15443)
2023-05-16 18:55:55 +02:00
Theo Arends 53bd49ddcd Remove USE_ARDUINO_OTA from ESP32 2023-04-27 16:35:47 +02:00
Theo Arends 9f77cfd890 Fix single pin latching relay power on state
Fix single pin latching relay power on state (#18386)
2023-04-19 16:17:04 +02:00
Theo Arends 6f6c43a724 Add command ``SetOption152 0/1``
Add command ``SetOption152 0/1`` to select two (default) or one pin bistable relay control (#18386)
2023-04-18 17:16:29 +02:00
Theo Arends 2b89b7a134 Fix init order of device drivers (#18124) 2023-03-11 15:52:02 +01:00
Theo Arends f6827590f3 Prep new energy driver 2023-01-27 15:53:40 +01:00
Theo Arends ae1c38aea8 Removed SetOption177 debugging (#17500) 2023-01-04 15:29:27 +01:00
Theo Arends 1f8a303faf Add SO177 for debugging (#17500) 2022-12-27 17:57:21 +01:00
s-hadinger 9abe7b1af9
Support for IPv6 DNS records (AAAA) and IPv6 ``Ping`` for ESP32 and ESP8266 (#17417) 2022-12-17 10:08:35 +01:00
Stephan Hadinger 4a32623a51 IPv6 improvements 2022-12-10 13:44:16 +01:00
s-hadinger 2a1b900775
IPv6 improvements (#17268)
* IPv6 improvements

* Fix esp8266 compilation

* grrr

* Fix compilation issue

* Fix declaration

* Fix esp32c3
2022-12-04 16:57:34 +01:00
Theo Arends 220a03f043 Add LD2410 debugging info 2022-11-27 12:11:48 +01:00
Theo Arends 4f31e7a1b2 Add command ``SetOption35 0..255``
Add command ``SetOption35 0..255`` to skip number of received messages in Serial Bridge (default 0) (#17140)
2022-11-20 12:52:24 +01:00
Theo Arends 5b1aff5141 Add RTC logging to energy 2022-11-14 17:11:38 +01:00
Theo Arends 13c27194ec TuyaMcu rewrite by btsimonh (#17051) 2022-11-13 12:55:18 +01:00
Theo Arends 4e5193fdad Remove SkipSleep() in favour of FUNC_SLEEP_LOOP 2022-11-12 15:57:46 +01:00
Theo Arends 6f00b455e7 Add serial receive poll during sleep
Add serial receive poll during sleep for tuya and serial bridge
2022-11-11 09:57:00 +01:00
Theo Arends b7f6a7b00a Clean up logging functions 2022-11-11 09:30:31 +01:00
Theo Arends 4e9cfc7629 Add command ``SetOption47 1..255``
Add command ``SetOption47 1..255`` to delay power on relay state in seconds reducing power surge
2022-11-03 17:26:54 +01:00
Theo Arends 0632377192 Fix serial initialization
Fix serial initialization for baudrate and config (#16970)
2022-11-02 11:24:24 +01:00
Theo Arends 90a9ebc3e1 Fix Shelly Pro ethernet stability 2022-10-27 17:52:44 +02:00
Leon Poon 18fdc4a176 support nanos in rtc for sync from ntp
so that all tm1637 6-digit clocks tick simultaneously at real second boundary.
2022-10-17 21:45:29 +08:00
Theo Arends 169e65a922 Add ESP32 non-persistent phy selection 2022-10-15 14:33:21 +02:00
Theo Arends 5cfbbd4302 Add command ``Sunrise 0..3`` to select sunrise dawn angle
- Bump version to v12.1.1.5
- Add command ``Sunrise 0..3`` to select sunrise dawn angle between Normal, Civil, Nautical or Astronomical (#16795)
2022-10-12 11:02:54 +02:00
Theo Arends ba1bf81764 Enlarge USB Serial RxBuffer from 256 to 800 2022-10-10 16:39:31 +02:00
Theo Arends fc86a63417 Fix wifiscan encryption types
Fix wifiscan encryption types (#16141)
2022-08-07 15:52:23 +02:00
Theo Arends 02d7eb1d7d Fix energy values after power cycle
Fix energy values after power cycle (#16118)
2022-08-05 15:25:39 +02:00
Theo Arends 8283cee823 Fix bistable relay support 2022-07-10 12:07:58 +02:00
Theo Arends cd0f9c7360 Revert "Revert "Add better support for bistable (latching) relays""
This reverts commit c6867ddd3d.
2022-07-09 15:55:27 +02:00
Theo Arends c6867ddd3d Revert "Add better support for bistable (latching) relays"
This reverts commit 6031e5df98.
2022-07-09 14:47:36 +02:00
Theo Arends 6031e5df98 Add better support for bistable (latching) relays
Add support for bistable (latching) relays mixed with monostable relays using GPIO Relay_b or Relay_bi
2022-07-09 12:27:59 +02:00
Theo Arends cefe015c68 Bump version to v12.0.2.2
- Add commands to better control global temperature, humidity and pressure
- Command ``GlobalTemp2 1..250`` to select Global Temperature source indexed from teleperiod occurance data (#15834)
- Command ``GlobalHum2 1..250`` to select Global Humidity source indexed from teleperiod occurance data (#15834)
- Command ``GlobalPress2 1..250`` to select Global Pressure source indexed from teleperiod occurance data (#15834)
2022-06-22 23:45:25 +02:00
Theo Arends c988ba1645 Add user control over DNS timeout reducing blocking
Add command ``DnsTimeout 100..20000`` to change default DNS timeout from 1000 msec blocking if no DNS server found
2022-06-19 17:57:43 +02:00
Theo Arends 6a0c4b281e Add RTC time save 2022-06-16 16:15:54 +02:00
Theo Arends 1b701173d0 Rename usb to cdc 2022-06-07 16:37:10 +02:00
Theo Arends 7af1279b55 Add tasmota32s2usb 2022-06-07 12:52:44 +02:00
Theo Arends c08561f67c Bump version to v11.1.0.4
- Restructure tasmota
2022-06-02 14:17:39 +02:00
Paul C Diem 54dfead6d9 Use adjusted bri for LED's after timeout 2022-05-17 08:11:56 -05:00
Theo Arends 865ba51b7a Add command upload 2
Add command upload 2 to upload saveboot binary from production partition
2022-05-11 14:31:39 +02:00
Theo Arends a7e16192e0 Add experimental USB console
- Add experimental USB console for ESP32C3, S2 and S3 using embedded ESp32 USB interface (like lolin C3 mini)
- Enable with define USE_USB_SERIAL_CONSOLE
2022-05-06 14:57:03 +02:00
Stephan Hadinger 43c53838ad Add SDCard SDIO support 2022-04-19 19:17:04 +02:00
Theo Arends 8e0400eba1 Add async interrupt support
- Add async interrupt support
- Add generic GPIO reset
2022-03-07 11:37:48 +01:00
Stephan Hadinger 05ac33c231 Berry bootloop protection 2022-02-14 14:53:42 +01:00
Theo Arends c50fa27af0 Revert versioning
Change from Calendar Versioning (CalVer) back to Semantic Versioning (SemVer) for better major change indication and future support
2022-02-05 15:36:29 +01:00
Theo Arends c47fef51bc Bump version to v2022.1.4 2022-02-04 12:00:53 +01:00
Stephan Hadinger 539c508918 Increase PWM channels to 16 (Esp32 only) 2022-01-27 21:30:05 +01:00
Jason2866 fc48fe1d3b
fix include for HTTPUpdate 2022-01-16 17:58:46 +01:00
Helmut Fischer a7dbee27b8
fix preprocessor directive remarks 2022-01-14 21:47:40 +01:00
Stephan Hadinger 15668fa8e1 Allow Tasmota32 minimal setup 2022-01-10 18:39:42 +01:00
Stephan Hadinger 0fd168c6cf Berry fast loop 2022-01-09 19:22:23 +01:00
Theo Arends d6fc62e376 Add support for Linkind dimmer
Add support for Linkind dimmer as GPIO ``Option A6`` (#14004)
2022-01-07 16:17:53 +01:00
Theo Arends 4c8c8572c5 Bump version to v2022.01.1 2021-12-31 18:23:35 +01:00
Theo Arends 39ec4c6d5d Revert change to fix extra flashwrite before QuickPowerDetection
Revert change to fix extra flashwrite before QuickPowerDetection (#14153)
2021-12-23 12:34:16 +01:00
wir3z b8752b7272 TasmotaSerial:
- Added transmit parity to software TX.  Software RX just consumes in the incoming parity bit with no error checking.
- Fixed issue where Serial.begin for the ESP8266 was not passing the UART SerialConfig compatible values.

support.ino
- Cleanup to use already present ConvertSerialConfig API.

tasmota.ino:
- Force the baudrate + serial config settings after boot.  Previously, the baudrate would change, but any non 8N1 settings were not applied.

xdrv_08_serial_bridge.ino:
- Increased the software serial bridge buffer size and changed type to prevent overflow.
- Added missing serial config settings to the serial begin.  Previously was forcing 8N1.

xdrv_10_scripter.ino
- Cleanup to use already present ConvertSerialConfig API.
2021-12-22 09:23:15 -07:00
Theo Arends 8bad0115b0 Fix ESP32 webcam WDT
Fix ESP32 webcam WDT (#13882)
2021-12-17 18:01:27 +01:00
Paul C Diem 8632f971ec Make sure PWM Dimmer night light stays updated 2021-11-29 14:53:24 -06:00
Stephan Hadinger 5315ccb2c4 OTA over HTTPS 2021-11-23 22:15:08 +01:00
Stephan Hadinger 9fcebb17ed Move LList to its own library 2021-11-06 09:37:40 +01:00
Theo Arends aa79f73aa9 Remove TWDT remnants 2021-11-04 17:41:03 +01:00
Theo Arends 5243b17a1a Add 1 second heartbeat GPIO 2021-11-03 11:58:05 +01:00
Theo Arends 4c65de2561 Fix OTA watchdog caused by TWDTLoop() 2021-10-27 16:22:50 +02:00
Stephan Hadinger f4dc0090b0 Move TWDT watchdog from esp-idf to Tasmota 2021-10-19 21:00:48 +02:00
bkcsfi de554466cc
fix typo in comment
comment didn't match code, I updated the comment to match
2021-10-17 15:25:55 -04:00
Stephan Hadinger 72083d34a7 Reset GPIO16/17 on ESP32 only for non-pico 2021-10-12 10:58:06 +02:00
Stephan Hadinger d527b9042e ESP32 restore GPIO16/17 if no PSRAM was found 2021-10-11 19:36:39 +02:00
Stephan Hadinger a21e4a58fc Berry add `tasmota.global` 2021-09-30 19:51:40 +02:00
Theo Arends 2143491b37 Refactor Serial.swap 2021-09-20 14:31:00 +02:00
Barbudor 4fa80c1609 Serial.swap if TXD/RXD on GPIO13/15 (ESP8266) 2021-09-15 21:02:24 +02:00
Theo Arends c47307bd5e Add optional emergency reset
Add optional emergency reset when Rx is connected to Tx at restart
2021-09-02 12:25:53 +02:00
Stephan Hadinger dcc25cf7e9 Fix compilation for ESP8266 2021-09-01 23:06:39 +02:00
Stephan Hadinger a2fdeff9c5 Fixed crash when PSRAM is absent and ``BOARD_HAS_PSRAM`` set 2021-09-01 22:48:02 +02:00
Theo Arends e039edde33 Enforce valid hostname 2021-07-26 15:10:47 +02:00
Theo Arends 520612b67c Fix discovery fails when using ``%hostname%`` in a topic (#12710) 2021-07-21 11:41:31 +02:00
Theo Arends 153a9a69da
Merge pull request #12690 from Jason2866/New_framework
Updated Arduino ESP32/IDF4.4 framework, LITTLEFS -> LittleFS
2021-07-20 09:21:32 +02:00
Adrian Scillato c73bb9953a
LOG: Increase readability of project name and device name 2021-07-19 14:24:53 -03:00
Jason2866 3ab4a2a3e0
New framework LITTLEFS -> LittleFS 2021-07-18 23:14:10 +02:00
Stephan Hadinger f0f70ce1df Fix compilation for ESP8266 2021-07-18 19:52:50 +02:00
Stephan Hadinger 1682582bea Disable PSRAM on unsupported hardware
Either ESP32 rev1/2 that needs special fixes
`-DHAS_PSRAM_FIX -mfix-esp32-psram-cache-issue -lc-psram-workaround -lm-psram-workaround`
or ESP32-PICO-V3-02 that requires esp-idf 4.4
2021-07-18 19:43:33 +02:00
Theo Arends 5abadbf221 Fix ESP32 do not use chip temperature sensor as global temperature if external temperature sensor is used (#12630) 2021-07-13 16:44:28 +02:00
Theo Arends 58c8841299 Fix TasmotaClient compilation regression 2021-06-13 10:43:10 +02:00
Theo Arends 5e805e0c4a Move Settings from DRAM to heap 2021-06-11 18:14:12 +02:00
Theo Arends 99a8c3d06a Allocate ESP8266 log buffer in iram heap space if available 2021-06-11 16:02:49 +02:00
Theo Arends 446706f16d Prep for larger log buffer 2021-06-09 17:24:28 +02:00
Theo Arends 749093a697 Prep mqtt_data from char to String (prt.3) 2021-06-06 17:26:01 +02:00
Stephan Hadinger 6d54949273 LVGL prepare M5StickC 2021-05-25 18:53:10 +02:00
Theo Arends 77760dc2cc Prep virtual mqtt_data prt2 2021-05-23 16:50:17 +02:00
Theo Arends e2e6184877 Delay HA discovery during PZEM sensor intialization
Delay HA discovery during PZEM sensor intialization (#12076)
2021-05-11 11:01:46 +02:00
Theo Arends 674509a56e Fix teleperiod rule handling regression
Fix teleperiod rule handling regression from v9.3.1.2 (#11851)
2021-04-23 10:59:33 +02:00
Theo Arends 147440fd99 Add command ``Wifi 0/1`` for ESP8266
Add command ``Wifi 0/1`` for ESP8266 to turn wifi Off and On. When wifi is Off it is always returned On after a restart except for a wake-up from deepsleep (#11839)
2021-04-22 18:10:26 +02:00
Theo Arends cd0adfe3e4 Add detected hardware to logging 2021-04-21 11:55:52 +02:00
Jason2866 59294fd55b
Fix compile error
Thx @benzino77 solves #11724 mentioned in #11704
2021-04-14 13:41:10 +02:00
Theo Arends 162e60eb30 Fix migration to higher version (#11640) 2021-04-12 11:49:53 +02:00
Theo Arends 60de9696d8 Refactor backlog nodelay in relation to sleep 2021-04-09 14:00:09 +02:00