Dreo Fan Integration?

Thanks again @JeffSteinbok disconnects are definitely better and maybe I dint notice any v0.4 but noticed a couple in v0.4.1. Will replicate and send the logs.

Also my temperature sensor seems to showing correctly in developer> states but somehow doesn’t seem to show temp in fan card in minimalist UI. Not sure if this is minimalist UI issue.

Lastly I having being developing similar card style to the one I managed for Mushroom UI but now for Minimalist UI.
Just struggling to get the icon to be coloured based on the current mode on, unfortunately all icons get coloured when fan turns on, if someone can advise would really appreciate their help.

      - type: 'custom:button-card'
        template: card_vertical_button
        entity: fan.tower_fan
        name: Normal
        icon: mdi:leaf
        show_last_changed: false
        tap_action:
          action: call-service
          service: fan.set_preset_mode
          service_data:
            entity_id: fan.tower_fan
            preset_mode: normal
        variables:
          ulm_card_vertical_button_state: 'on'
          ulm_card_vertical_button_color: yellow

tired below variables to but the for some reason its not able to appreciate the state on which fan is on!

    variables:
        ulm_card_vertical_button_state: 'normal'
variables:
     ulm_card_vertical_button_state: on
     ulm_card_vertical_button_color: >
       [[[
         if (states['fan.smart_fan'].attributes.preset_mode == 'normal'){
           return 'blue';}
       return 'theme'
       ### 'theme' is the grey color variable in minimalist
       ]]] 

I’m new to Python so I’m not sure I handled the disconnects right. I find it really varies how long it lasts.

As for the sensors and Minimalist UI I have no idea. If they show right in the built in UX and DevTools I think you’d need to follow up with them.

As for color….if there is a property I need to set I can.

1 Like

Hey Jeff,
sorry for the silly question, but I am a rookie and sometimes a little helpless.
I can`t find your repository in HACS. Can you please explain for a fool.

Best regards from germany and many thanks for your work

Go to the github, copy the address add repository in hacs paste then search integrations for dreo

How is everyone’s integrations working? Anyone have oscillating and display on/off control working on the DR-HAF004S?

I’m aware of issues with that. I’m hoping I have some time next week to fix.

Sorry, i found the repo at Git hub, but i am mot able to Integreat it. I have never done this before. Can you please helpdesk me out and explain step by step.

Sorry I am Lehrling

The only thing that could be added to the instructions is go to HACS hit the 3 dots in the upper right and hit add repo. Add as an integration, then after it adds search integrations in hacs.

HA is pretty intricate, there are some really good videos on YouTube that break down how to use hacs and the likes. As a newbie I’d recommend watching videos on everything you try to learn. Was how I learned most of it.

this is awesome, i’ve added it and got my fan working perfectly.

my only question is how do i get it to display this


as a dashboard element?

Hello,

Does anyone have one of the Air Circulators that has the ability to set the angle, as well as the ability to get a packet capture from the app? I have it working to retrieve the angle, but I can’t set it. The app is sending some command to “move” that I can’t infer.

The app uses cert pinning so getting a packet capture is non-trivial; and I think impossible on iPhone.

So far DR-HAF003S continues to work. It started erroring with “sent 1011 (unexpected error) keepalive ping timeout; no clode frame received”. But then I restarted HA and it came back. shrug

Ok, I got the fixed angles working.
Anyone want to try the version currently in the main branch via HACS?
Lots of refactoring.

Also added an option to disable reconnecting the websocket, which may be crashing for people.

1 Like

I’ll give it a try. What’s the procedure to upgrade?

HACS > update!

Is it just me or the oscillate button is no longer switching oscillating off after upgrading to v5.0?

Sorry folks; fixed. Try 0.5.1

2 Likes

Is the “sent 1011 (unexpected error) keepalive ping timeout; no clode frame received” error resolved in the update as well? Looks like it happens every time there is an internet outage. As if as soon as it loses sync with Dreo. it doesn’t come back until you reboot HA?

I ask since I just updated in HACS but not until now and there was another outage last night leading to the fan falling offline. So I don’t have a scenario to test it with until internet falls offline again (and I know it will…). Can’t manually kill the modem since my roommate needs his connection for his job.

I’m not 10000% sure to be honest.
I redid a bunch of the websocket connection stuff in v0.6 and I tested it by taking my VM and virtually “disconnected ethernet” then reconnected it. Try it and let me know. Feel free to open an issue in GitHub or you can find me on discord (jeffstei) if you want to work through something.

Copy. I will inform you via discord if it doesn’t work the next time internet goes out or if I get the opportunity to manually pull internet (assuming the roommate ever leaves the house…)

@JeffSteinbok Just a feedback not had any issues of fan disconnecting with v0.5.1.
I think you fixed the errors… Cheers!

2 Likes

Same here!

1 Like