thoukydides / homebridge-homeconnect

Home Connect home appliances plugin for Homebridge
https://www.thouky.co.uk
ISC License
142 stars 15 forks source link

Hood fan and light control (Thermador VCIN48GWS) #2

Closed JerGitHub closed 4 years ago

JerGitHub commented 4 years ago

First off - Thanks for getting this going!

I hooked this up to homebridge and HomeKit without any issues and it is running fine.

Now that it is hooked up, I wanted to try some basic things out but no such luck. I read the other issues thread and understand your thoughts around Apple having not defined HomeKit services and characteristics that are particularly suitable for these sorts of appliances.

However, I have a connected hood vent and would like to control the fan (0 thru 4 speeds - 0 = off and 4 is the highest) and the lights (dimmer control). (see screenshots) I figure these services are defined in HomeKit already so was hoping it would be possible to start there with this plug in.

It would be nice to know if my connected dishwasher is on or if the cycle has ended. And if my connected oven is on or not. But I am OK with trying to get the hood vent above working first!

I am not an AppDev coder but I am a tinkerer. If you need me to TCPDUMP and grab PCAPs from the Thermador HomeConnect app to help out or have any ideas what I can do to help, I am up for helping out. Here is my homebridge output when your plugin loads so you can get see the model numbers and the options that show up.

Let me know your thoughts when you have a sec. Thanks!

[Homebridge] [12/27/2019, 6:09:27 PM] [HomeConnect] Home Connect authorization token saved [Homebridge] [12/27/2019, 6:09:28 PM] [HomeConnect] Adding new accessory 'Hood' [Homebridge] [12/27/2019, 6:09:28 PM] [HomeConnect] [Hood] Thermador Hood (E-Nr: VCIN48GWS/01) [Homebridge] [12/27/2019, 6:09:28 PM] [HomeConnect] Adding new accessory 'Oven Left' [Homebridge] [12/27/2019, 6:09:28 PM] [HomeConnect] [Oven Left] Thermador Oven (E-Nr: PRD486WDHU/01) [Homebridge] [12/27/2019, 6:09:28 PM] [HomeConnect] Adding new accessory 'Oven Right' [Homebridge] [12/27/2019, 6:09:28 PM] [HomeConnect] [Oven Right] Thermador Oven (E-Nr: PRD486WDHU/01) [Homebridge] [12/27/2019, 6:09:28 PM] [HomeConnect] Adding new accessory 'Dishwasher' [Homebridge] [12/27/2019, 6:09:28 PM] [HomeConnect] [Dishwasher] Thermador Dishwasher (E-Nr: DWHD660WPR/01) [Homebridge] [12/27/2019, 6:09:28 PM] [HomeConnect] [Hood] Connected [Homebridge] [12/27/2019, 6:09:28 PM] [HomeConnect] [Oven Left] Connected [Homebridge] [12/27/2019, 6:09:28 PM] [HomeConnect] [Oven Right] Connected [Homebridge] [12/27/2019, 6:09:28 PM] [HomeConnect] [Dishwasher] Connected [Homebridge] [12/27/2019, 6:09:29 PM] [HomeConnect] [Oven Right] Inactive [Homebridge] [12/27/2019, 6:09:29 PM] [HomeConnect] [Oven Right] Door closed [Homebridge] [12/27/2019, 6:09:29 PM] [HomeConnect] [Oven Right] Inactive [Homebridge] [12/27/2019, 6:09:29 PM] [HomeConnect] [Oven Right] Door closed [Homebridge] [12/27/2019, 6:09:29 PM] [HomeConnect] [Oven Left] Inactive [Homebridge] [12/27/2019, 6:09:29 PM] [HomeConnect] [Oven Left] Door closed [Homebridge] [12/27/2019, 6:09:30 PM] [HomeConnect] [Dishwasher] Door open [Homebridge] [12/27/2019, 6:09:30 PM] [HomeConnect] [Dishwasher] Inactive [Homebridge] [12/27/2019, 6:09:30 PM] [HomeConnect] [Hood] Off [Homebridge] [12/27/2019, 6:09:30 PM] [HomeConnect] [Oven Right] Off [Homebridge] [12/27/2019, 6:09:30 PM] [HomeConnect] [Oven Left] Off [Homebridge] [12/27/2019, 6:09:31 PM] [HomeConnect] [Dishwasher] Off

IMG_0451 IMG_0450 IMG_0449

JerGitHub commented 4 years ago

All fixed in v0.16.8 - both hood fan and hood light working via Siri and the Home app. Thanks!

One question since I don't know if this is possible - not sure if this is a Siri/Homekit limitation but could you make the plugin work so if you say: "Hey Siri, turn the hood fan to 1", it would be equivalent to saying "Hey Siri, turn the hood fan to 25%" "Hey Siri, turn the hood fan to 2", it would be equivalent to saying "Hey Siri, turn the hood fan to 50%" "Hey Siri, turn the hood fan to 3", it would be equivalent to saying "Hey Siri, turn the hood fan to 75%" "Hey Siri, turn the hood fan to 4", it would be equivalent to saying "Hey Siri, turn the hood fan to 100%"

If not, no big deal. Just wondering if that's possible.

As for HOOBS - I agree with you. I used to do everything via CLI but I saw HOOBS v3.x new UI and liked what I saw and wanted to give it a try. I like it so far but I still debate throwing it out and going with homebridge-config-ui-x. I don't blame you for not writing a "certified" plugin for HOOBS either. No real need. All "non-certified" plugins work perfectly with it since it is homebridge and all.

Time to test out the dishwasher and oven part of your plugin - I haven't focused on that since you were helping me with the hood and lights which we use every day.

Thanks again!

thoukydides commented 4 years ago

All fixed in v0.16.8 - both hood fan and hood light working via Siri and the Home app.

Wonderful!

Sorry that it took so long to reach this stage. I really appreciate your patience, clear feedback, and helpful log files.

One question since I don't know if this is possible - not sure if this is a Siri/Homekit limitation but could you make the plugin work so if you say: "Hey Siri, turn the hood fan to 1", it would be equivalent to saying "Hey Siri, turn the hood fan to 25%" "Hey Siri, turn the hood fan to 2", it would be equivalent to saying "Hey Siri, turn the hood fan to 50%" "Hey Siri, turn the hood fan to 3", it would be equivalent to saying "Hey Siri, turn the hood fan to 75%" "Hey Siri, turn the hood fan to 4", it would be equivalent to saying "Hey Siri, turn the hood fan to 100%"

Sorry, no. You can, however, use low, medium, and high to specify the fan speeds from Siri.

HomeKit defines the Rotation Speed characteristic for a Fan service to be a percentage. The only things that can be changes are the minimum and maximum percentages, and the step size. Siri further restricts it by always using 25%, 50%, and 100% for low, medium and, high.

Time to test out the dishwasher and oven part of your plugin - I haven't focused on that since you were helping me with the hood and lights which we use every day.

I will close this bug now since the hood support appears to be working.

However, if you find any new problems - with either the hood or dishwasher/oven support - then please raise separate issues for them.

JerGitHub commented 4 years ago

No need to apologize to me - you are doing me a huge favor by releasing this and tweaking it and taking feedback to make things better. I appreciate all your work!

As far as the speed characteristics, that makes sense. I'm good with the way it is, but thought I would ask.

Thanks again and I will test out the dishwasher and oven and give you feedback.