Skip to content

"cgllc.airmonitor.b1" No response from the device #603

Closed
@songzh96

Description

@songzh96

Model: cgllc.airmonitor.b1

Firmware: 3.5.7_0094

Error: ** No response from the device**

This is my test code

from miio.airqualitymonitor import AirQualityMonitor

ip2 = '192.168.1.147'
token2 = '67324f4f47496353756b704a6c666f6c'
model2 = 'cgllc.airmonitor.b1'

am = AirQualityMonitor(ip=ip2, token=token2, model=model2)

if __name__ == "__main__":
    print(1)
    print(am.status())

log:

File ".\test.py", line 20, in <module>
    print(am.status().humidity)
  File "C:\Users\songzh\AppData\Local\Programs\Python\Python37\lib\site-packages\miio\airqualitymonitor.py", line 235, in status
    values = self.send("get_air_data")
  File "C:\Users\songzh\AppData\Local\Programs\Python\Python37\lib\site-packages\miio\device.py", line 310, in send
    return self.send(command, parameters, retry_count - 1)
  File "C:\Users\songzh\AppData\Local\Programs\Python\Python37\lib\site-packages\miio\device.py", line 310, in send
    return self.send(command, parameters, retry_count - 1)
  File "C:\Users\songzh\AppData\Local\Programs\Python\Python37\lib\site-packages\miio\device.py", line 310, in send
    return self.send(command, parameters, retry_count - 1)
  File "C:\Users\songzh\AppData\Local\Programs\Python\Python37\lib\site-packages\miio\device.py", line 313, in send
    raise DeviceException("No response from the device") from ex
miio.exceptions.DeviceException: No response from the device

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions