Thermostat Icon States

A plugin to integration Indigo devices into HomeKit (and Siri)
7rdr7
Posts: 200
Joined: Wed Aug 16, 2017 7:06 pm
Location: Gulfport, FL

Thermostat Icon States

Post by 7rdr7 »

I'm using HKL for multiple thermostats (physical and virtual), and all are operating properly. The only issue that I have observed is that the icons do not show the correct changes in state. Native HomeKit thermostat icons indicate the following states: "Cooling to 75" when the system is operating, and "Cool to 75" when the system has reached target temperature, the icon also displays a status color (blue-cool operating, orange-heat operating, green-target temperature reached), whereas my HKL instance always shows the thermostat "Cooling to" or "Heating to" along with the appropriate color (blue/orange) even if temperature has been reached and the system has stopped operating.
User avatar
GlennNZ
Posts: 1873
Joined: Sun Dec 07, 2014 3:33 pm
Location: Central Coast, Australia

Re: Thermostat Icon States

Post by GlennNZ »

Hi

Glad working well, minus the icon changes not happening.

I can replicate what you are seeing - just not sure whether worth the time and effort to try to fix - some thought processes below..

After looking at it in a lot of detail - I’m guessing the icon state must be based on the fan state that HomeKit wants to receive. Essentially I don’t send the fan state as not a Indigo Thermostat option - well not in the same way.

I’m guessing:
That if Heat_auto is on.
Temperature reached.
This alone doesn’t seem to change icon, which is disappointing as you would guess perhaps it should?

I’m guessing that what it want is the above:
Plus Fan.State = idle. As opposed to Heat or Cool as when not idle.

Problem is would need to add fan to all HomeKit Thermostats - and then fan controls wouldn’t do much with the Indigo Thermostat device. (As Indigo thermostat doesn’t have same level of fan control). But could communicate back to HomeKit potentially updating the icons….

I’ll give it some thought.


Sent from my iPad using Tapatalk
7rdr7
Posts: 200
Joined: Wed Aug 16, 2017 7:06 pm
Location: Gulfport, FL

Re: Thermostat Icon States

Post by 7rdr7 »

Thanks for the thoughtful response. I'll do a little more digging. I'm thinking that it's not the fan as I have an Ecobee thermostat controlling a gas fireplace in "boiler mode" (no fan), and it's included directly in HomeKit supporting the correct status, I did try to run the Indigo Ecobee2 plugin though HKL, and the states didn't work on the same fireplace thermostat, so I went back to direct HomeKit.
I know there's a way, I just need to figure out what flag the Indigo plugins (Ecobee2 & Unistat) are setting when the thermostat hits target. Maybe I can create a trigger to accomplish the goal.
Thanks again for taking a look.
User avatar
GlennNZ
Posts: 1873
Joined: Sun Dec 07, 2014 3:33 pm
Location: Central Coast, Australia

Thermostat Icon States

Post by GlennNZ »

Ok
That’s useful info.

It’s possible that it is achievable using the currentHeatingState, I’ll continue to have a look… If that is the case should be much more doable….


Sent from my iPad using Tapatalk
Last edited by GlennNZ on Tue Aug 09, 2022 5:29 am, edited 1 time in total.
User avatar
GlennNZ
Posts: 1873
Joined: Sun Dec 07, 2014 3:33 pm
Location: Central Coast, Australia

Re: Thermostat Icon States

Post by GlennNZ »

Hi

Thanks for the pointers.

Think I have sorted/fixed - try 0.3.20 uploaded now.

Seems to work on my testing…. let me know if any issues have creep in….


Sent from my iPad using Tapatalk
7rdr7
Posts: 200
Joined: Wed Aug 16, 2017 7:06 pm
Location: Gulfport, FL

Re: Thermostat Icon States

Post by 7rdr7 »

Thanks Glenn! Really appreciate your efforts. Seems to work perfectly.
7rdr7
Posts: 200
Joined: Wed Aug 16, 2017 7:06 pm
Location: Gulfport, FL

Re: Thermostat Icon States

Post by 7rdr7 »

Weird, it worked for a while, then went back to the prior state. If I set the thermostat mode from "heat" to "off", then back to "heat", it works again. It seems to be the refresh cycle that causes the issue too reappear. When setting the initial mode it seems to fetch the correct state, but on refresh it seems to fetch the incorrect state.
User avatar
GlennNZ
Posts: 1873
Joined: Sun Dec 07, 2014 3:33 pm
Location: Central Coast, Australia

Thermostat Icon States

Post by GlennNZ »

Thanks - I like the first answer better!

I’ll have a look and see what I might have missed.

Edit:
Nothing obvious and the check with change in mode is the same as checks that occur with other change in activity.

Seems to be working fine still with my testing, Example Thermostat from SDK’s changing every second - and it is altering correctly.

Are all the devices Indigo Thermostats? Otherwise that may be the issue if they don’t set CoolerIsOn and HeaterIsOn flags as that what we are referencing here.

What particularly mode are you seeing this on? Heat?

Refresh Cycle- you mean when gets updated temperature? Or are you referring to something else

Thanks
7rdr7
Posts: 200
Joined: Wed Aug 16, 2017 7:06 pm
Location: Gulfport, FL

Re: Thermostat Icon States

Post by 7rdr7 »

"I like the first answer better!", so did I :lol:

"Are all the devices Indigo Thermostats? "

- The first device is an Indigo Unistat plugin virtual thermostat. It is the one that if I set the mode "off", then to "Heat" it starts operating correctly until a refresh, then it returns to the issue.
- The second device is a Qubino ZMNKID3 z-wave thermostat module. It still has the original issue and doesn't react to changing the mode. This thermostat, although works, is not officially supported by Indigo. This one isn't important as I purchased it to see if a physical thermostat device would work, versus an Indigo Plugin based thermostat.
- The third device is an Indigo Ecobee2 plugin thermostat. It functions the same as the first device. It works, then a HomeKit refresh returns the issue. This is the one that I referenced in my prior message. It is also not important as it also has direct HomeKit support, but I used it as a test case.

The first device (Indigo Unistat Plugin) is the most important as that is my pool heater ;)

"What particularly mode are you seeing this on? Heat?"

- Yes, Heat, but Cool as well.

"Refresh Cycle- you mean when gets updated temperature? Or are you referring to something else"

- The refresh I'm referring to is when you leave the Home app and then return, you can see that the Home app does a refresh of all device states. It also does the same refresh if you swipe out the Home app, and then return, also triggering a refresh.

It's like it gets its initial state from one source, then it's update from another source.

Thanks again for looking into the problem.
User avatar
GlennNZ
Posts: 1873
Joined: Sun Dec 07, 2014 3:33 pm
Location: Central Coast, Australia

Re: Thermostat Icon States

Post by GlennNZ »

Thanks

Understand. Was thinking something different as to meaning of refresh.

Can guess what is happening - should be able to sort!


Sent from my iPhone using Tapatalk
User avatar
GlennNZ
Posts: 1873
Joined: Sun Dec 07, 2014 3:33 pm
Location: Central Coast, Australia

Re: Thermostat Icon States

Post by GlennNZ »

Ok.
Hopefully, 2nd (?) time’s a charm

Try 0.3.21
Think have it sorted.

(Given my test thermostat updates every couple of seconds wasn’t seeing the enter issues)


Sent from my iPad using Tapatalk
7rdr7
Posts: 200
Joined: Wed Aug 16, 2017 7:06 pm
Location: Gulfport, FL

Re: Thermostat Icon States

Post by 7rdr7 »

That seems to have done it. Thanks again!
BTW, I tested it with both the Unistat plugin and the Qubino ZMNKID3, and both worked perfectly.
Post Reply

Return to “HomeKitLink Siri”