Mi Smart Pedestal Fan

Ups! Please enable the debug mode of the custom component. A detailed error messages would be helpful.

logger:
  default: warn
  logs:
    custom_components.fan.xiaomi_miio_fan: debug
    miio: debug

2018-04-14 19:23:46 DEBUG (MainThread) [miio.protocol] Unable to decrypt, returning raw bytes: b’’
2018-04-14 19:23:46 DEBUG (MainThread) [miio.device] Got a response: Container:
data = Container:
data = b’’ (total 0)
value = b’’ (total 0)
offset1 = 32
offset2 = 32
length = 0
header = Container:
data = b’!1\x00 \x00\x00\x00\x00\x04\x05\xd1\x00\tx\xf8' (total 16) value = Container: length = 32 unknown = 0 device_id = b'\x04\x05\xd1’ (total 4)
ts = 1970-01-08 04:26:32
offset1 = 0
offset2 = 16
length = 16
checksum = b’/M\x18\x83\x89\xe9BZ|\xc2\xd7yGA>$’ (total 16)
2018-04-14 19:23:46 DEBUG (MainThread) [miio.device] Discovered 040560d1 with ts: 1970-01-08 04:26:32, token: b’2f4d188389e9425a7cc2d77947413e24’
2018-04-14 19:23:47 DEBUG (MainThread) [miio.device] 10.0.100.1:54321 >>: {‘id’: 1, ‘method’: ‘miIO.info’, ‘params’: }
2018-04-14 19:23:47 DEBUG (MainThread) [miio.device] 10.0.100.1:54321 (ts: 1970-01-08 04:26:32, id: 1) << {‘result’: {‘life’: 620792, ‘cfg_time’: 0, ‘token’: ‘2f4d188389e9425a7cc2d77947413e24’, ‘mac’: ‘78:11:DC:32:F1:CF’, ‘fw_ver’: ‘1.2.9_50’, ‘hw_ver’: ‘MW300’, ‘model’: ‘zhimi.fan.v3’, ‘wifi_fw_ver’: ‘SD878x-14.76.36.p84-702.1.0-WM’, ‘ap’: {‘rssi’: -38, ‘ssid’: ‘Skynet’, ‘bssid’: ‘00:04:56:B5:3E:51’}, ‘netif’: {‘localIp’: ‘10.0.100.1’, ‘mask’: ‘255.0.0.0’, ‘gw’: ‘10.0.0.1’}, ‘mmfree’: 216756, ‘ot’: ‘ott’, ‘otu_stat’: [387, 347, 2594, 64, 2517, 2995], ‘ott_stat’: [6, 16, 100, 338]}, ‘id’: 1}
2018-04-14 19:23:47 DEBUG (SyncWorker_9) [miio.device] 10.0.100.1:54321 >>: {‘id’: 2, ‘method’: ‘get_prop’, ‘params’: [‘power’]}
2018-04-14 19:23:47 DEBUG (SyncWorker_9) [miio.device] 10.0.100.1:54321 (ts: 1970-01-08 04:26:32, id: 2) << {‘result’: [‘on’], ‘id’: 2}
2018-04-14 19:23:47 DEBUG (SyncWorker_4) [miio.device] 10.0.100.1:54321 >>: {‘id’: 3, ‘method’: ‘miIO.info’, ‘params’: }
2018-04-14 19:23:47 DEBUG (SyncWorker_4) [miio.device] 10.0.100.1:54321 (ts: 1970-01-08 04:26:32, id: 3) << {‘result’: {‘life’: 620792, ‘cfg_time’: 0, ‘token’: ‘2f4d188389e9425a7cc2d77947413e24’, ‘mac’: ‘78:11:DC:32:F1:CF’, ‘fw_ver’: ‘1.2.9_50’, ‘hw_ver’: ‘MW300’, ‘model’: ‘zhimi.fan.v3’, ‘wifi_fw_ver’: ‘SD878x-14.76.36.p84-702.1.0-WM’, ‘ap’: {‘rssi’: -38, ‘ssid’: ‘Skynet’, ‘bssid’: ‘00:04:56:B5:3E:51’}, ‘netif’: {‘localIp’: ‘10.0.100.1’, ‘mask’: ‘255.0.0.0’, ‘gw’: ‘10.0.0.1’}, ‘mmfree’: 215884, ‘ot’: ‘ott’, ‘otu_stat’: [387, 347, 2594, 64, 2517, 2995], ‘ott_stat’: [6, 16, 100, 338]}, ‘id’: 3}
2018-04-14 19:24:28 ERROR (SyncWorker_11) [miio.device] Unable to discover a device at address 10.0.70.1
2018-04-14 19:24:28 ERROR (MainThread) [homeassistant.components.switch.xiaomi_miio] Got exception while fetching the state: Unable to discover the device 10.0.70.1
2018-04-14 19:24:28 DEBUG (SyncWorker_18) [miio.protocol] Unable to decrypt, returning raw bytes: b’’
2018-04-14 19:24:28 DEBUG (SyncWorker_18) [miio.device] Got a response: Container:
data = Container:
data = b’’ (total 0)
value = b’’ (total 0)
offset1 = 32
offset2 = 32
length = 0
header = Container:
data = b’!1\x00 \x00\x00\x00\x00\x03\xb0\xc0\r\x00\x00s\x03’ (total 16)
value = Container:
length = 32
unknown = 0
device_id = b’\x03\xb0\xc0\r’ (total 4)
ts = 1970-01-01 08:10:43
offset1 = 0
offset2 = 16
length = 16
checksum = b’\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00’ (total 16)
2018-04-14 19:24:28 DEBUG (SyncWorker_18) [miio.device] Discovered 03b0c00d with ts: 1970-01-01 08:10:43, token: b’00000000000000000000000000000000’
2018-04-14 19:24:28 DEBUG (SyncWorker_18) [miio.device] 10.0.50.3:54321 >>: {‘id’: 1, ‘method’: ‘get_prop’, ‘params’: [‘power’, ‘bright’, ‘cct’, ‘snm’, ‘dv’]}
2018-04-14 19:24:28 DEBUG (SyncWorker_18) [miio.device] 10.0.50.3:54321 (ts: 1970-01-01 08:10:43, id: 1) << {‘result’: [‘on’, 100, 100, 0, 0], ‘id’: 1}
2018-04-14 19:24:32 DEBUG (SyncWorker_14) [miio.protocol] Unable to decrypt, returning raw bytes: b’’
2018-04-14 19:24:32 DEBUG (SyncWorker_14) [miio.device] Got a response: Container:
data = Container:
data = b’’ (total 0)
value = b’’ (total 0)
offset1 = 32
offset2 = 32
length = 0
header = Container:
data = b’!1\x00 \x00\x00\x00\x00\x03\xad\x06\xf0\x00\x00/\x89’ (total 16)
value = Container:
length = 32
unknown = 0
device_id = b’\x03\xad\x06\xf0’ (total 4)
ts = 1970-01-01 03:22:49
offset1 = 0
offset2 = 16
length = 16
checksum = b’\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00’ (total 16)
2018-04-14 19:24:32 DEBUG (SyncWorker_14) [miio.device] Discovered 03ad06f0 with ts: 1970-01-01 03:22:49, token: b’00000000000000000000000000000000’
2018-04-14 19:24:32 DEBUG (SyncWorker_14) [miio.device] 10.0.50.2:54321 >>: {‘id’: 1, ‘method’: ‘get_prop’, ‘params’: [‘power’, ‘bright’, ‘cct’, ‘snm’, ‘dv’]}
2018-04-14 19:24:32 DEBUG (SyncWorker_14) [miio.device] 10.0.50.2:54321 (ts: 1970-01-01 03:22:49, id: 1) << {‘result’: [‘on’, 75, 1, 0, 0], ‘id’: 1}
2018-04-14 19:24:35 DEBUG (SyncWorker_16) [miio.protocol] Unable to decrypt, returning raw bytes: b’’
2018-04-14 19:24:35 DEBUG (SyncWorker_16) [miio.device] Got a response: Container:
data = Container:
data = b’’ (total 0)
value = b’’ (total 0)
offset1 = 32
offset2 = 32
length = 0
header = Container:
data = b’!1\x00 \x00\x00\x00\x00\x03\xacl=\x00\x00/\x84’ (total 16)
value = Container:
length = 32
unknown = 0
device_id = b’\x03\xacl=’ (total 4)
ts = 1970-01-01 03:22:44
offset1 = 0
offset2 = 16
length = 16
checksum = b’\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00’ (total 16)
2018-04-14 19:24:35 DEBUG (SyncWorker_16) [miio.device] Discovered 03ac6c3d with ts: 1970-01-01 03:22:44, token: b’00000000000000000000000000000000’
2018-04-14 19:24:35 DEBUG (SyncWorker_16) [miio.device] 10.0.50.4:54321 >>: {‘id’: 1, ‘method’: ‘get_prop’, ‘params’: [‘power’, ‘bright’, ‘cct’, ‘snm’, ‘dv’]}
2018-04-14 19:24:35 DEBUG (SyncWorker_16) [miio.device] 10.0.50.4:54321 (ts: 1970-01-01 03:22:44, id: 1) << {‘result’: [‘on’, 85, 1, 0, 0], ‘id’: 1}
2018-04-14 19:24:40 INFO (MainThread) [custom_components.fan.xiaomi_miio_fan] Initializing with host 10.0.100.1 (token 2f4d1…)
2018-04-14 19:24:40 DEBUG (MainThread) [miio.protocol] Unable to decrypt, returning raw bytes: b’’
2018-04-14 19:24:40 DEBUG (MainThread) [miio.device] Got a response: Container:
data = Container:
data = b’’ (total 0)
value = b’’ (total 0)
offset1 = 32
offset2 = 32
length = 0
header = Container:
data = b’!1\x00 \x00\x00\x00\x00\x04\x05\xd1\x00\ty-' (total 16) value = Container: length = 32 unknown = 0 device_id = b'\x04\x05\xd1’ (total 4)
ts = 1970-01-08 04:27:25
offset1 = 0
offset2 = 16
length = 16
checksum = b’/M\x18\x83\x89\xe9BZ|\xc2\xd7yGA>$’ (total 16)
2018-04-14 19:24:40 DEBUG (MainThread) [miio.device] Discovered 040560d1 with ts: 1970-01-08 04:27:25, token: b’2f4d188389e9425a7cc2d77947413e24’
2018-04-14 19:24:40 DEBUG (MainThread) [miio.device] 10.0.100.1:54321 >>: {‘id’: 1, ‘method’: ‘miIO.info’, ‘params’: }
2018-04-14 19:24:40 DEBUG (MainThread) [miio.device] 10.0.100.1:54321 (ts: 1970-01-08 04:27:26, id: 1) << {‘result’: {‘life’: 620846, ‘cfg_time’: 0, ‘token’: ‘2f4d188389e9425a7cc2d77947413e24’, ‘mac’: ‘78:11:DC:32:F1:CF’, ‘fw_ver’: ‘1.2.9_50’, ‘hw_ver’: ‘MW300’, ‘model’: ‘zhimi.fan.v3’, ‘wifi_fw_ver’: ‘SD878x-14.76.36.p84-702.1.0-WM’, ‘ap’: {‘rssi’: -40, ‘ssid’: ‘Skynet’, ‘bssid’: ‘00:04:56:B5:3E:51’}, ‘netif’: {‘localIp’: ‘10.0.100.1’, ‘mask’: ‘255.0.0.0’, ‘gw’: ‘10.0.0.1’}, ‘mmfree’: 216756, ‘ot’: ‘ott’, ‘otu_stat’: [387, 347, 2594, 64, 2517, 2995], ‘ott_stat’: [6, 16, 100, 338]}, ‘id’: 1}
2018-04-14 19:24:40 INFO (MainThread) [custom_components.fan.xiaomi_miio_fan] zhimi.fan.v3 1.2.9_50 MW300 detected
2018-04-14 19:24:40 DEBUG (SyncWorker_6) [miio.protocol] Unable to decrypt, returning raw bytes: b’’
2018-04-14 19:24:40 DEBUG (SyncWorker_6) [miio.device] Got a response: Container:
data = Container:
data = b’’ (total 0)
value = b’’ (total 0)
offset1 = 32
offset2 = 32
length = 0
header = Container:
data = b’!1\x00 \x00\x00\x00\x00\x04\x05\xd1\x00\ty.' (total 16) value = Container: length = 32 unknown = 0 device_id = b'\x04\x05\xd1’ (total 4)
ts = 1970-01-08 04:27:26
offset1 = 0
offset2 = 16
length = 16
checksum = b’/M\x18\x83\x89\xe9BZ|\xc2\xd7yGA>$’ (total 16)
2018-04-14 19:24:40 DEBUG (SyncWorker_6) [miio.device] Discovered 040560d1 with ts: 1970-01-08 04:27:26, token: b’2f4d188389e9425a7cc2d77947413e24’
2018-04-14 19:24:40 DEBUG (SyncWorker_6) [miio.device] 10.0.100.1:54321 >>: {‘id’: 1, ‘method’: ‘get_prop’, ‘params’: [‘temp_dec’, ‘humidity’, ‘angle’, ‘speed’, ‘poweroff_time’, ‘power’, ‘ac_power’, ‘battery’, ‘angle_enable’, ‘speed_level’, ‘natural_level’, ‘child_lock’, ‘buzzer’, ‘led_b’, ‘led’]}
2018-04-14 19:24:43 ERROR (SyncWorker_10) [miio.device] Unable to discover a device at address 10.0.50.1
2018-04-14 19:24:44 ERROR (MainThread) [homeassistant.components.light.xiaomi_miio] Got exception while fetching the state: Unable to discover the device 10.0.50.1
2018-04-14 19:24:45 DEBUG (SyncWorker_6) [miio.device] Retrying with incremented id, retries left: 3
2018-04-14 19:24:45 DEBUG (SyncWorker_6) [miio.protocol] Unable to decrypt, returning raw bytes: b’’
2018-04-14 19:24:45 DEBUG (SyncWorker_6) [miio.device] Got a response: Container:
data = Container:
data = b’’ (total 0)
value = b’’ (total 0)
offset1 = 32
offset2 = 32
length = 0
header = Container:
data = b’!1\x00 \x00\x00\x00\x00\x04\x05\xd1\x00\ty3' (total 16) value = Container: length = 32 unknown = 0 device_id = b'\x04\x05\xd1’ (total 4)
ts = 1970-01-08 04:27:31
offset1 = 0
offset2 = 16
length = 16
checksum = b’/M\x18\x83\x89\xe9BZ|\xc2\xd7yGA>$’ (total 16)
2018-04-14 19:24:45 DEBUG (SyncWorker_6) [miio.device] Discovered 040560d1 with ts: 1970-01-08 04:27:31, token: b’2f4d188389e9425a7cc2d77947413e24’
2018-04-14 19:24:45 DEBUG (SyncWorker_6) [miio.device] 10.0.100.1:54321 >>: {‘id’: 102, ‘method’: ‘get_prop’, ‘params’: [‘temp_dec’, ‘humidity’, ‘angle’, ‘speed’, ‘poweroff_time’, ‘power’, ‘ac_power’, ‘battery’, ‘angle_enable’, ‘speed_level’, ‘natural_level’, ‘child_lock’, ‘buzzer’, ‘led_b’, ‘led’]}
2018-04-14 19:24:45 DEBUG (SyncWorker_6) [miio.device] 10.0.100.1:54321 (ts: 1970-01-08 04:27:31, id: 102) << {‘result’: [258, 70, 118, 391, 0, ‘on’, ‘on’, 100, ‘on’, 15, 0, ‘off’, ‘on’, 0, None], ‘id’: 102}
2018-04-14 19:24:45 DEBUG (MainThread) [custom_components.fan.xiaomi_miio_fan] Got new state: <FanStatus power=on, temperature=25.8, humidity=70, led=False, led_brightness=LedBrightness.Bright buzzer=True, child_lock=False, natural_level=0, speed_level=15, oscillate=True, battery=100, ac_power=True, poweroff_time=0, speed=15, angle=118
2018-04-14 19:26:14 DEBUG (SyncWorker_5) [miio.device] 10.0.100.1:54321 >>: {‘id’: 4, ‘method’: ‘get_prop’, ‘params’: [‘power’]}
2018-04-14 19:26:14 DEBUG (SyncWorker_7) [miio.device] 10.0.50.3:54321 >>: {‘id’: 2, ‘method’: ‘get_prop’, ‘params’: [‘power’, ‘bright’, ‘cct’, ‘snm’, ‘dv’]}
2018-04-14 19:26:14 DEBUG (SyncWorker_0) [miio.device] 10.0.50.4:54321 >>: {‘id’: 2, ‘method’: ‘get_prop’, ‘params’: [‘power’, ‘bright’, ‘cct’, ‘snm’, ‘dv’]}
2018-04-14 19:26:14 DEBUG (SyncWorker_16) [miio.device] 10.0.50.2:54321 >>: {‘id’: 2, ‘method’: ‘get_prop’, ‘params’: [‘power’, ‘bright’, ‘cct’, ‘snm’, ‘dv’]}
2018-04-14 19:26:14 DEBUG (SyncWorker_8) [miio.device] 10.0.100.1:54321 >>: {‘id’: 103, ‘method’: ‘get_prop’, ‘params’: [‘temp_dec’, ‘humidity’, ‘angle’, ‘speed’, ‘poweroff_time’, ‘power’, ‘ac_power’, ‘battery’, ‘angle_enable’, ‘speed_level’, ‘natural_level’, ‘child_lock’, ‘buzzer’, ‘led_b’, ‘led’]}
2018-04-14 19:26:19 DEBUG (SyncWorker_5) [miio.device] Retrying with incremented id, retries left: 3
2018-04-14 19:26:19 ERROR (SyncWorker_13) [miio.device] Unable to discover a device at address 10.0.50.1
2018-04-14 19:26:19 ERROR (SyncWorker_17) [miio.device] Unable to discover a device at address 10.0.70.1
2018-04-14 19:26:19 DEBUG (SyncWorker_0) [miio.device] Retrying with incremented id, retries left: 3
2018-04-14 19:26:19 DEBUG (SyncWorker_7) [miio.device] Retrying with incremented id, retries left: 3
2018-04-14 19:26:19 ERROR (MainThread) [homeassistant.components.light.xiaomi_miio] Got exception while fetching the state: Unable to discover the device 10.0.50.1
2018-04-14 19:26:19 DEBUG (SyncWorker_16) [miio.device] Retrying with incremented id, retries left: 3
2018-04-14 19:26:19 DEBUG (SyncWorker_8) [miio.device] Retrying with incremented id, retries left: 3
2018-04-14 19:26:19 DEBUG (SyncWorker_7) [miio.protocol] Unable to decrypt, returning raw bytes: b’’
2018-04-14 19:26:19 DEBUG (SyncWorker_0) [miio.protocol] Unable to decrypt, returning raw bytes: b’’
2018-04-14 19:26:19 DEBUG (SyncWorker_7) [miio.device] Got a response: Container:
data = Container:
data = b’’ (total 0)
value = b’’ (total 0)
offset1 = 32
offset2 = 32
length = 0
header = Container:
data = b’!1\x00 \x00\x00\x00\x00\x03\xb0\xc0\r\x00\x00sr’ (total 16)
value = Container:
length = 32
unknown = 0
device_id = b’\x03\xb0\xc0\r’ (total 4)
ts = 1970-01-01 08:12:34
offset1 = 0
offset2 = 16
length = 16
checksum = b’\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00’ (total 16)
2018-04-14 19:26:19 DEBUG (SyncWorker_16) [miio.protocol] Unable to decrypt, returning raw bytes: b’’
2018-04-14 19:26:19 DEBUG (SyncWorker_0) [miio.device] Got a response: Container:
data = Container:
data = b’’ (total 0)
value = b’’ (total 0)
offset1 = 32
offset2 = 32
length = 0
header = Container:
data = b’!1\x00 \x00\x00\x00\x00\x03\xacl=\x00\x00/\xeb’ (total 16)
value = Container:
length = 32
unknown = 0
device_id = b’\x03\xacl=’ (total 4)
ts = 1970-01-01 03:24:27
offset1 = 0
offset2 = 16
length = 16
checksum = b’\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00’ (total 16)
2018-04-14 19:26:19 ERROR (MainThread) [homeassistant.components.switch.xiaomi_miio] Got exception while fetching the state: Unable to discover the device 10.0.70.1
2018-04-14 19:26:19 DEBUG (SyncWorker_16) [miio.device] Got a response: Container:
data = Container:
data = b’’ (total 0)
value = b’’ (total 0)
offset1 = 32
offset2 = 32
length = 0
header = Container:
data = b’!1\x00 \x00\x00\x00\x00\x03\xad\x06\xf0\x00\x00/\xf4’ (total 16)
value = Container:
length = 32
unknown = 0
device_id = b’\x03\xad\x06\xf0’ (total 4)
ts = 1970-01-01 03:24:36
offset1 = 0
offset2 = 16
length = 16
checksum = b’\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00’ (total 16)
2018-04-14 19:26:19 DEBUG (SyncWorker_0) [miio.device] Discovered 03ac6c3d with ts: 1970-01-01 03:24:27, token: b’00000000000000000000000000000000’
2018-04-14 19:26:19 DEBUG (SyncWorker_7) [miio.device] Discovered 03b0c00d with ts: 1970-01-01 08:12:34, token: b’00000000000000000000000000000000’
2018-04-14 19:26:19 DEBUG (SyncWorker_16) [miio.device] Discovered 03ad06f0 with ts: 1970-01-01 03:24:36, token: b’00000000000000000000000000000000’
2018-04-14 19:26:19 DEBUG (SyncWorker_0) [miio.device] 10.0.50.4:54321 >>: {‘id’: 103, ‘method’: ‘get_prop’, ‘params’: [‘power’, ‘bright’, ‘cct’, ‘snm’, ‘dv’]}
2018-04-14 19:26:19 DEBUG (SyncWorker_7) [miio.device] 10.0.50.3:54321 >>: {‘id’: 103, ‘method’: ‘get_prop’, ‘params’: [‘power’, ‘bright’, ‘cct’, ‘snm’, ‘dv’]}
2018-04-14 19:26:19 DEBUG (SyncWorker_16) [miio.device] 10.0.50.2:54321 >>: {‘id’: 103, ‘method’: ‘get_prop’, ‘params’: [‘power’, ‘bright’, ‘cct’, ‘snm’, ‘dv’]}
2018-04-14 19:26:19 DEBUG (SyncWorker_0) [miio.device] 10.0.50.4:54321 (ts: 1970-01-01 03:24:28, id: 103) << {‘result’: [‘on’, 85, 1, 0, 0], ‘id’: 103}
2018-04-14 19:26:19 DEBUG (SyncWorker_7) [miio.device] 10.0.50.3:54321 (ts: 1970-01-01 08:12:34, id: 103) << {‘result’: [‘on’, 100, 100, 0, 0], ‘id’: 103}
2018-04-14 19:26:19 DEBUG (SyncWorker_16) [miio.device] 10.0.50.2:54321 (ts: 1970-01-01 03:24:36, id: 103) << {‘result’: [‘on’, 75, 1, 0, 0], ‘id’: 103}
2018-04-14 19:26:19 DEBUG (SyncWorker_5) [miio.protocol] Unable to decrypt, returning raw bytes: b’’
2018-04-14 19:26:19 DEBUG (SyncWorker_5) [miio.device] Got a response: Container:
data = Container:
data = b’’ (total 0)
value = b’’ (total 0)
offset1 = 32
offset2 = 32
length = 0
header = Container:
data = b’!1\x00 \x00\x00\x00\x00\x04\x05\xd1\x00\ty\x91' (total 16) value = Container: length = 32 unknown = 0 device_id = b'\x04\x05\xd1’ (total 4)
ts = 1970-01-08 04:29:05
offset1 = 0
offset2 = 16
length = 16
checksum = b’/M\x18\x83\x89\xe9BZ|\xc2\xd7yGA>$’ (total 16)
2018-04-14 19:26:19 DEBUG (SyncWorker_8) [miio.protocol] Unable to decrypt, returning raw bytes: b’’
2018-04-14 19:26:19 DEBUG (SyncWorker_5) [miio.device] Discovered 040560d1 with ts: 1970-01-08 04:29:05, token: b’2f4d188389e9425a7cc2d77947413e24’
2018-04-14 19:26:19 DEBUG (SyncWorker_8) [miio.device] Got a response: Container:
data = Container:
data = b’’ (total 0)
value = b’’ (total 0)
offset1 = 32
offset2 = 32
length = 0
header = Container:
data = b’!1\x00 \x00\x00\x00\x00\x04\x05\xd1\x00\ty\x91' (total 16) value = Container: length = 32 unknown = 0 device_id = b'\x04\x05\xd1’ (total 4)
ts = 1970-01-08 04:29:05
offset1 = 0
offset2 = 16
length = 16
checksum = b’/M\x18\x83\x89\xe9BZ|\xc2\xd7yGA>$’ (total 16)
2018-04-14 19:26:19 DEBUG (SyncWorker_5) [miio.device] 10.0.100.1:54321 >>: {‘id’: 105, ‘method’: ‘get_prop’, ‘params’: [‘power’]}
2018-04-14 19:26:19 DEBUG (SyncWorker_8) [miio.device] Discovered 040560d1 with ts: 1970-01-08 04:29:05, token: b’2f4d188389e9425a7cc2d77947413e24’
2018-04-14 19:26:19 DEBUG (SyncWorker_5) [miio.device] 10.0.100.1:54321 (ts: 1970-01-08 04:29:05, id: 105) << {‘result’: [‘on’], ‘id’: 105}
2018-04-14 19:26:19 DEBUG (SyncWorker_8) [miio.device] 10.0.100.1:54321 >>: {‘id’: 204, ‘method’: ‘get_prop’, ‘params’: [‘temp_dec’, ‘humidity’, ‘angle’, ‘speed’, ‘poweroff_time’, ‘power’, ‘ac_power’, ‘battery’, ‘angle_enable’, ‘speed_level’, ‘natural_level’, ‘child_lock’, ‘buzzer’, ‘led_b’, ‘led’]}
2018-04-14 19:26:19 DEBUG (SyncWorker_19) [miio.device] 10.0.100.1:54321 >>: {‘id’: 106, ‘method’: ‘miIO.info’, ‘params’: }
2018-04-14 19:26:19 DEBUG (SyncWorker_8) [miio.device] 10.0.100.1:54321 (ts: 1970-01-08 04:29:05, id: 204) << {‘result’: [258, 70, 118, 386, 0, ‘on’, ‘on’, 100, ‘on’, 15, 0, ‘off’, ‘on’, 0, None], ‘id’: 204}
2018-04-14 19:26:19 DEBUG (MainThread) [custom_components.fan.xiaomi_miio_fan] Got new state: <FanStatus power=on, temperature=25.8, humidity=70, led=False, led_brightness=LedBrightness.Bright buzzer=True, child_lock=False, natural_level=0, speed_level=15, oscillate=True, battery=100, ac_power=True, poweroff_time=0, speed=15, angle=118
2018-04-14 19:26:19 DEBUG (SyncWorker_19) [miio.device] 10.0.100.1:54321 (ts: 1970-01-08 04:29:05, id: 106) << {‘result’: {‘life’: 620945, ‘cfg_time’: 0, ‘token’: ‘2f4d188389e9425a7cc2d77947413e24’, ‘mac’: ‘78:11:DC:32:F1:CF’, ‘fw_ver’: ‘1.2.9_50’, ‘hw_ver’: ‘MW300’, ‘model’: ‘zhimi.fan.v3’, ‘wifi_fw_ver’: ‘SD878x-14.76.36.p84-702.1.0-WM’, ‘ap’: {‘rssi’: -36, ‘ssid’: ‘Skynet’, ‘bssid’: ‘00:04:56:B5:3E:51’}, ‘netif’: {‘localIp’: ‘10.0.100.1’, ‘mask’: ‘255.0.0.0’, ‘gw’: ‘10.0.0.1’}, ‘mmfree’: 216244, ‘ot’: ‘ott’, ‘otu_stat’: [387, 347, 2594, 64, 2517, 2995], ‘ott_stat’: [6, 16, 100, 338]}, ‘id’: 106}
2018-04-14 19:26:42 DEBUG (SyncWorker_2) [miio.device] 10.0.100.1:54321 >>: {‘id’: 205, ‘method’: ‘set_power’, ‘params’: [‘off’]}
2018-04-14 19:26:42 DEBUG (SyncWorker_2) [miio.device] 10.0.100.1:54321 (ts: 1970-01-08 04:29:28, id: 205) << {‘result’: [‘ok’], ‘id’: 205}
2018-04-14 19:26:42 DEBUG (MainThread) [custom_components.fan.xiaomi_miio_fan] Response received from miio device: [‘ok’]
2018-04-14 19:26:44 DEBUG (SyncWorker_13) [miio.device] 10.0.100.1:54321 >>: {‘id’: 107, ‘method’: ‘get_prop’, ‘params’: [‘power’]}
2018-04-14 19:26:44 DEBUG (SyncWorker_1) [miio.device] 10.0.50.4:54321 >>: {‘id’: 104, ‘method’: ‘get_prop’, ‘params’: [‘power’, ‘bright’, ‘cct’, ‘snm’, ‘dv’]}
2018-04-14 19:26:44 DEBUG (SyncWorker_10) [miio.device] 10.0.50.2:54321 >>: {‘id’: 104, ‘method’: ‘get_prop’, ‘params’: [‘power’, ‘bright’, ‘cct’, ‘snm’, ‘dv’]}
2018-04-14 19:26:44 DEBUG (SyncWorker_12) [miio.device] 10.0.50.3:54321 >>: {‘id’: 104, ‘method’: ‘get_prop’, ‘params’: [‘power’, ‘bright’, ‘cct’, ‘snm’, ‘dv’]}
2018-04-14 19:26:44 DEBUG (SyncWorker_13) [miio.device] 10.0.100.1:54321 (ts: 1970-01-08 04:29:30, id: 107) << {‘result’: [‘off’], ‘id’: 107}
2018-04-14 19:26:44 DEBUG (SyncWorker_9) [miio.device] 10.0.100.1:54321 >>: {‘id’: 206, ‘method’: ‘get_prop’, ‘params’: [‘temp_dec’, ‘humidity’, ‘angle’, ‘speed’, ‘poweroff_time’, ‘power’, ‘ac_power’, ‘battery’, ‘angle_enable’, ‘speed_level’, ‘natural_level’, ‘child_lock’, ‘buzzer’, ‘led_b’, ‘led’]}
2018-04-14 19:26:44 DEBUG (SyncWorker_1) [miio.device] 10.0.50.4:54321 (ts: 1970-01-01 03:24:53, id: 104) << {‘result’: [‘on’, 85, 1, 0, 0], ‘id’: 104}
2018-04-14 19:26:44 DEBUG (SyncWorker_12) [miio.device] 10.0.50.3:54321 (ts: 1970-01-01 08:12:59, id: 104) << {‘result’: [‘on’, 100, 100, 0, 0], ‘id’: 104}
2018-04-14 19:26:44 DEBUG (SyncWorker_10) [miio.device] 10.0.50.2:54321 (ts: 1970-01-01 03:25:01, id: 104) << {‘result’: [‘on’, 75, 1, 0, 0], ‘id’: 104}
2018-04-14 19:26:44 DEBUG (SyncWorker_9) [miio.device] 10.0.100.1:54321 (ts: 1970-01-08 04:29:30, id: 206) << {‘result’: [258, 70, 118, 387, 0, ‘off’, ‘on’, 100, ‘on’, 15, 0, ‘off’, ‘on’, 0, None], ‘id’: 206}
2018-04-14 19:26:44 DEBUG (SyncWorker_3) [miio.device] 10.0.100.1:54321 >>: {‘id’: 108, ‘method’: ‘miIO.info’, ‘params’: }
2018-04-14 19:26:44 DEBUG (MainThread) [custom_components.fan.xiaomi_miio_fan] Got new state: <FanStatus power=off, temperature=25.8, humidity=70, led=False, led_brightness=LedBrightness.Bright buzzer=True, child_lock=False, natural_level=0, speed_level=15, oscillate=True, battery=100, ac_power=True, poweroff_time=0, speed=15, angle=118
2018-04-14 19:26:44 DEBUG (SyncWorker_3) [miio.device] 10.0.100.1:54321 (ts: 1970-01-08 04:29:30, id: 108) << {‘result’: {‘life’: 620970, ‘cfg_time’: 0, ‘token’: ‘2f4d188389e9425a7cc2d77947413e24’, ‘mac’: ‘78:11:DC:32:F1:CF’, ‘fw_ver’: ‘1.2.9_50’, ‘hw_ver’: ‘MW300’, ‘model’: ‘zhimi.fan.v3’, ‘wifi_fw_ver’: ‘SD878x-14.76.36.p84-702.1.0-WM’, ‘ap’: {‘rssi’: -35, ‘ssid’: ‘Skynet’, ‘bssid’: ‘00:04:56:B5:3E:51’}, ‘netif’: {‘localIp’: ‘10.0.100.1’, ‘mask’: ‘255.0.0.0’, ‘gw’: ‘10.0.0.1’}, ‘mmfree’: 215996, ‘ot’: ‘ott’, ‘otu_stat’: [387, 347, 2594, 64, 2517, 2995], ‘ott_stat’: [6, 16, 100, 338]}, ‘id’: 108}
2018-04-14 19:26:44 DEBUG (SyncWorker_11) [miio.device] 10.0.100.1:54321 >>: {‘id’: 207, ‘method’: ‘set_power’, ‘params’: [‘on’]}
2018-04-14 19:26:44 DEBUG (SyncWorker_11) [miio.device] 10.0.100.1:54321 (ts: 1970-01-08 04:29:30, id: 207) << {‘result’: [‘ok’], ‘id’: 207}
2018-04-14 19:26:44 DEBUG (MainThread) [custom_components.fan.xiaomi_miio_fan] Response received from miio device: [‘ok’]
2018-04-14 19:26:46 DEBUG (MainThread) [custom_components.fan.xiaomi_miio_fan] Setting the fan speed to: Level 2
2018-04-14 19:26:46 ERROR (MainThread) [homeassistant.core] Error executing service <ServiceCall fan.set_speed: entity_id=[‘fan.xiaomi_smart_fan’], speed=Level 2>
Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/homeassistant/core.py”, line 1002, in _event_to_service_call
await service_handler.func(service_call)
File “/usr/lib/python3.6/site-packages/homeassistant/components/fan/init.py”, line 219, in async_handle_fan_service
yield from getattr(fan, method[‘method’])(**params)
File “/config/custom_components/fan/xiaomi_miio_fan.py”, line 435, in async_set_speed
if speed.isdigit():
AttributeError: ‘int’ object has no attribute ‘isdigit’
2018-04-14 19:26:49 ERROR (SyncWorker_17) [miio.device] Unable to discover a device at address 10.0.70.1
2018-04-14 19:26:49 ERROR (SyncWorker_7) [miio.device] Unable to discover a device at address 10.0.50.1
2018-04-14 19:26:49 ERROR (MainThread) [homeassistant.components.switch.xiaomi_miio] Got exception while fetching the state: Unable to discover the device 10.0.70.1
2018-04-14 19:26:49 ERROR (MainThread) [homeassistant.components.light.xiaomi_miio] Got exception while fetching the state: Unable to discover the device 10.0.50.1
2018-04-14 19:26:50 DEBUG (MainThread) [custom_components.fan.xiaomi_miio_fan] Setting the fan speed to: Level 4
2018-04-14 19:26:50 ERROR (MainThread) [homeassistant.core] Error executing service <ServiceCall fan.set_speed: entity_id=[‘fan.xiaomi_smart_fan’], speed=Level 4>
Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/homeassistant/core.py”, line 1002, in _event_to_service_call
await service_handler.func(service_call)
File “/usr/lib/python3.6/site-packages/homeassistant/components/fan/init.py”, line 219, in async_handle_fan_service
yield from getattr(fan, method[‘method’])(**params)
File “/config/custom_components/fan/xiaomi_miio_fan.py”, line 435, in async_set_speed
if speed.isdigit():
AttributeError: ‘int’ object has no attribute ‘isdigit’
2018-04-14 19:26:56 ERROR (MainThread) [homeassistant.core] Error executing service <ServiceCall fan.xiaomi_miio_set_child_lock_on: entity_id=[‘fan.xiaomi_smart_fan’]>
Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/homeassistant/core.py”, line 1002, in _event_to_service_call
await service_handler.func(service_call)
File “/config/custom_components/fan/xiaomi_miio_fan.py”, line 203, in async_service_handler
await getattr(device, method[‘method’])(**params)
File “/config/custom_components/fan/xiaomi_miio_fan.py”, line 340, in async_set_child_lock_on
self._device.set_child_lock, True)
AttributeError: ‘Fan’ object has no attribute ‘set_child_lock’
2018-04-14 19:27:00 ERROR (MainThread) [homeassistant.core] Error executing service <ServiceCall fan.xiaomi_miio_set_child_lock_on: entity_id=[‘fan.xiaomi_smart_fan’]>
Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/homeassistant/core.py”, line 1002, in _event_to_service_call
await service_handler.func(service_call)
File “/config/custom_components/fan/xiaomi_miio_fan.py”, line 203, in async_service_handler
await getattr(device, method[‘method’])(**params)
File “/config/custom_components/fan/xiaomi_miio_fan.py”, line 340, in async_set_child_lock_on
self._device.set_child_lock, True)
AttributeError: ‘Fan’ object has no attribute ‘set_child_lock’
2018-04-14 19:27:15 DEBUG (SyncWorker_0) [miio.device] 10.0.50.2:54321 >>: {‘id’: 105, ‘method’: ‘get_prop’, ‘params’: [‘power’, ‘bright’, ‘cct’, ‘snm’, ‘dv’]}
2018-04-14 19:27:15 DEBUG (SyncWorker_10) [miio.device] 10.0.50.4:54321 >>: {‘id’: 105, ‘method’: ‘get_prop’, ‘params’: [‘power’, ‘bright’, ‘cct’, ‘snm’, ‘dv’]}
2018-04-14 19:27:15 DEBUG (SyncWorker_9) [miio.device] 10.0.100.1:54321 >>: {‘id’: 109, ‘method’: ‘get_prop’, ‘params’: [‘power’]}
2018-04-14 19:27:15 DEBUG (SyncWorker_5) [miio.device] 10.0.50.3:54321 >>: {‘id’: 105, ‘method’: ‘get_prop’, ‘params’: [‘power’, ‘bright’, ‘cct’, ‘snm’, ‘dv’]}
2018-04-14 19:27:15 DEBUG (SyncWorker_3) [miio.device] 10.0.100.1:54321 >>: {‘id’: 208, ‘method’: ‘get_prop’, ‘params’: [‘temp_dec’, ‘humidity’, ‘angle’, ‘speed’, ‘poweroff_time’, ‘power’, ‘ac_power’, ‘battery’, ‘angle_enable’, ‘speed_level’, ‘natural_level’, ‘child_lock’, ‘buzzer’, ‘led_b’, ‘led’]}
2018-04-14 19:27:15 DEBUG (SyncWorker_0) [miio.device] 10.0.50.2:54321 (ts: 1970-01-01 03:25:32, id: 105) << {‘result’: [‘on’, 75, 1, 0, 0], ‘id’: 105}
2018-04-14 19:27:15 DEBUG (SyncWorker_10) [miio.device] 10.0.50.4:54321 (ts: 1970-01-01 03:25:24, id: 105) << {‘result’: [‘on’, 85, 1, 0, 0], ‘id’: 105}
2018-04-14 19:27:15 DEBUG (SyncWorker_5) [miio.device] 10.0.50.3:54321 (ts: 1970-01-01 08:13:30, id: 105) << {‘result’: [‘on’, 100, 100, 0, 0], ‘id’: 105}
2018-04-14 19:27:15 DEBUG (SyncWorker_9) [miio.device] 10.0.100.1:54321 (ts: 1970-01-08 04:30:01, id: 109) << {‘result’: [‘on’], ‘id’: 109}
2018-04-14 19:27:15 DEBUG (SyncWorker_3) [miio.device] 10.0.100.1:54321 (ts: 1970-01-08 04:30:01, id: 208) << {‘result’: [258, 70, 118, 387, 0, ‘on’, ‘on’, 100, ‘on’, 15, 0, ‘off’, ‘on’, 0, None], ‘id’: 208}
2018-04-14 19:27:15 DEBUG (SyncWorker_16) [miio.device] 10.0.100.1:54321 >>: {‘id’: 110, ‘method’: ‘miIO.info’, ‘params’: }
2018-04-14 19:27:15 DEBUG (MainThread) [custom_components.fan.xiaomi_miio_fan] Got new state: <FanStatus power=on, temperature=25.8, humidity=70, led=False, led_brightness=LedBrightness.Bright buzzer=True, child_lock=False, natural_level=0, speed_level=15, oscillate=True, battery=100, ac_power=True, poweroff_time=0, speed=15, angle=118
2018-04-14 19:27:16 DEBUG (SyncWorker_16) [miio.device] 10.0.100.1:54321 (ts: 1970-01-08 04:30:02, id: 110) << {‘result’: {‘life’: 621002, ‘cfg_time’: 0, ‘token’: ‘2f4d188389e9425a7cc2d77947413e24’, ‘mac’: ‘78:11:DC:32:F1:CF’, ‘fw_ver’: ‘1.2.9_50’, ‘hw_ver’: ‘MW300’, ‘model’: ‘zhimi.fan.v3’, ‘wifi_fw_ver’: ‘SD878x-14.76.36.p84-702.1.0-WM’, ‘ap’: {‘rssi’: -37, ‘ssid’: ‘Skynet’, ‘bssid’: ‘00:04:56:B5:3E:51’}, ‘netif’: {‘localIp’: ‘10.0.100.1’, ‘mask’: ‘255.0.0.0’, ‘gw’: ‘10.0.0.1’}, ‘mmfree’: 216268, ‘ot’: ‘ott’, ‘otu_stat’: [387, 347, 2594, 64, 2517, 2995], ‘ott_stat’: [6, 16, 100, 338]}, ‘id’: 110}
2018-04-14 19:27:20 ERROR (SyncWorker_7) [miio.device] Unable to discover a device at address 10.0.70.1
2018-04-14 19:27:20 ERROR (SyncWorker_11) [miio.device] Unable to discover a device at address 10.0.50.1
2018-04-14 19:27:20 ERROR (MainThread) [homeassistant.components.switch.xiaomi_miio] Got exception while fetching the state: Unable to discover the device 10.0.70.1
2018-04-14 19:27:20 ERROR (MainThread) [homeassistant.components.light.xiaomi_miio] Got exception while fetching the state: Unable to discover the device 10.0.50.1

Issue found. :slight_smile:

Please update the custom component.

OK speed works now child lock error

AttributeError: ‘Fan’ object has no attribute ‘set_child_lock’
2018-04-14 19:45:56 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2018-04-14 19:46:16 DEBUG (SyncWorker_16) [miio.device] 10.0.50.4:54321 >>: {‘id’: 113, ‘method’: ‘get_prop’, ‘params’: [‘power’, ‘bright’, ‘cct’, ‘snm’, ‘dv’]}
2018-04-14 19:46:16 DEBUG (SyncWorker_10) [miio.device] 10.0.50.2:54321 >>: {‘id’: 113, ‘method’: ‘get_prop’, ‘params’: [‘power’, ‘bright’, ‘cct’, ‘snm’, ‘dv’]}
2018-04-14 19:46:16 DEBUG (SyncWorker_19) [miio.device] 10.0.100.1:54321 >>: {‘id’: 117, ‘method’: ‘get_prop’, ‘params’: [‘power’]}
2018-04-14 19:46:16 DEBUG (SyncWorker_2) [miio.device] 10.0.100.1:54321 >>: {‘id’: 214, ‘method’: ‘get_prop’, ‘params’: [‘temp_dec’, ‘humidity’, ‘angle’, ‘speed’, ‘poweroff_time’, ‘power’, ‘ac_power’, ‘battery’, ‘angle_enable’, ‘speed_level’, ‘natural_level’, ‘child_lock’, ‘buzzer’, ‘led_b’, ‘led’]}
2018-04-14 19:46:16 DEBUG (SyncWorker_5) [miio.device] 10.0.50.3:54321 >>: {‘id’: 109, ‘method’: ‘get_prop’, ‘params’: [‘power’, ‘bright’, ‘cct’, ‘snm’, ‘dv’]}
2018-04-14 19:46:16 DEBUG (SyncWorker_10) [miio.device] 10.0.50.2:54321 (ts: 1970-01-01 03:44:33, id: 113) << {‘result’: [‘on’, 15, 1, 0, 0], ‘id’: 113}
2018-04-14 19:46:16 DEBUG (SyncWorker_16) [miio.device] 10.0.50.4:54321 (ts: 1970-01-01 03:44:25, id: 113) << {‘result’: [‘on’, 25, 1, 0, 0], ‘id’: 113}
2018-04-14 19:46:16 DEBUG (SyncWorker_2) [miio.device] 10.0.100.1:54321 (ts: 1970-01-08 04:49:07, id: 214) << {‘result’: [258, 72, 118, 367, 0, ‘on’, ‘on’, 100, ‘on’, 15, 42, ‘off’, ‘on’, 0, None], ‘id’: 214}
2018-04-14 19:46:16 DEBUG (SyncWorker_19) [miio.device] 10.0.100.1:54321 (ts: 1970-01-08 04:49:07, id: 117) << {‘result’: [‘on’], ‘id’: 117}
2018-04-14 19:46:16 DEBUG (SyncWorker_5) [miio.device] 10.0.50.3:54321 (ts: 1970-01-01 08:32:31, id: 109) << {‘result’: [‘off’, 100, 100, 0, 0], ‘id’: 109}
2018-04-14 19:46:16 DEBUG (MainThread) [custom_components.fan.xiaomi_miio_fan] Got new state: <FanStatus power=on, temperature=25.8, humidity=72, led=False, led_brightness=LedBrightness.Bright buzzer=True, child_lock=False, natural_level=42, speed_level=15, oscillate=True, battery=100, ac_power=True, poweroff_time=0, speed=15, angle=118
2018-04-14 19:46:16 DEBUG (SyncWorker_4) [miio.device] 10.0.100.1:54321 >>: {‘id’: 118, ‘method’: ‘miIO.info’, ‘params’: []}

Child lock and buzzer is broken by design and will be fixed in python-miio >0.3.9.

ok,

so what else did you want to know?

Take a look at the platform services: https://github.com/syssi/xiaomi_fan#platform-services

Please test:

  • fan.oscillate {"oscillating":true} / {"oscillating":false}
    It’s possible the turning on doesn’t work because the oscillation angle is unknown. The Mi Home app turns the oscillation on by set_angle(30) f.e. and only uses the method above to disable the oscillation.
  • fan.set_direction {"direction":"left"} / {"direction":"right"}
    Does the fan move left/right? It’s required to turn of the oscillation beforehand? Does the service work fine if oscillation is enabled?
  • fan.xiaomi_miio_set_oscillation_angle {"angle": 30} / {"angle": 60} / {"angle": 90} / {"angle": 120}
    What happens if you use other values like: {“angle”: 0}, {“angle”: 1}, {“angle”: 15} and {“angle”: 130}? Please provide the homeassistant.log.
  • fan.xiaomi_miio_set_natural_mode_on / fan.xiaomi_miio_set_natural_mode_off
    Does this service work fine? Please check the “natural_speed” attribute. Is the values stable or does it change over time (+/- a few values)
  • fan.xiaomi_miio_set_led_brightness {"brightness": 0} / {"brightness": 1} / {"brightness": 2}
    Are you able to control the led brightness?
  • fan.set_speed {speed: 0} / {speed: 1} / {speed: 10} / {speed: 100} / {speed: 110}
    Next to “Level 1…4” it should also be possible to provide an integer (0…100). What happens if you set the speed to a value of “0”? Does the device turn off? What’s the response of the device for values like 0, 1, 10, 100, 110?

@jimpower Ping? :wink:

Sorry I have been away for work for a few days might be able to help again tomorrow.

2 Likes

Did you guys manage to advance on this? Got a fan in the mail. Will be happy to help once it reaches me…

I would like to complete this component but I’m stuck without support.

@syssi I’m happy to help test. I have the same Xiaomi Smart-Fan (previously working via HomeBridge) and am in the process of transitioning to Home Assistant on a Raspberry Pi 3 (Model B).

1 Like

Total newbie here to Hass.IO though, so bare with me! Tried to enable following the GitHub directions linked above, but get the following error:

starting version 3.2.4
Testing configuration at /config
Failed config
  General Errors: 
    - Platform not found: fan.xiaomi_miio_fan
Successful config (partial)

Is there a way I can test my Token Key? I had saved (and working) from my Homebridge installation, but it might have changed? (Unsure how they work).

The fan isn’t officially supported by HA. You’ve to download/use this custom component:

https://developers.home-assistant.io/docs/en/creating_component_loading.html

Okay great, thank you! I have it working now (with a new token), and it’s responding as expected within HA.

Some observations:

  • No ability to move the fan head left/right, as you can natively in the MiHome App
  • Speed controls work in 4-steps. Possible to make this % based? Using Homebridge you could control the fan from 0-100% speed which was very useful
  • Temperature/Humidity readings appear to be working
  • Cannot control the oscillate angle (ie; only oscillate 60°, or 90°, etc)

What would you like me to test? :slight_smile: Next step for me is to see how it translates using HA’s built-in Homebridge now, so I can add as a HomeKit accessory via my iPhone.

Are you aware of the services in Home Assistant? There are some feature which are controllable by some services and aren’t visible at the UI. The services are mentioned here:

The set_speed service accepts individual fan speeds f.e.

Could you answer these bunch of questions: Mi Smart Pedestal Fan

@jimpower I am thinking about buying this fan myself. Do you have any information on its standby power consumption. This site (https://www.techreviewer.de/xiaomi-standventilator-test/) is reporting 8,76 watts in standby mode. Can you confirm this?

To be honest I’m not sure, I have this fan plugged into a smart power strip and have that strip turned off during the day it is only powered for 2 hours overnight to charge the fan vaccum and mop. The fan has a battery which I have run for over 2 hours without it running out.