From 289776a11fec06f8ca724258272a216c3277e9ad Mon Sep 17 00:00:00 2001 From: MichaelDvP Date: Tue, 10 Sep 2024 07:37:54 +0200 Subject: [PATCH] write switchprog in 12 bytes telegrams (one day) --- src/devices/thermostat.cpp | 9 ++++++--- src/version.h | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/devices/thermostat.cpp b/src/devices/thermostat.cpp index e4ec62d82..4bf22adc7 100644 --- a/src/devices/thermostat.cpp +++ b/src/devices/thermostat.cpp @@ -3447,9 +3447,12 @@ bool Thermostat::set_switchtimes(const char * value, const uint16_t type_id, uin } // write all 84 bytes, split even to have the 2 bytes switchpoint in on telegram write_command(type_id, 72, &switchtimes[72], 12, 0); - write_command(type_id, 48, &switchtimes[48], 24, 0); - write_command(type_id, 24, &switchtimes[24], 24, 0); - write_command(type_id, 0, switchtimes, 24, 0); + write_command(type_id, 60, &switchtimes[60], 12, 0); + write_command(type_id, 48, &switchtimes[48], 12, 0); + write_command(type_id, 36, &switchtimes[36], 12, 0); + write_command(type_id, 24, &switchtimes[24], 12, 0); + write_command(type_id, 12, &switchtimes[12], 12, 0); + write_command(type_id, 0, switchtimes, 12, 0); return true; } // set a single switchpoint diff --git a/src/version.h b/src/version.h index 073170498..f6fb7fb06 100644 --- a/src/version.h +++ b/src/version.h @@ -1 +1 @@ -#define EMSESP_APP_VERSION "3.7.0-test.35" +#define EMSESP_APP_VERSION "3.7.0-test.36"