arjenhiemstra/ithowifi

Correct/clarify the value of ID "FanInfo" in "Itho Status" overview.

Opened this issue · 7 comments

WO15 commented

In the overview "Itho Status" there is an ID "FanInfo" this gives the human readable translation of ID "Selection".

Overview of observed values in my Itho CVE-S HE Optima 2 box.

Selection FanInfo
2 low
3 medium
4 high
5 timer3
7 auto
8 unknown

"Unknown" for "selection" = 8 should probably be "autonight"
"timer3" would probably be better named "timer" as it is used for timer1, timer2, timer3. The difference between these 3 timers is visible in de ID "RemainingTime(min)".

The "auto night" option can be selected with RFT-CO2 (fast blinking Auto LED) or by pressing the "auto" button on RFT-Auto remote 2x quickly.

tested on HW + SW NRG-Watch PCB
Current firmware version: 2.8.0
Hardware revision: 2

Autonight seems to be the value 0x19, it was added with commit: da2fc90 and will be part of the next version.

which doesn't mean that 0x08 isn't also autonight but I haven't seen it before. Is there a way to confirm this?

"timer3" would probably be better named "timer" as it is used for timer1, timer2, timer3. The difference between these 3 timers is visible in de ID "RemainingTime(min)".

On CVE devices it seems that this is always timer3 indeed. Not sure about other itho devices though.
It can be changed of course but it's only cosmetical and might break some integrations. For now I'm leaving it as it is.

edit:
Looking at your list again the numerical values do not seem to match the observed values for the FanInfo data. Where did you get the values numbers from?

WO15 commented

image

Above you see a screenshot of Itho Status overview, where I have selected Autonight mode on Itho Optima 2 box.
Label FanInfo is the first line in the screenshot, Label Selection i the bottom/last line.
On screenshot below you see the same info when Auto mode is selected. I assume you "translate" the number in Selection to a human readable format in FanInfo. In case you read FanInfo directly from the box, and not "translate" it is seems a small bug in the Itho box.

image

Thanks for the info, it is not a translation of Selection, it is actually a lookup of the value provided by the itho on FanInfo. This is a numerical value that is looked on a list, if there is a match the string value is given, of not it results in unknown.
Here is the list:

static const std::map<uint8_t, const char *> fanInfo = {
{0x00, "off"},
{0X01, "low"},
{0X02, "medium"},
{0X03, "high"},
{0X04, "speed 4"},
{0X05, "speed 5"},
{0X06, "speed 6"},
{0X07, "speed 7"},
{0X08, "speed 8"},
{0X09, "speed 9"},
{0X0A, "speed 10"},
{0X0B, "timer 1"},
{0X0C, "timer 2"},
{0X0D, "timer 3"},
{0X0E, "timer 4"},
{0X0F, "timer 5"},
{0X10, "timer 6"},
{0X11, "timer 7"},
{0X12, "timer 8"},
{0X13, "timer 9"},
{0X14, "timer 10"},
{0X15, "away"},
{0X16, "absolute minimum"},
{0X17, "absolute maximum"},
{0x18, "auto"},
{0x19, "autonight"},
{0xFF, "unknown"}};

autonight is included since a very recent beta in oct. 23. Could you try the latest beta5 and report if this fixes your issue?

WO15 commented

Tested on firmware version: 2.9.0-beta6
When Itho box is in auto night mode, item "18 FanInfo" is "autonight". So issue is fixed.
For timer function, "timer 3" is shown for all tree timers short time, medium time and long time. In item "21 RemainingTime (min)", you can see the amount of minutes still remaining, this is a little unclear, "Timer" instead of "Timer 3" would be better for Itho Optima 2, but I am not sure if this is also the case of other supported products. So leave this up to you.

the itho firmware (always?) reports back timer3, indeed only the time remaining seems to change. The add-on firmware just passes this through unchanged.

WO15 commented

Then I would suggest to change the label from "timer3" tot "timer" no big deal but more clear.

there are integrations using timer3 for their logic, that makes it a breaking change.