dmaker.fan.1c not working correctly
See original GitHub issueThanks for all your hard work with this custom component. It seems to work great overall. Except with my dmaker.fan.1c
. I can turn the fan on and off, and can set the preset mode. But not the level of this fan. This fan has only three speeds and the percentage within Home Assistant reflects that, only allowing me to set 33%, 66% and 100%. But the fan simply does not respond.
My debug logging:
2021-04-11 16:20:21 DEBUG (MainThread) [custom_components.xiaomi_miot] Got new state from Bathroom Fan: {'physical_controls_locked': False, 'fan.on': False, 'fan.fan_level': 2, 'fan.horizontal_swing': False, 'fan.mode': 0, 'fan.off_delay_time': 0, 'fan.alarm': True, 'fan.brightness': True, 'state_updater': 'lan', 'sub_entities': ['physical_controls_locked-3.physical_controls_locked-1']}
2021-04-11 16:20:51 DEBUG (MainThread) [custom_components.xiaomi_miot] Got new state from Bathroom Fan: {'physical_controls_locked': False, 'fan.on': False, 'fan.fan_level': 2, 'fan.horizontal_swing': False, 'fan.mode': 0, 'fan.off_delay_time': 0, 'fan.alarm': True, 'fan.brightness': True, 'state_updater': 'lan', 'sub_entities': ['physical_controls_locked-3.physical_controls_locked-1']}
2021-04-11 16:21:02 DEBUG (SyncWorker_13) [custom_components.xiaomi_miot] Set miot property to Bathroom Fan ({'did': 'property-2-1', 'siid': 2, 'piid': 1, 'value': True}), result: {'did': 'property-2-1', 'siid': 2, 'piid': 1, 'code': 0}
2021-04-11 16:21:02 DEBUG (SyncWorker_13) [custom_components.xiaomi_miot] Set miot property to Bathroom Fan: fan.on(True), result: {'did': 'property-2-1', 'siid': 2, 'piid': 1, 'code': 0}
2021-04-11 16:21:04 DEBUG (MainThread) [custom_components.xiaomi_miot] Got new state from Bathroom Fan: {'physical_controls_locked': False, 'fan.on': True, 'fan.fan_level': 2, 'fan.horizontal_swing': False, 'fan.mode': 0, 'fan.off_delay_time': 0, 'fan.alarm': True, 'fan.brightness': True, 'state_updater': 'lan', 'sub_entities': ['physical_controls_locked-3.physical_controls_locked-1']}
2021-04-11 16:21:11 DEBUG (SyncWorker_25) [custom_components.xiaomi_miot] Set miot property to Bathroom Fan ({'did': 'property-2-1', 'siid': 2, 'piid': 1, 'value': False}), result: {'did': 'property-2-1', 'siid': 2, 'piid': 1, 'code': 0}
2021-04-11 16:21:11 DEBUG (SyncWorker_25) [custom_components.xiaomi_miot] Set miot property to Bathroom Fan: fan.on(False), result: {'did': 'property-2-1', 'siid': 2, 'piid': 1, 'code': 0}
2021-04-11 16:21:13 DEBUG (MainThread) [custom_components.xiaomi_miot] Got new state from Bathroom Fan: {'physical_controls_locked': False, 'fan.on': False, 'fan.fan_level': 2, 'fan.horizontal_swing': False, 'fan.mode': 0, 'fan.off_delay_time': 0, 'fan.alarm': True, 'fan.brightness': True, 'state_updater': 'lan', 'sub_entities': ['physical_controls_locked-3.physical_controls_locked-1']}
2021-04-11 16:21:21 DEBUG (MainThread) [custom_components.xiaomi_miot] Got new state from Bathroom Fan: {'physical_controls_locked': False, 'fan.on': False, 'fan.fan_level': 2, 'fan.horizontal_swing': False, 'fan.mode': 0, 'fan.off_delay_time': 0, 'fan.alarm': True, 'fan.brightness': True, 'state_updater': 'lan', 'sub_entities': ['physical_controls_locked-3.physical_controls_locked-1']}
2021-04-11 16:21:51 DEBUG (MainThread) [custom_components.xiaomi_miot] Got new state from Bathroom Fan: {'physical_controls_locked': False, 'fan.on': False, 'fan.fan_level': 2, 'fan.horizontal_swing': False, 'fan.mode': 0, 'fan.off_delay_time': 0, 'fan.alarm': True, 'fan.brightness': True, 'state_updater': 'lan', 'sub_entities': ['physical_controls_locked-3.physical_controls_locked-1']}
2021-04-11 16:22:21 DEBUG (MainThread) [custom_components.xiaomi_miot] Got new state from Bathroom Fan: {'physical_controls_locked': False, 'fan.on': False, 'fan.fan_level': 2, 'fan.horizontal_swing': False, 'fan.mode': 0, 'fan.off_delay_time': 0, 'fan.alarm': True, 'fan.brightness': True, 'state_updater': 'lan', 'sub_entities': ['physical_controls_locked-3.physical_controls_locked-1']}
2021-04-11 16:22:39 DEBUG (SyncWorker_11) [custom_components.xiaomi_miot] Set miot property to Bathroom Fan ({'did': 'property-2-1', 'siid': 2, 'piid': 1, 'value': True}), result: {'did': 'property-2-1', 'siid': 2, 'piid': 1, 'code': 0}
2021-04-11 16:22:39 DEBUG (SyncWorker_11) [custom_components.xiaomi_miot] Set miot property to Bathroom Fan: fan.on(True), result: {'did': 'property-2-1', 'siid': 2, 'piid': 1, 'code': 0}
2021-04-11 16:22:42 DEBUG (MainThread) [custom_components.xiaomi_miot] Got new state from Bathroom Fan: {'physical_controls_locked': False, 'fan.on': True, 'fan.fan_level': 2, 'fan.horizontal_swing': False, 'fan.mode': 0, 'fan.off_delay_time': 0, 'fan.alarm': True, 'fan.brightness': True, 'state_updater': 'lan', 'sub_entities': ['physical_controls_locked-3.physical_controls_locked-1']}
2021-04-11 16:22:43 DEBUG (MainThread) [custom_components.xiaomi_miot] Got new state from Bathroom Fan: {'physical_controls_locked': False, 'fan.on': True, 'fan.fan_level': 2, 'fan.horizontal_swing': False, 'fan.mode': 0, 'fan.off_delay_time': 0, 'fan.alarm': True, 'fan.brightness': True, 'state_updater': 'lan', 'sub_entities': ['physical_controls_locked-3.physical_controls_locked-1']}
2021-04-11 16:22:45 DEBUG (MainThread) [custom_components.xiaomi_miot] Got new state from Bathroom Fan: {'physical_controls_locked': False, 'fan.on': True, 'fan.fan_level': 2, 'fan.horizontal_swing': False, 'fan.mode': 0, 'fan.off_delay_time': 0, 'fan.alarm': True, 'fan.brightness': True, 'state_updater': 'lan', 'sub_entities': ['physical_controls_locked-3.physical_controls_locked-1']}
2021-04-11 16:22:46 DEBUG (MainThread) [custom_components.xiaomi_miot] Got new state from Bathroom Fan: {'physical_controls_locked': False, 'fan.on': True, 'fan.fan_level': 2, 'fan.horizontal_swing': False, 'fan.mode': 0, 'fan.off_delay_time': 0, 'fan.alarm': True, 'fan.brightness': True, 'state_updater': 'lan', 'sub_entities': ['physical_controls_locked-3.physical_controls_locked-1']}
2021-04-11 16:22:51 DEBUG (MainThread) [custom_components.xiaomi_miot] Got new state from Bathroom Fan: {'physical_controls_locked': False, 'fan.on': True, 'fan.fan_level': 2, 'fan.horizontal_swing': False, 'fan.mode': 0, 'fan.off_delay_time': 0, 'fan.alarm': True, 'fan.brightness': True, 'state_updater': 'lan', 'sub_entities': ['physical_controls_locked-3.physical_controls_locked-1']}
2021-04-11 16:23:11 DEBUG (MainThread) [custom_components.xiaomi_miot] Got new state from Bathroom Fan: {'physical_controls_locked': False, 'fan.on': True, 'fan.fan_level': 2, 'fan.horizontal_swing': False, 'fan.mode': 0, 'fan.off_delay_time': 0, 'fan.alarm': True, 'fan.brightness': True, 'state_updater': 'lan', 'sub_entities': ['physical_controls_locked-3.physical_controls_locked-1']}
When I set the fan level within the Xiaomi Home app, the fan.level attribute is also updated. Before the latest Home Assistant I used another custom component, but that broke with the latest release.
If you need anything else I would be glad to assist.
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
dmaker.fan.1c issue: fans show-up but unavailable #135
I have been trying to setup my Xiaomi 1C fans with the integration using ... Good news - moving the fan to the...
Read more >Trying to control dmaker.fan.1c with OpenHab - xiaomimioi
I recently bought a “smart standing fan 1C” from Xiaomi and paired it with the App. Now I am trying to get it...
Read more >Mi Smart Pedestal Fan - Configuration ...
Hi, I have recently purchased one of these Mi Smart Pedestal Fans (see below) and whilst it works great the native app is...
Read more >XIAOMI Smart Standing Fan 1C User Manual - Manuals+
Make sure the fan is properly installed according to the instructions, ... Do not lean on or tilt the fan while it is...
Read more >[APP][Pro] Xiaomi Mi Home App for WiFi devices
Hey @Maxmudjon! Is there any way to support dmaker.fan.1c (Mi Smart Standing Fan 1C) ? ( https://www.npmjs.com/package/homebridge-xiaomi-fan )
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
There are only three levels because the miot-spec only defines three items:
As for the failure of setting the fan speed, please update to the latest commit: https://github.com/al-one/hass-xiaomi-miot/commit/6b8d23a7292cb16760b59770ca7e46f14ace35bd of master.
Please try the latest version.