After on and off being at this for 14 hours and extensive coding , pretty happy with the final product.
N before anyone asks, Yes there is a dark mode too, automatic switching at night time
Last thing which is left, if OP can advise how to get the speed in increments of 1 to 12 rather than percentage that would be the final piece to the puzzle!
Ok. This is using some custom card? How did you get the icons to be smaller? I am familiar with HTML/CSS/JS, but have yet to find a way to inject my own code style into the HA UI. Awesome work! Feel like posting your YAML or whatever you created the card in?
I need to explore more I guess… custom-cards look pretty awesome! Glad I posted. Thank you for the link! I don’t play with HA as often as I like and with all the new features it gets overwhelming with the time I spend. Another bookmark and weekend project I think?!
CARDS
You need to create 4 conditional cards for each fan 1. Light mode Fan Off 2. Light mode Fan On
3.& 4. - N vice versa for Dark mode.
IMAGES:
You need to take 4 screenshots for the fan pic from your Dreo app.
Similar to above, screenshot to be taken when fan is in Off mode in light and dark mode and Fan is On in light and dark mode.
IMAGES SAVE PATH IN HA
Images (.jpg/.png to save under /www in root folder)
I created images folder under www.
So my path was /local/images/smartfanoff.jpg
For the Dark mode the code is same except
1.Change the condition to below_horizon, so that this card is only displayed in dark mode
2.Change the color to white so that you can see the Text/Icons in Dark mode.
Dear Dreo fan owners, is this integration offline or do the Dreo fans require an internet connection to be controlled? I hope not (and if, I’d have to search for a different fan that can be integrated). Thanks!
Same concern here, this still requires the cloud, it would be great if it could be a completely “offline” (cloud independent) integration, so we’re not dependent on what will eventually be unmaintained by Dreo, increased risks of user/data leaks, etc.
Obviously it’s understandable that it was easier to do the API calls to Dreo’s cloud than to break the cert pinning of the app to RE the local calls, so I’m still glad I found this integration and appreciative of the hard work that when into it .
I’m sorry I just saw this. Yes, we use the cloud API that we traced from the app. I don’t know what protocol the fan actually uses to talk to its servers. If anyone knows that, we could consider making it local.
Thanks for the response, really appreciate the hard work that was done so far!
Looking at the traffic between the (AWS EC2) cloud and the fan, it clearly is MQTT based, but all is encapsulated in TLS1.2 rendering RE a bit more complicated (need an mitmproxy setup, and hope that certs can be bypassed…).
What is the support like for the PolyFan 513s? Looking to pick one of these https://a.co/d/0boiLZGb up and wanted to see if it’s fully supported. Thanks!
Hello all, I worked my way through a hacking adventure and built a completely cloudcut integration for my Dreo fan (Pilot Max S), via a local ESPHome device:
For those who are interested in getting rid of the cloud portion of the HA integration…
This only works for the DR-HTF004S and is not expected to work on any other fan model. Other fan models would require their own investigative work.