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

Oscillation for ‎DR-HAF003S and ‎DR-HAF001S #16

Closed brentmw closed 8 months ago

brentmw commented 10 months ago

Oscillation button(s) for DR-HAF003S and ‎DR-HAF001S. Power level seems to work great!

zyonse commented 10 months ago

Can you post a screenshot of the in-app controls?

brentmw commented 10 months ago

IMG_1092 IMG_1091 “Big Air” is DR-HAF003S and “Air Circulator” is DR-HAF001S

zyonse commented 10 months ago

Are you on iOS 17? When you tap the settings icon it should show an oscillation toggle.

Adrien25251 commented 10 months ago

I've also got the DR-HA001S and I do not have an oscillation option. iOS 16.6 image image edit: forgot below image. image

brentmw commented 10 months ago

Are you on iOS 17? When you tap the settings icon it should show an oscillation toggle.

I have 1 device on iOS 17 and 3 others on 16. Neither of them have the oscillation option.

zyonse commented 10 months ago

Can you enable debug mode for homebridge and post the console output here? Make sure you redact your username/password.

Adrien25251 commented 10 months ago

hopefully I did this right, I didn't see my user/pass anywhere but I did remove my tokens.

[9/7/2023, 4:49:49 PM] [Dreo Platform] Launched child bridge with PID 1314 [9/7/2023, 4:49:49 PM] Registering platform 'homebridge-dreo.DreoPlatform' [9/7/2023, 4:49:49 PM] [Dreo Platform] Loaded homebridge-dreo v3.0.0 child bridge successfully [9/7/2023, 4:49:49 PM] Loaded 1 cached accessories from cachedAccessories.0EA53C25A732. [9/7/2023, 4:49:49 PM] [Dreo Platform] Finished initializing platform: Dreo Platform [9/7/2023, 4:49:49 PM] [Dreo Platform] Loading accessory from cache: Air Circulator [9/7/2023, 4:49:50 PM] Publishing bridge accessory (name: Dreo Platform, publishInfo: { username: '0E', port: 56387, pincode: '*-*-', category: 2, bind: undefined, mdns: undefined, addIdentifyingMaterial: true, advertiser: 'bonjour-hap' }). [9/7/2023, 4:49:50 PM] [Dreo Platform] Executed didFinishLaunching callback [9/7/2023, 4:49:50 PM] Homebridge v1.6.1 (HAP v0.11.1) (Dreo Platform) is running on port 56387. [9/7/2023, 4:49:50 PM] [Dreo Platform]

REMOTE: { access_token: 'VOID', refresh_token: 'VOID', countryCode: 'US', scope: 'all', token_type: 'bearer', region: 'NA', expires_in: 314755239, userid: 'VOID' } [9/7/2023, 4:49:50 PM] [Dreo Platform] Country: US [9/7/2023, 4:49:50 PM] [Dreo Platform] Region: NA [9/7/2023, 4:49:51 PM] [Dreo Platform]

DEVICES: [ { deviceId: '1695835673366425601', sn: '1572127056357535746-825b1ce78cfa3a66:001:0000000000s', brand: 'Dreo', model: 'DR-HAF001S', productId: '1572127056357535746', productName: 'Air Circulator', deviceName: 'Air Circulator', shared: false, series: null, seriesName: 'CF511S', controlsConf: { template: 'DR-HAF001S', lottie: [Object], cards: [Array], preference: [Array], control: [Array], category: 'Air Circulators', version: [Object] }, mainConf: { isSmart: true, isWifi: true, isBluetooth: true, isVoiceControl: true }, resourcesConf: { imageSmallSrc: 'https://resources.dreo-cloud.com/app/202302/1562f474986ecd484f870a6b1874406b82.png', imageFullSrc: 'https://resources.dreo-cloud.com/app/202307/25e0425cca23dc4b9692de9486b7f23ec0.zip', imageSmallDarkSrc: '', imageFullDarkSrc: '' }, servicesConf: [ [Object] ], userManuals: [ [Object] ] } ] [9/7/2023, 4:49:51 PM] [Dreo Platform] wss://wsb-us.dreo-cloud.com/websocket?accessToken=VOID&timestamp=1694130591077 [9/7/2023, 4:49:51 PM] [Dreo Platform] Restoring existing accessory from cache: Air Circulator [9/7/2023, 4:49:51 PM] [Dreo Platform] State: { mcu_hardware_model: { state: 'SC95F8613B', timestamp: 1693712568 }, wifi_ssid: { state: '404', timestamp: 1693712568 }, windlevel: { state: 1, timestamp: 1694085834 }, wifi_rssi: { state: -54, timestamp: 1694079591 }, poweron: { state: false, timestamp: 1694128917 }, tempunit: { state: 1, timestamp: 1694079591 }, timeron: { state: { du: 0, ts: 1693712568 }, timestamp: null }, module_firmware_version: { state: '1.2.12', timestamp: 1694079591 }, mode: { state: 1, timestamp: 1694079591 }, mcuon: { state: true, timestamp: 1693712568 }, connected: { state: true, timestamp: 1694079591 }, timeroff: { state: { du: 0, ts: 1693712568 }, timestamp: null }, network_latency: { state: 1654, timestamp: 1694079591 }, module_hardware_model: { state: 'PAI-051', timestamp: 1694079591 }, mcu_firmware_version: { state: '1.0.17', timestamp: 1693712568 }, customconf: { state: 'temp:1111122222233333344444', timestamp: 1694079591 }, ledkepton: { state: false, timestamp: 1694079591 }, temperature: { state: 78, timestamp: 1694130473 }, module_hardware_mac: { state: '00:1c:c2:66:32:94', timestamp: 1694079591 }, childlockon: { state: false, timestamp: 1694079591 }, muteon: { state: true, timestamp: 1694079591 }, hoscon: { state: true, timestamp: 1694079591 } } [9/7/2023, 4:49:51 PM] [Dreo Platform] WebSocket Opened [9/7/2023, 4:52:57 PM] [Dreo Platform] Incoming {"method":"report","devicesn":"1572127056357535746-825b1ce78cfa3a66:001:0000000000s","messageid":"5bb138f4-a2ce-474f-a7da-08e0a0c2fc78","timestamp":1694130776,"reported":{"temperature":78}} [9/7/2023, 4:52:57 PM] [Dreo Platform] Unknown command received: temperature [9/7/2023, 4:55:27 PM] [Dreo Platform] Incoming {"method":"report","devicesn":"1572127056357535746-825b1ce78cfa3a66:001:0000000000s","messageid":"f56fe84a-274f-4e7c-bd94-67485a4f92f5","timestamp":1694130926975,"reported":{"temperature":79}} [9/7/2023, 4:55:27 PM] [Dreo Platform] Unknown command received: temperature

zyonse commented 9 months ago

Can you click the settings icon next to the plugin in homebridge and install the beta version I just released? Let me know if that fixes it.

RadDip commented 9 months ago

Beta version breaks the ability to turn off the fan in homekit

zyonse commented 9 months ago

Does anything work on the beta version? Can you upload logs?

RadDip commented 9 months ago

Everything works within the capabilities that I have for the plugin except power off. I know that may not help much for as I mentioned in previous responses that I do not and have never had a separate Oscillation Button Slider from that of the Fan Power level. As well as mentioned, I am using Hoobs and I am not able to create a log. Hoobs is not letting me do it.

ThatOneGuy808 commented 9 months ago

I'm having the same problem with the oscillation button. It's not a big deal, but it is inconvenient. I'm not sure if it can be fixed or not. It might be a HomeKit thing. That would be dumb if Apple changed that to have oscillation in settings. I've attached your image from the GitHub page and a screenshot from my app

imageimageimage

kapps7 commented 8 months ago

It would be great to the oscillation function working. Happy to test!

zyonse commented 8 months ago

This should be fixed in v3.1.0 thanks to @mganjoo. Let me know if it's working now.

kapps7 commented 8 months ago

Hey zyonse did you add the oscillation testing into the new version. Not seeing it. Otherwise the plugin works really well

zyonse commented 8 months ago

@kapps It should be there, make sure you restart homebridge after updating.

ThatOneGuy808 commented 8 months ago

Hey I got the same issue. I'm not sure if I'm doing something wrong but I don't have oscillation buttons at all now. I reinstalled the plugin too

zyonse commented 8 months ago

@ThatOneGuy808 In the screenshots you posted above, that's the intended behavior. The oscillation toggle got moved out of the main UI in iOS 17 and into the accessory settings. (not sure why)

~However, it does look like the oscillation function was accidentally broken in one of the recent releases so I'll try to track down what's causing that.~ Edit: See my reply below

ThatOneGuy808 commented 8 months ago

I see...so it was a HomeKit thing that they changed. Alright well hopefully you can figure out how to fix that. Thanks for looking into this. I guess now I know

zyonse commented 8 months ago

@ThatOneGuy808 Can you go to "Tower Fan > Settings > Accessories > Tower Fan > Settings" and let me know if you see the oscillate toggle there? Just realized since we added the temperature sensor it changed the UI behavior a bit.

ThatOneGuy808 commented 8 months ago

@zyonse Yeah it's there now. Weird

kapps7 commented 8 months ago

Why can't you separate the accessories so they are visible in the home view as most grouped accessories can. 3 levels down to access oscillation.

zyonse commented 8 months ago

It’s an iOS issue. The HomePod temperature sensor is grouped together the same way.

ThatOneGuy808 commented 8 months ago

HomeKit is great but man is it a pain in the butt. Ah well, you've done your best and I commend that. Thank you for what you are doing. Do you think it's possible to separate the sensor and fan so they appear as different devices? If not then it's not a big deal. I can always do it by other means

kapps7 commented 8 months ago

Anyway I am grateful for the plugin. Homekit is what it is and it's great most of the time. My second fan DR-HAF004S is not showing the oscillate function. It shows the linear fan speed only within the grouped fan accessory setting.

The first one DR-HAF001S is showing it.

kapps7 commented 8 months ago

On the oscillation matter, You can create a scene (or automation) and the oscillation function is available in the accessory as a toggle so you could easily call the scene to turn on/off oscillate. Problem addressed.

There might also be a way to directly call the oscillate function via Siri, havent tried it.