Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Fan Control #73

Open
schartrand77 opened this issue Jun 18, 2020 · 17 comments
Open

Adding Fan Control #73

schartrand77 opened this issue Jun 18, 2020 · 17 comments

Comments

@schartrand77
Copy link

Any way to implement fan control?
The TCC-Fan plugin breaks Homebridge now.

@NorthernMan54
Copy link
Owner

NorthernMan54 commented Jun 18, 2020 via email

@macconnolly
Copy link

Could you share context here? At the present time what prevents it from working? Do you know which commit removed support so I can see how it was implemented previously? I’m happy to work on this! Just some guidance would be appreciated

@NorthernMan54
Copy link
Owner

NorthernMan54 commented Jul 9, 2020 via email

@NorthernMan54
Copy link
Owner

NorthernMan54 commented Jul 11, 2020

To implement this am looking at using a FanV2 Service added to the thermostat accessory for the fan. So the fan can be either a combo tile or a separate tile as needed. But as HomeKit does not directly map the Fan controls to the HoneyWell model, it will be a bit a kludge that will need to be worked thru. I'm going to collect the various options here, so if you can share what Fan Modes your thermostat supports if they are not listed below.

On/Auto

HoneyWell Fan Options Active Active/Inactive TargetFanState Auto/Manual Honeywell Mode
On/Auto Active Do not Implement Set fan to On
On/Auto Inactive Do not Implement Set fan to Auto

On/Auto/Circulate

HoneyWell Fan Options Active Active/Inactive TargetFanState Auto/Manual Honeywell Mode
On/Auto/Circulate Active Manual Set fan to On
On/Auto/Circulate Inactive Manual Set fan to circulate
On/Auto/Circulate Active Auto Set fan to Auto
On/Auto/Circulate Inactive Auto Set fan to Auto

On/Auto/Circulate/Follow Schedule(FS)

HoneyWell Fan Options Active Active/Inactive TargetFanState Auto/Manual Honeywell Mode
On/Auto/Circulate/FS Active Manual Set fan to On
On/Auto/Circulate/FS Inactive Manual Set fan to circulate
On/Auto/Circulate/FS Active Auto Set fan to Auto
On/Auto/Circulate/FS Inactive Auto Set fan to FS

The "to HomeKit" row is the status mapping from the Honeywell thermostat to HomeKit, the "from HomeKit" row is the mapping from HomeKit to the Honeywell thermostat ( what happens when a Home App setting is changed ).

PS @donavanbecker

@NorthernMan54 NorthernMan54 pinned this issue Jul 11, 2020
@NorthernMan54 NorthernMan54 changed the title Fan control? Adding Fan Control Jul 11, 2020
@Freddicus
Copy link

I'm here from reddit! So the thing I didn't like about the existing tcc-fan plugin and using fan v1/v2 is that it obfuscates the four fan modes. I couldn't think of a good way to have them available, but you can look at my code if you want. Let me know what you think.

@NorthernMan54
Copy link
Owner

@Freddicus I'm leaning towards the FanV2 and am thinking to have the controls work as per the above tables. Thru the various options, can get everything to work except follow Schedule.

@Freddicus
Copy link

Freddicus commented Jul 15, 2020

@NorthernMan54 Cool! I won't encroach, then. :) I'll publish what I have for people who may want this alternative. I personally use Follow Schedule mode the most. Though, now that I'm thinking I guess I should switch to schedule the thermostat with HomeKit and not use the scheduling functionality of TCC. I'll have to think about it.

Maybe one of the duplicated modes in the above table could be for Follow Schedule? (I'm probably grossly misunderstanding the capabilities of v2)

HoneyWell Fan Options Active Active/Inactive TargetFanState Auto/Manual Honeywell Mode
On/Auto/Circulate/FS Active Manual Set fan to On
On/Auto/Circulate/FS Inactive Manual Set fan to circulate
On/Auto/Circulate/FS Active Auto Set fan to Auto
On/Auto/Circulate/FS Inactive Auto Set fan to FS

@NorthernMan54
Copy link
Owner

@Freddicus Let me see if I can get your suggestion to work

@ManBehindPlan
Copy link

I have the RTH6580WF thermostat (most basic WIFI thermostat), and the TCC Fan works well for me (besides being chatty in the Homebridge logs, which I just put as a request for the plugin).

For me, the only two modes for fan are On and Auto, so it's the simplest approach. When Home sets the fan to On, adjust the fan to ON in TCC. When the Home sets the fan to off, adjust the fan in TCC to Auto.

@glitchykitten
Copy link

glitchykitten commented Apr 29, 2021

Hi friends. I'd be willing to help with the fan support if I can get a bit of guidance and mentoring along the way. (I'm an experienced programmer but this will be my first time in javascript and node.). I have a vested interest in the outcome: I need to automate my fan settings between the three modes (on, circulate, auto) to get my HVAC to work efficiently.

I'm pretty new to, well, everything about this... so if I make any etiquette mistakes please just let me know. :)

@NorthernMan54
Copy link
Owner

@glitchykitten We were all beginners at one point, so no issue with giving it a try. I will be reviewing your pull request, so along as you are okay with some feedback it should be fine.

@glitchykitten
Copy link

Sounds good to me. I'm ramping up now and will direct my questions to the Discord. I'll run a high level plan by you before I code it up, and I'll look forward to feedback on the pull request.

@TeslaOwnerTips
Copy link
Contributor

Was there any progress on adding fan controls? I'm interested in the circulate feature.

@glitchykitten
Copy link

No, I abandoned the project because I ended up re-doing my HVAC system and didn't need to automate fan controls anymore. (And then after the debacle of homekit automation unreliability over the past few months, I actually moved all my HVAC automation back to the native thermostat scheduling and abandoned HomeKit automations entirely.)

@TeslaOwnerTips
Copy link
Contributor

Thanks
Can you point me to the documentation that you used for authentication?
Did you use a callback and have did you figure out what to use.

I ve gone through the documentation and they don't explain the callback. As in how to pick it.

I now use your plugin for temporary overides plus a one location dashboard (the home app) to give me an overview of the house.
image

@glitchykitten
Copy link

You'll need to talk to NorthernMan45 for more technical details since it's his plugin. You can probably find him on the Discord.

@NorthernMan54
Copy link
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants