Commit Graph

354 Commits

Author SHA1 Message Date
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
Theo Arends 512d659d67 Bump version to v13.3.0.1 2023-12-12 16:20:06 +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
Christian Baars 8ee071b8b8
build process: simplify driver selection for BLE (#20138)
Co-authored-by: Radio Loge <radiologe@MacBook-Pro-von-Radio.local>
2023-12-01 14:59:59 +01:00
Theo Arends 5b13ece33e Bump version to v13.2.0.3 2023-12-01 14:10:13 +01:00
Christian Baars fb51d9df8a
MI32 GUI changes (#20115) 2023-11-27 19:08:44 +01:00
Jason2866 7abf8c469b
Align arduino3 firmware build to Tasmota32 (#20015)
* step1 of phase out Arduino30 firmware variant

* rm duplicate Matter define
2023-11-14 17:02:00 +01:00
Norbert Richter c88b773dd3
Neopool enhancements (#19973)
* Add NeoPool sensor delta trigger

* Add NeoPool store settings in unified file system

* Add NeoPool command NPBoost
2023-11-11 11:49:40 +01:00
Christian Baars 06bacdf48b
refactoring, use ringbuffer for server too (#19953) 2023-11-07 20:27:43 +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
Theo Arends f78c195945 Update changelogs - Bump version v13.2.0.2 2023-11-03 14:20:36 +01:00
Jason2866 6a86576dac
add MI env (#19902)
* rename odroid ard3 env to tasmota32-psramfix_ard3
* add inbuilt JTAG debugger
* rm Homekit leftovers
* add MI env
2023-11-02 12:03:14 +01:00
Jason2866 3da80e9144
Enable IR Remote (#19908) 2023-11-02 11:33:07 +01:00
Christian Baars c238d8d4d1
several updates (#19893) 2023-11-01 17:30:22 +01:00
Jason2866 b0d5cffe16
Add flash mode `OPI` to Tasmota info page (#19881)
* add OPI mode to info page
2023-10-30 18:27:25 +01:00
Norbert Richter b65f32c5f3
Neopool enhancements for HA (#19857)
* Add NeoPool hydrolysis setpoint and max

* Add NeoPool command ``NPFiltrationSpeed``

* Change NeoPool topic ``Power`` to ``Powerunit``

* Add ``SO157`` for NeoPool output sensitive data
2023-10-28 14:07:49 +02:00
Theo Arends 84ced0fcab Add ESP32 core v3 auto TasConsole USB or Serial connection by @staars 2023-10-24 16:32:39 +02:00
Barbudor 1d5f55d374
increase MAX_HUE_DEVICES to 32 (#19820) 2023-10-23 09:36:39 +02:00
s-hadinger 356de1a16a
Add command ``GpioRead`` (#19814)
* Add command ``GpioRead``

* change output
2023-10-21 15:56:40 +02:00
Theo Arends 70287d90ad Bump v13.2.0.1 2023-10-19 11:45:12 +02:00
Christian Baars 17143cea44
remove HomeKit remnants from mi32 legacy driver (#19782) 2023-10-17 21:00:46 +02:00
s-hadinger 367768b00e
Re-enable features for Arduino 3 (#19761) 2023-10-16 12:44:05 +02:00
s-hadinger 16307bc4b8
More audio refactoring for core3 (#19749) 2023-10-15 11:22:20 +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
chefpro 32cbd330aa
Add Rescan and RetryRead to onewire scan for bulletproove onewire (#19700)
Co-authored-by: Peter Rustler <peter@rustlerit.de>
2023-10-13 11:29:19 +02:00
nusse f245821828
HC8 sensor support (#19714)
* HC8 sensor support

* HC8: fix json

* HC8: missing languages

* HC8: move macros to proper locations

---------

Co-authored-by: Daniel Maier <daniel.maier@tu-berlin.de>
2023-10-13 11:28:41 +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
Paul Blacknell f41e525f5a
fix: account for MAX17043 alert status on start (#19708) 2023-10-09 16:14:41 +02:00
tyler.li a1cce95c08
MAX31855/MAX6675 sensors driver support up to 6 (#19704)
* Support multiple MAX31855/MAX6675 sensor up to 6

* code format

* revert tasmota_template_legacy.h

* revert original variable names

* revert original variable names

---------

Co-authored-by: arendst <mhtarends@gmail.com>
Co-authored-by: litao07 <litao07@kuaishou.com>
2023-10-09 10:44:24 +02:00
Matteo Albinola 2302d38eb0
Windmeter: add measure interval setting (#19542)
* Add new setting windmeter_measure_intvl and update speed computation

* Ensure windmeter_measure_intvl is not below 1

* Keep same settings order in response messages and add better comments
2023-10-06 10:53:38 +02:00
Theo Arends d96ed15e95 Bump version v3.1.0.4 2023-10-04 13:52:08 +02:00
s-hadinger 473a8ee999
Audio refactoring, filters and I2SConfig (#19662) 2023-10-03 22:39:02 +02:00
Christian Baars f0b7984466
MI32 legacy: add mi32name, small fixes (#19619)
* add mi32name, small fixes

* remove unused variable
2023-09-29 17:47:17 +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
Christoph Friese 5d97a73ddf
Add ENS16x (air quality) and ENS210 (temp & RH) sensors (#19479)
* Add files via upload

Added ENS16x library enabling read-out of ENS160 and ENS161 sensor component (follow-up of CCS811 and iAQcore)
Added ENS210 library to read out ENS210 temperature & humidity sensor

* Add files via upload

Add air quality sensor readout for ENS160 and ENS161 checking two possible I2C addresses (follow up sensor for CCS811 and iAQcore)
Add temperature and humidity sensor readout checking two possible I2C addresses

* Update BUILDS.md

Add USE_ENS16x and USE_ENS210

* Update decode-status.py

Add USE_ENS16x and ENS210

* Update I2CDEVICES.md

Add USE_ENS16x and USE_ENS210

* Update my_user_config.h

Add USE_ENS16x and USE_ENS210

* Update support_features.ino

Add USE_ENS16x and USE_ENS210

* Update tasmota_configurations.h

Add USE_ENS16x and ENS210

* Update tasmota_configurations_ESP32.h

Add USE_ENS16x and USE_ENS210

* Update xsns_111_ens16x.ino

Corrected I2X number

* Update xsns_112_ens210.ino

Corrected I2C number

* Disable USE_ENS16x and USE_ENS210 by default

* Added code size information

* cut down in libs

* optimize tasmota side

* fix ens16x web display

* final fix on alternate addresses

* update code & RAM usage

---------

Co-authored-by: Barbudor <barbudor@barbudor.net>
2023-09-24 18:30:15 +02:00
Theo Arends d595e64600 Bump version v13.1.0.3 2023-09-14 15:49:31 +02:00
s-hadinger 00bd97fdc7
Matter virtual lights (#19511) 2023-09-13 22:49:46 +02:00
Theo Arends 088ac1815b Add BL0942 baudrate selection 2023-09-12 21:48:13 +02:00
Paul Blacknell 4cc81f0dbc
Don't reset the MAX17043 battery fuel gauge after waking from Deep Sleep (#19412)
* fix: don't reset the device when coming out of deep sleep

* fix: move debug log message to inside the device validation

* Update xsns_110_max17043.ino

* add: update global battery percentage when max17043 reports new value
2023-09-09 09:48:30 +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
Theo Arends 62c36a49b3 Add ESP32-C6 GPIO26/28 in template
Add ESP32-C6 GPIO26/28 in template as Red pins used by flash (QIO) but optionally free if DIO/DOUT
2023-08-30 15:14:46 +02:00
Jason2866 4ebcd89b4f
enable more driver for Arduino 3.0 2023-08-29 19:09:06 +02:00
Theo Arends 3ed1bead44 Update decode-status 2023-08-26 16:20:46 +02:00
Andre H. Beckedorf 8683bc7722
Added passive mode for Sen5x sensor (required for Ike@ Vindstyrka) (#19388)
* Added a passive mode in sen5x sensor for parasitic installations. This skips reset & initialization of sensor on startup and reduces the polling to every 10 seconds to not interfere with and confuse the other I2C master on the bus, e.g. Ike* Vindstyrka.

* Removed obsolete updateCount. Cleanup.
2023-08-26 16:14:30 +02:00
s-hadinger 4ad3070558
Fix crash in IRHVAC (#19389) 2023-08-26 10:17:53 +02:00
Christian Baars 65a1a4feeb
Neopixel add SPI driver for C2 and some minor updates (#19372) 2023-08-24 10:34:17 +02:00
Theo Arends 0c3b559630 Phase 1 support C2/C6 2023-08-21 16:00:20 +02:00
Theo Arends d9530f32a6 Sync dev with release v13.1 2023-08-15 10:37:54 +02:00
Paul Blacknell df1a526f02
fix: properly detect device is offline after maximum misses reached (#19298) 2023-08-12 11:32:29 +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 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
Jason2866 7488ed03f0
Tasmota based on Arduino 3.0.0 (#19270) 2023-08-06 13:44:28 +02:00
Theo Arends e52c6105c6 Bump version to v13.0.0.4 2023-08-05 15:41:12 +02:00
Theo Arends 978a21240c Update changelogs 2023-07-24 15:30:48 +02:00
Vincent de Groot bc41500d9c
MAX17043 sensor integration (#18788)
* Restart MAX17043 from the scratch

* revert change

* Changed battery capacity in charge (capacity is the Ah value of the battery, this degrades over time when battery ages)

* merge

* Changing xsns_109 to 110

* fix nr

* removed old xsns109

* Update I2CDEVICES.md

* clean-up usage of Interface
2023-07-22 13:33:47 +02:00
Theo Arends c7a22f175b Update changelogs 2023-07-21 14:55:06 +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
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
Theo Arends 889e6ea54d Fix driver config restore 2023-07-11 16:12:04 +02:00
Theo Arends 05d589f2d7 Set ESP32-C3 max supported ADC channels to 5 2023-07-08 18:04:13 +02:00
Theo Arends ac4c4505a5 Bump version v13.0.0.2
Update changelogs
2023-07-08 17:37:12 +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 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 139ac367f0 Add support for energy dummy relays
Add support for energy dummy relays using SO48
2023-07-01 14:25:05 +02:00
Theo Arends 465ae023ab Update change logs 2023-06-29 14:10:49 +02:00
Andrew Klaus eb655a4a8f
Add support for SGP41 TVOC/NOx Sensor (#18880)
* Initial support for SGP41

* Removing delay() use from SGP4x driver

* Using i18n for TVOC/NOx raw values as well
2023-06-29 09:04:08 +02:00
Theo Arends 0930bbddf5 Fix ESP32 Matter support 2023-06-26 12:38:29 +02:00
Theo Arends d9a66547aa Bump version v13.0.0.1 2023-06-26 11:12:31 +02:00
Jason2866 b419ae3a92
add matter as a default option in most env (#18942) 2023-06-24 11:39:26 +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
Theo Arends 4e7475dbd4 Bump version v12.5.0.4 2023-06-02 10:25:02 +02:00
Jason2866 7b55e1aca2
Make `USE_DISPLAY_MODES1TO5` in firmware `LVGL` possible (#18729)
* Make `USE_DISPLAY_MODES1TO5` in firmware `LVGL` possible
2023-05-27 17:00:14 +02:00
Theo Arends fcf3477165 Initial support for WS2812 scheme 14 2023-05-26 17:47:57 +02:00
Theo Arends e05d75248e Add undocumented feature 2023-05-25 17:13:31 +02:00
Theo Arends 57f85ae478 Optimize dynamic WiFi power 2023-05-17 10:45:00 +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 7cad4f95b6 Enable I2c on webcam 2023-05-14 14:42:11 +02:00
Jason2866 3c951d7751
fix GT911 crash in LVGL firmware (#18633)
* fix GT911 crash

* remove wrong frag when using GT911
2023-05-10 14:02:51 +02:00
Jason2866 64e844d387
Disable crashing GT911 driver (#18631) 2023-05-10 11:28:59 +02:00
Mateusz Bronk 6a7b2b0c6e
IR: Extended the A/C protocol with Command/iFeel/SensorTemp (#18612)
* IR: Added support for new A/C protocol fields

New fields introduced in IRremoteESP8266 v2.8.5:
1. Command (one of: [Control | Config | iFeel | Timer], default: Control) - allows to set IR command type (e.g. iFeel for no-beep ambient sensor report)
2. iFeel (boolean, default: false) - configures whether iFeel (ambient sensor temp. is used by the A/C unit)
3. SensorTemp - the ambient sensor temperature reading to send

Note:
 - Fan setting via int is now 6-value (breaking change -> 6 is the new max)

* IR A/C: Model now pretty-printed to JSON

Model string is the default (falls back to int if n/a)

* IR A/C: Added separate JSON resp. per command type

* No change for "kControlCommand" (default/legacy).
* SensorReport/Timer/Config commands only contain relevant JSON nodes

Additionally:
 Clock has time semantics (input: minutes, output: HH:MM), except for "config" mode,
 where state.clock is used as ConfigKey and state.sleep is used as ConfigValue.

---------

Co-authored-by: Mateusz Bronk <2566147+mbronk@users.noreply.github.com>
2023-05-09 21:35:56 +02:00
Jason2866 eccc1af0a2
disable SHT pig on i2c / add missing GT911 defines (#18595)
* disable SHT pig on i2c / add missing GT911

* GT911 missing in config
2023-05-07 15:32:15 +02:00
Theo Arends d7b6d72e19 Add support for GM861
- Add support for GM861 1D and 2D bar code reader (#18399)
- Bump version to v12.5.0.2
2023-05-05 16:50:19 +02:00
gemu 687b26ad13
Scripter update (#18578)
* add ds2480b library

* add onewire support

* reset on error

* call to get esp32 HWS

* DS2480 serial invert option
2023-05-05 09:17:17 +02:00
Jeroen 616652ea22
Added support for Dingtian Relay Board v3.6.10 (#18535)
* Added support for Dingtian Relay Board v3.6.10

* Output OE was never initialized

* Removed white spaces trying to fix language builds

* Fix for https://github.com/arendst/Tasmota/pull/18535#pullrequestreview-1406978097

* Fixed language builds

---------

Co-authored-by: JeroenSt <nospam@nospam.org>
2023-05-01 14:51:02 +02:00
Theo Arends f86bc7d8ab Prep GM861 2023-04-27 17:44:33 +02:00
Christian Baars f6763eb37b
Berry: add BLE server/advertiser (#18494) 2023-04-26 08:39:29 +02:00
stefanbode 39abde2583
Worked on ESP32 dimmer with Zero cross (#18481)
* Worked on ESP32 dimmer with Zero cross

Until now the ESP32 does not support zero-cross dimmer. I take a sneak how they did in in ESPhome and adapted the approach to TASMOTA. At the end it works that smooth that likely i will change ESP8266 either so we have a common code. Currently ESP8266 is not touched.
There is a minor issue with savedata == default. When changing the dimmer value the interrupts get stopped during write of the config data to flash.

* ESP8266 Dimmer added

Worked all so well and the code is much smaller. There is no need for reconfiguration on existing users. But there are settings not needed anymore. Will work on the documentation. Anyhow existing installations can upgrade without hickup

* Optimized endpoints at dimmer 0 and 100

* Removed debug stuff

* Fix Issue at dimmer = 0

* Small bugfix

* Final checked Version

* Update xsns_01_counter.ino

* Add missing func

* Update xsns_01_counter.ino

* Moved out of the house of counter and build my own one

* New ZeroCross Driver

* Update xdrv_91_zerocrossDimmer.ino

* evolving

* Delete xdrv_91_zerocrossDimmer.ino

* Add files via upload

* Changed drv number from 1 to 68

* Commit to merge
2023-04-25 13:46:19 +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 05f6bcf211 Bump v12.5.0.1 2023-04-17 10:10:55 +02:00
Theo Arends 1e571e1d14 Update templates 2023-04-15 14:58:21 +02:00
Theo Arends e07efd625f Add support for GDK101 gamma radiation sensor by Petr Novacek (#18390) 2023-04-14 16:50:54 +02:00
Szewcson 4fdd1ad94d
Ftlab gdk101 Gamma Radiation Sensor Module support (#18390)
* Support for GDK101.

* GDK101 driver rework

---------

Co-authored-by: PetrNovacek <39201428+r21m@users.noreply.github.com>
2023-04-14 15:29:00 +02:00
stefanbode 6d9beb5d79
autosetup of shutters for shelly devices (#18393)
* New autocallibration and setup for shelly devices

* setup command
2023-04-12 09:39:48 +02:00
Anton ACE d8bdcebc78
xsns_105_lox_o2: LOX-02 Oxygen sensor support (#18333)
* xsns_105_lox_o2: LOX-02 Oxygen sensor support

* strtof removed, ConvertTemp added
2023-04-06 09:52:15 +02:00
Theo Arends 96e5f0dd38 Version bump v12.4.0.5
- Add Matter support for Light and Relays on ESP32 by Stephan Hadinger (#18320)
2023-04-03 10:06:03 +02:00
Theo Arends b321fab868 Refactor PCF8574 driver 2023-03-27 15:42:40 +02:00
Theo Arends 00c60450c6 Consolidate messages
- Consolidate messages
- Fix sen5x
2023-03-22 13:25:55 +01:00
Theo Arends 6aab3d4c5e Bump version v12.4.0.4
- Add Matter support simple Relay on Apple Homekit by Stephan Hadinger (#18239)
- Bump version v12.4.0.4
2023-03-22 10:39:59 +01:00
Theo Arends 59677d7e4a Consolidate sensor parameters 2023-03-20 17:11:05 +01:00