Skip to content

Commit

Permalink
write switchprog in 12 bytes telegrams (one day)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDvP committed Sep 10, 2024
1 parent 83676e1 commit 289776a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions src/devices/thermostat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/version.h
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#define EMSESP_APP_VERSION "3.7.0-test.35"
#define EMSESP_APP_VERSION "3.7.0-test.36"

0 comments on commit 289776a

Please sign in to comment.