As the issue mentioned in #35, the Jci Hitachi doesn't return a target temperature for auto and fan mode in some AC device, this makes the history plot shows unexpected, huge peak for the target temperature attributes.
Fixes #35
Goal
Provide a workaround for this issue, the minimum requirement is to make the history plots could be readable.
Method
Use a cached variable to store the previous target temperature
Returning the cached target temperature if current target temperature is 65535 and the mode is auto or fan
If there's no valid target temperature before, return the minimum temperature.
Problem
As the issue mentioned in #35, the Jci Hitachi doesn't return a target temperature for auto and fan mode in some AC device, this makes the history plot shows unexpected, huge peak for the
target temperature
attributes.Fixes #35
Goal
Provide a workaround for this issue, the minimum requirement is to make the history plots could be readable.
Method
65535
and the mode is auto or fan