im-0 / cometblue

Command line tool and python library for "Comet Blue" thermostat
GNU General Public License v3.0
34 stars 24 forks source link

Unable to set/read periods that end at 24:00 #9

Open sacnoth opened 6 years ago

sacnoth commented 6 years ago

I'm using both this library and the EUROprog2 app to reprogram my thermostats.

When trying to program the thermostat to heat from 08:00 - 24:00 I issue the following command: cometblue device --pin <pin> <device> set day sat "08:00:00-"

Both cometblue device --pin <pin> <device> get days and the official app now tell me, that the program for the day is to heat from 08:00 - 23:50. Means the period ends 10 minutes earlier than I expected.

+-----+-------+---------------------+---------------------+-------------+-------------+
|   N | Day   | Period #1           | Period #2           | Period #3   | Period #4   |
|-----+-------+---------------------+---------------------+-------------+-------------|
|   6 | Sat   | 08:00:00 - 23:50:00 |                     |             |             |
+-----+-------+---------------------+---------------------+-------------+-------------+

As the app allows me to set the end time 10 minutes further (to 24:00 sharp) I use the app to reissue the command to heat from 08:00 - 24:00.

Now the app and the display on the thermostat show me that the thermostat will heat from 08:00 - 24:00, but cometblue device --pin <pin> <device> get days will not return any periods for that day.

+-----+-------+---------------------+---------------------+-------------+-------------+
|   N | Day   | Period #1           | Period #2           | Period #3   | Period #4   |
|-----+-------+---------------------+---------------------+-------------+-------------|
|   6 | Sat   |                     |                     |             |             |
+-----+-------+---------------------+---------------------+-------------+-------------+

There seems to be a problem with setting a period until the end of the day at 24:00 via the library and retrieving a period that has been set to last until 24:00 with the app via the library.

Device info: