From 1e0550e750e259899b81c44aa3d628b1058053aa Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Thu, 2 Jan 2020 15:12:59 +0100 Subject: [PATCH] Add command ShutterButton Add command ``ShutterButton `` to control shutter(s) by to-scho (#7403) --- RELEASENOTES.md | 1 + tasmota/CHANGELOG.md | 1 + tasmota/i18n.h | 2 +- tasmota/settings.h | 6 +++--- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/RELEASENOTES.md b/RELEASENOTES.md index 0c3bcc9a7..6705d76b4 100644 --- a/RELEASENOTES.md +++ b/RELEASENOTES.md @@ -62,6 +62,7 @@ The following binary downloads have been compiled with ESP8266/Arduino library c - Fix LCD line and column positioning (#7387) - Fix Display handling of hexadecimal escape characters (#7387) - Add command ``SetOption79 0/1`` to enable reset of counters at teleperiod time by Andre Thomas (#7355) +- Add command ``ShutterButton `` to control shutter(s) by to-scho (#7403) - Add SerialConfig to ``Status 1`` - Add WifiPower to ``Status 5`` - Add support for DS1624, DS1621 Temperature sensor by Leonid Myravjev diff --git a/tasmota/CHANGELOG.md b/tasmota/CHANGELOG.md index 07a487b93..09fe8e5d0 100644 --- a/tasmota/CHANGELOG.md +++ b/tasmota/CHANGELOG.md @@ -4,6 +4,7 @@ - Add support for ``AdcParam`` parameters to control ADC0 Current Transformer Apparent Power formula by Jodi Dillon (#7100) - Add optional support for Prometheus using file xsns_91_prometheus.ino (#7216) +- Add command ``ShutterButton `` to control shutter(s) by to-scho (#7403) - Fix LCD line and column positioning (#7387) - Fix Display handling of hexadecimal escape characters (#7387) - Fix Improved fade linearity with gamma correction diff --git a/tasmota/i18n.h b/tasmota/i18n.h index 535ca09d4..f5fa90e82 100644 --- a/tasmota/i18n.h +++ b/tasmota/i18n.h @@ -511,10 +511,10 @@ #define D_CMND_SHUTTER_CLIBRATION "Calibration" #define D_CMND_SHUTTER_MOTORDELAY "MotorDelay" #define D_CMND_SHUTTER_FREQUENCY "Frequency" +#define D_CMND_SHUTTER_BUTTON "Button" // Commands xdrv_32_hotplug.ino #define D_CMND_HOTPLUG "HotPlug" -#define D_CMND_SHUTTER_BUTTON "Button" // Commands xsns_02_analog.ino #define D_CMND_ADCPARAM "AdcParam" diff --git a/tasmota/settings.h b/tasmota/settings.h index 4596ecad7..7dae8a586 100644 --- a/tasmota/settings.h +++ b/tasmota/settings.h @@ -464,11 +464,11 @@ struct SYSCFG { uint8_t shutter_accuracy; // F00 uint8_t mqttlog_level; // F01 uint8_t sps30_inuse_hours; // F02 - uint8_t hotplug_scan; // F03 -- scan for hotplug every 'hoplugscan' time - uint8_t reserved1; // F04 + uint8_t hotplug_scan; // F03 + uint8_t reserved1; // F04 - reserved for s-hadinger uint8_t free_f05[215]; // F05 - + uint32_t shutter_button[MAX_KEYS]; // FDC uint32_t i2c_drivers[3]; // FEC I2cDriver uint32_t cfg_timestamp; // FF8