Add support for Xiaomi Smart Tower Fan 2 (xiaomi.fan.p45) #79
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Please note: The device identifies as xiaomi.fan.p45, not dmaker.fan.p45. The dmaker has different specs.
It is compatible after replacing the proprietary Wifi module. I created a Wiki page for it: Smart Tower Fan 2
All features of the device are working in Home Assistant via esphome-miot.
Observations:
The Delay switch (SIID 12 PIID 1) toggles both Delay (SIID 12 PIID 2) and Delay remain (SIID 12 PIID 3) between 0 and 60 minutes.
When the Delay switch is active both Delay (SIID 12 PIID 2) and Delay remain (SIID 12 PIID 3) count down to 0.
The device has a bunch of string parameters regarding the natural modes (SIID 13 PIID 3 - 7). Not sure if those are usable for anything. Logger output:
[W] [miot:257] Received property value without component: 13 3 a_b_c_d_e_f_g_h[W] [miot:257] Received property value without component: 13 4 81ea5b9a4e490031000000000000000000000000_360_360_360_360_360_16[W] [miot:257] Received property value without component: 13 5 81ea5b9a4e490032000000000000000000000000_360_360_360_360_360_16[W] [miot:257] Received property value without component: 13 6 81ea5b9a4e490033000000000000000000000000_360_360_360_360_360_16[W] [miot:257] Received property value without component: 13 7 81ea5b9a4e490034000000000000000000000000_360_360_360_360_360_16