From e108ee35809536104429c00449c41caf8db82b38 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Sat, 22 Jan 2022 12:33:02 +0100 Subject: [PATCH] Add command ``SetOption44 1..100`` Add command ``SetOption44 1..100`` to set base tolerance percentage for matching incoming IR messages (default 25, max 100) (#14555) --- CHANGELOG.md | 2 ++ RELEASENOTES.md | 2 ++ tasmota/tasmota.h | 24 +++++++++++++++++++----- 3 files changed, 23 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9e220bf30..53d642111 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,9 +8,11 @@ All notable changes to this project will be documented in this file. - Command ``WebTime ,`` to show part of date and/or time in web gui based on "2017-03-07T11:08:02-07:00" - ESP32 disable serial console when 3 (ESP32) or 2 (Other models) serial interfaces are requested (#14487) - Support for BME688 with latest Bosch-Sensor-API library (#14513) +- Command ``SetOption44 1..100`` to set base tolerance percentage for matching incoming IR messages (default 25, max 100) (#14555) ### Changed - BME68x-Sensor-API library from v3.5.9 to v4.4.7 +- ESP32 core library from v2.0.2 to v2.0.2.1 (#14553) ### Fixed - OneWire-Stickbreaker (DS18x20) library support for ESP32S2 (#14338) diff --git a/RELEASENOTES.md b/RELEASENOTES.md index fc97640a3..9d80e0067 100644 --- a/RELEASENOTES.md +++ b/RELEASENOTES.md @@ -105,6 +105,7 @@ The latter links can be used for OTA upgrades too like ``OtaUrl http://ota.tasmo - Command ``SSerialConfig `` to change Serial Bridge configuration - Command ``WebTime ,`` to show part of date and/or time in web gui based on "2017-03-07T11:08:02-07:00" - Command ``SspmMap 2,1,..`` to map Sonoff SPM scanned module to physical module [#14281](https://github.com/arendst/Tasmota/issues/14281) +- Command ``SetOption44 1..100`` to set base tolerance percentage for matching incoming IR messages (default 25, max 100) [#14555](https://github.com/arendst/Tasmota/issues/14555) - Commands for ESP32 ethernet configuration ``EthIpAddress``, ``EthGateway``, ``EthSubnetmask``, ``EthDnsServer1`` and ``EthDnsServer2`` [#14385](https://github.com/arendst/Tasmota/issues/14385) - Support for Eastron SDM230 modBus energy meter [#13443](https://github.com/arendst/Tasmota/issues/13443) - PWM Dimmer two button support [#13993](https://github.com/arendst/Tasmota/issues/13993) @@ -126,6 +127,7 @@ The latter links can be used for OTA upgrades too like ``OtaUrl http://ota.tasmo ### Breaking Changed ### Changed +- ESP32 core library from v2.0.2 to v2.0.2.1 - PubSubClient library from v2.8.12 to v2.8.13 - TasmotaSerial library from v3.3.0 to v3.4.0 - TasmotaModbus library from v1.2.0 to v3.4.0 diff --git a/tasmota/tasmota.h b/tasmota/tasmota.h index 3b5ea3597..150c6c729 100644 --- a/tasmota/tasmota.h +++ b/tasmota/tasmota.h @@ -318,11 +318,25 @@ enum ButtonStates { PRESSED, NOT_PRESSED }; enum Shortcuts { SC_CLEAR, SC_DEFAULT, SC_USER }; -enum SettingsParamIndex { P_HOLD_TIME, P_MAX_POWER_RETRY, P_BACKLOG_DELAY, P_MDNS_DELAYED_START, P_BOOT_LOOP_OFFSET, P_RGB_REMAP, P_IR_UNKNOW_THRESHOLD, // SetOption32 .. SetOption38 - P_CSE7766_INVALID_POWER, P_HOLD_IGNORE, P_ARP_GRATUITOUS, P_OVER_TEMP, // SetOption39 .. SetOption42 - P_ROTARY_MAX_STEP, P_IR_TOLERANCE, P_ex_TUYA_CURRENT_ID, P_ex_TUYA_POWER_ID, // SetOption43 .. SetOption46 - P_ex_ENERGY_TARIFF1, P_ex_ENERGY_TARIFF2, // SetOption47 .. SetOption48 - P_MAX_PARAM8 }; // Max is PARAM8_SIZE (18) - SetOption32 until SetOption49 +enum SO32_49Index { P_HOLD_TIME, // SetOption32 - (Button/Switch) Key hold time detection in decaseconds (default 40) + P_MAX_POWER_RETRY, // SetOption33 - (Energy) Maximum number of retries before deciding power limit overflow (default 5) + P_BACKLOG_DELAY, // SetOption34 - (Backlog) Minimal delay in milliseconds between executing backlog commands (default 200) + P_MDNS_DELAYED_START, // SetOption35 - (mDNS) Number of seconds before mDNS is started (default 0) - Obsolete + P_BOOT_LOOP_OFFSET, // SetOption36 - (Restart) Number of restarts to start detecting boot loop (default 1) + P_RGB_REMAP, // SetOption37 - (Light) RGB and White channel separation (default 0) + P_IR_UNKNOW_THRESHOLD, // SetOption38 - (IR) Set the smallest sized "UNKNOWN" message packets we actually care about (default 6, max 255) + P_CSE7766_INVALID_POWER, // SetOption39 - (CSE7766) Number of invalid power measurements before declaring it invalid allowing low load measurments (default 128) + P_HOLD_IGNORE, // SetOption40 - (Button/Shutter) Ignore button change in seconds (default 0) + P_ARP_GRATUITOUS, // SetOption41 - (Wifi) Interval in seconds between gratuitous ARP requests (default 60) + P_OVER_TEMP, // SetOption42 - (Energy) Turn all power off at or above this temperature (default 90C) + P_ROTARY_MAX_STEP, // SetOption43 - (Rotary) Rotary step boundary (default 10) + P_IR_TOLERANCE, // SetOption44 - (IR) Base tolerance percentage for matching incoming IR messages (default 25, max 100) + P_SO45_FREE, // SetOption45 + P_SO46_FREE, // SetOption46 + P_SO47_FREE, // SetOption47 + P_SO48_FREE, // SetOption48 + P_SO49_FREE // SetOption49 + }; // Max is PARAM8_SIZE (18) - SetOption32 until SetOption49 enum DomoticzSensors {DZ_TEMP, DZ_TEMP_HUM, DZ_TEMP_HUM_BARO, DZ_POWER_ENERGY, DZ_ILLUMINANCE, DZ_COUNT, DZ_VOLTAGE, DZ_CURRENT, DZ_AIRQUALITY, DZ_P1_SMART_METER, DZ_SHUTTER, DZ_MAX_SENSORS};