zyonse / homebridge-dreo

Apple HomeKit integration for Dreo Smart Devices
https://www.npmjs.com/package/homebridge-dreo
Apache License 2.0
29 stars 17 forks source link

What features are expected for a fan? #11

Closed Symbiot78 closed 11 months ago

Symbiot78 commented 1 year ago

I’ll all info later - but just wondering what is expected from the plugin?

My fan is in the supported list but all I am able to do is turn it off and on. No settings, oscillation or otherwise.

Just wondering if that is the expected behavior?

zyonse commented 1 year ago

You should at least be able to control power + fan speed. If your fan supports oscillation it should also show those controls in the home app. What model do you have?

Symbiot78 commented 1 year ago

It’s the DR-HTF001S

Symbiot78 commented 1 year ago

here's what I started writing for this issue - above was on my phone..

I've added a dreo fan to homebridge and used the plugin.

So far I can only turn it on and off.. and see settings

15/2023, 4:04:46 PM] [Dreo Platform] Country: US [6/15/2023, 4:04:46 PM] [Dreo Platform] Region: NA [6/15/2023, 4:04:47 PM] [Dreo Platform] Adding new accessory: Fan Hallway [6/15/2023, 4:05:25 PM] [Homebridge UI] [martin] Accessory layout changes saved. [6/15/2023, 4:05:35 PM] [Homebridge UI] [martin] Accessory layout changes saved. [6/15/2023, 4:06:03 PM] [Homebridge UI] [martin] Accessory layout changes saved. [6/15/2023, 4:11:48 PM] [Homebridge UI] [martin] Accessory layout changes saved. [6/15/2023, 4:17:15 PM] [Homebridge UI] [martin] Accessory layout changes saved. [6/15/2023, 4:17:54 PM] [Dreo Platform] Restarting child bridge... [6/15/2023, 4:17:54 PM] Got SIGTERM, shutting down child bridge process... [6/15/2023, 4:17:59 PM] [Dreo Platform] Child bridge process ended [6/15/2023, 4:17:59 PM] [Dreo Platform] Process Ended. Code: 143, Signal: null [6/15/2023, 4:18:06 PM] [Dreo Platform] Restarting Process... [6/15/2023, 4:18:06 PM] [Dreo Platform] Launched child bridge with PID 2583 [6/15/2023, 4:18:06 PM] Registering platform 'homebridge-dreo.DreoPlatform' [6/15/2023, 4:18:06 PM] [Dreo Platform] Loaded homebridge-dreo v2.1.0 child bridge successfully [6/15/2023, 4:18:06 PM] Loaded 1 cached accessories from cachedAccessories.0E68A5A7D971. [6/15/2023, 4:18:06 PM] [Dreo Platform] Loading accessory from cache: Fan Hallway [6/15/2023, 4:18:06 PM] Homebridge v1.6.1 (HAP v0.11.1) (Dreo Platform) is running on port 33352. [6/15/2023, 4:18:07 PM] [Dreo Platform] Country: US [6/15/2023, 4:18:07 PM] [Dreo Platform] Region: NA [6/15/2023, 4:18:08 PM] [Dreo Platform] Restoring existing accessory from cache: Fan Hallway [6/15/2023, 4:52:21 PM] [Homebridge UI] [martin] Accessory layout changes saved.

{ "bridge": { "name": "Homebridge 2DCE", "username": "XXXXXXXXXXX", "port": 51770, "pin": "XXX-XX-XXX", "advertiser": "bonjour-hap" }, "accessories": [], "platforms": [ { "name": "Config", "port": 8581, "platform": "config" }, { "options": { "email": "XXXXXXX", "password": "XXXXXX" }, "name": "Dreo Platform", "platform": "DreoPlatform", "_bridge": { "username": "XXXXX", "port": 33352 } } ] }

Running in docker via compose

Symbiot78 commented 1 year ago

oh.. I have NOT added homebridge to apple Home - if that makes a difference?

Symbiot78 commented 1 year ago

Reason for that is I want to add my Dreo to Home assistant

Symbiot78 commented 1 year ago

ok.. hmm.. so the plot thickens.. I added the homebridge & dreo to "home" on my Iphone. Here the fan works as I had expected.. I can set speed, oscillation etc.

So in homebridge dashboard.. I still cannot.

Symbiot78 commented 1 year ago

added it to Home assistant. If I open the fan entity then I also have all the options (fan speed, on/off, oscillation on/off.)

PapiOrtiz commented 1 year ago

added it to Home assistant. If I open the fan entity then I also have all the options (fan speed, on/off, oscillation on/off.)

Hi - you mind explaining how you were able to achieve this? I don't really understand how this "plugin" works & where it is being added. So from there to getting it on Home Assistant, I'm lost. Appreciate any help

Symbiot78 commented 1 year ago

Hey

So how far did you get?

PapiOrtiz commented 1 year ago

I have the fan + home assistant is set up.

Part of me thinks feels in order to add the plug in to Home Assistant, I need to add it as an Add-On through the Repository. Am I on to something?

Symbiot78 commented 1 year ago

You need homebridge .. fx running in docker.

https://hub.docker.com/r/oznu/homebridge/

Then that should be picked up by HomeKit controller integration in HA In homebridge you add the dreo integration

HA will pick up the dreo AND the homebridge.

I didn’t add homebridge to HomeKit.. only dreo

azalvarez03 commented 12 months ago

I'm running into an issue where the fan shows up and I can turn it on/off and control the fan speed but I don't have an option to control oscillation unless I go into the fans additional settings, . My fan is supported (DR-HTF002S). Hopefully I'm just missing a setting and this is an easy problem to fix. attached are screenshots of what I'm talking about.

IMG_126990FF1AFB-1 2 IMG_2C5D6B2CC963-1

Symbiot78 commented 12 months ago

@azalvarez03 - same as mine. What is your expectation? What would you like to be different?

azalvarez03 commented 12 months ago

@Symbiot78 I'm looking to get the oscillation setting in the main settings rather than having to go into additional setting and flipping the toggle to turn oscillation on and off.

zyonse commented 11 months ago

@Symbiot78 I'm looking to get the oscillation setting in the main settings rather than having to go into additional setting and flipping the toggle to turn oscillation on and off.

This is an iOS 17 beta issue. Homebridge exposes the controls to iOS and it's up to Apple to choose how they are displayed.