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
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.
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}
fan.set_direction
{"direction":"left"}
/ {"direction":"right"}
fan.xiaomi_miio_set_oscillation_angle
{"angle": 30}
/ {"angle": 60}
/ {"angle": 90}
/ {"angle": 120}
fan.xiaomi_miio_set_natural_mode_on
/ fan.xiaomi_miio_set_natural_mode_off
fan.xiaomi_miio_set_led_brightness
{"brightness": 0}
/ {"brightness": 1}
/ {"brightness": 2}
fan.set_speed
{speed: 0}
/ {speed: 1}
/ {speed: 10}
/ {speed: 100}
/ {speed: 110}
Sorry I have been away for work for a few days might be able to help again tomorrow.
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).
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:
What would you like me to test? 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.
@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.