From cfa18b6708311fc8ad3f836035cf200a7c9e6866 Mon Sep 17 00:00:00 2001 From: Benny Nestler Date: Wed, 30 Mar 2022 12:14:36 +0200 Subject: [PATCH] Add macro TUYA_SETOPTION_137 to set SetOption137 during compile time --- tasmota/my_user_config.h | 1 + tasmota/settings.ino | 1 + 2 files changed, 2 insertions(+) diff --git a/tasmota/my_user_config.h b/tasmota/my_user_config.h index b0579a30f..25751644b 100644 --- a/tasmota/my_user_config.h +++ b/tasmota/my_user_config.h @@ -346,6 +346,7 @@ #define TUYA_SETOPTION_20 false // [SetOption54] Apply SetOption20 settings to Tuya device #define TUYA_ALLOW_DIMMER_0 false // [SetOption131] Allow save dimmer = 0 receved by MCU #define TUYA_TEMP_SET_RES 1 // [TuyaTempSetRes] Maximum number of decimals (0 - 3) showing sensor TemperatureSet +#define TUYA_SETOPTION_137 false // [SetOption137] Avoid mqtt-publish of Tuya MCU heartbeat responses #define IR_ADD_RAW_DATA false // [SetOption58] Add IR Raw data to JSON message #define BUZZER_ENABLE false // [SetOption67] Enable buzzer when available #define DS18X20_PULL_UP false // [SetOption74] Enable internal pullup for single DS18x20 sensor diff --git a/tasmota/settings.ino b/tasmota/settings.ino index 3170ad42c..719918208 100644 --- a/tasmota/settings.ino +++ b/tasmota/settings.ino @@ -1208,6 +1208,7 @@ void SettingsDefaultSet2(void) { // Tuya flag3.tuya_apply_o20 |= TUYA_SETOPTION_20; flag5.tuya_allow_dimmer_0 |= TUYA_ALLOW_DIMMER_0; + flag5.tuya_exclude_heartbeat |= TUYA_SETOPTION_137; flag3.tuya_serial_mqtt_publish |= MQTT_TUYA_RECEIVED; mbflag2.temperature_set_res |= TUYA_TEMP_SET_RES;