home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.17k stars 29.85k forks source link

Broadlink switch sp3mini error #36624

Closed huangqian8 closed 3 years ago

huangqian8 commented 4 years ago

The problem

ERROR (MainThread) [homeassistant.components.broadlink.switch] Failed to update state: The device storage is full

Environment

Problem-relevant configuration.yaml

switch:
  - platform: broadlink
    host: 192.168.2.245
    mac: 'mac'
    friendly_name: sp3mini
    type: sp3

Traceback/Error logs

ERROR (MainThread) [homeassistant.components.broadlink.switch] Failed to update state: The device storage is full

Additional information

probot-home-assistant[bot] commented 4 years ago

broadlink documentation broadlink source (message by IssueLinks)

huangqian8 commented 4 years ago

I have checked the config file according to the documentation, still repeat the above error. Switch can be controled.

felipediel commented 4 years ago

Hi @huangqian8. Thanks for reporting this issue!

I need to debug you to understand what is going on. Please download this script to your computer, open the folder with a terminal and type python3 debug.py. Then send me debug.txt.

huangqian8 commented 4 years ago

Hi @felipediel. Thanks for reply.

The following is the content of debug.txt.

04:31:04,734 root INFO Broadlink API Debug 04:31:04,742 main DEBUG Starting discovery...

04:31:04,744 main DEBUG [Request] bytearray(b'\x00\x00\x00\x00\x00\x00\x00\x00\x08\x00\x00\x00\xe4\x07\x1f\x04\x14\x04\x12\x06\x00\x00\x00\x00\xc0\xa8\x02\x04\n\x8f\x00\x00\x02\xc2\x00\x00\x00\x00\x06\x00\x00\x00\x00\x00\x00\x00\x00\x00')

04:31:04,939 main DEBUG [Response] b"\x00\x00\x00\x00\x00\x00\x00\x00\x08\x00\x00\x00\xe4\x07\x1f\x04\x14\x04\x12\x06\x00\x00\x00\x00\xc0\xa8\x02\x04\n\x8f\x00\x00\xbc\xd0\x00\x00\x00\x00\x07\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x9d'\xf4\x02\xa8\xc0\xf1nX4\xea4\xe6\x99\xba\xe8\x83\xbd\xe9\x81\xa5\xe6\x8e\xa7\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x01"

04:31:06,110 main DEBUG [Response] b'\x00\x00\x00\x00\x00\x00\x00\x00\x08\x00\x00\x00\xe4\x07\x1f\x04\x14\x04\x12\x06\x00\x00\x00\x00\xc0\xa8\x02\x04\n\x8f\x00\x00\xa1\xd2\x00\x00\x00\x00\x07\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>u\xf5\x02\xa8\xc0h\xf5<w\x0fxWi-Fi\xe6\x8f\x92\xe5\xba\xa7\xef\xbc\x8810A\xef\xbc\x89\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x01'

04:31:09,748 main DEBUG [Device 0] 04:31:09,749 main DEBUG Host: ('192.168.2.244', 80) 04:31:09,750 main DEBUG Mac: 34ea34586ef1 04:31:09,751 main DEBUG Type: 0x279d

04:31:09,752 main DEBUG Starting authentication...

04:31:09,754 main DEBUG [Request] bytearray(b"Z\xa5\xaaUZ\xa5\xaaU\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00k\xf0\x00\x00\x9d\'e\x00\xf4l\xf1nX4\xea4\x00\x00\x00\x00\xa1\xc3\x00\x00E4R\xe7\xf9.\xda\x95\x83D\x93\x085\xef\x9am\xfbi-\xc3p\xb9\x04C\xac\\xd6?\xbbS\xad\xfa\x08\x81L\xa7\xf8\xcfAq\x002\x8eW\x0c;\x86\xc9M\x05p\x84I\xa3\x89\xe2\x9a\xe1\x04T6\xa0[\xdd\xdc\x02\xc1a\xaf\x13%\xe8~\x19\xb0\xf7\xd1\xce\x06\x8d")

04:31:10,217 main DEBUG [Response] b'Z\xa5\xaaUZ\xa5\xaaU\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x9b\xd6\x00\x00\x9d\'\xe9\x03\xf4l\xf1nX4\xea4\x00\x00\x00\x00\xcd\xc4\x00\x00~\xe5\x13\x14\x9a\x03\x886.l\xb4d;\xef\x9a"\xb4\'P<\x1d\xd3Q {W\x17\x9c\xc2f'

04:31:10,219 main DEBUG Payload: b'\x02\x00\x00\x00\xaf3$\n\xe5\xa6\x9ay\x1c\x1a\x11iR\x8d\x87X\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'

04:31:10,220 main DEBUG Authentication successful.

04:31:10,221 main DEBUG Requesting data...

04:31:10,222 main DEBUG [Data 1]

04:31:10,223 main DEBUG [Request] bytearray(b"Z\xa5\xaaUZ\xa5\xaaU\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xfa\xcf\x00\x00\x9d\'j\x00\xf5l\xf1nX4\xea4\x02\x00\x00\x00\xb0\xbe\x00\x00\xa9\x95ynL\x87\x0e\xae\xbd.R\x10S\x1f\xaa*")

04:31:10,361 main DEBUG [Response] b'Z\xa5\xaaUZ\xa5\xaaU\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00)p\x00\x00\x9d\'\xee\x03\xf5l\xf1nX4\xea4\x02\x00\x00\x00<\xc7\x00\x00\xa9\x95ynL\x87\x0e\xae\xbd.R\x10S\x1f\xaa\xd2\xb3\x01\xd3\xc1\x95\xe9 \x85\xf9\x0f\x12\xd0\xac\xd5e\xef\xd9f\xd9\xdf\xe6\xd7U\xd7\xcb\x9b\x84\xc5\xbfx\xa1\x9a&\xc3\xe4W;$b\xe4\xefw\x0bf\x05._K\xd6\xe9]X]Pr"\x97\xaf\xe0\x93Q\xe9\xa9\x02G)\xa8\xa3K\xea\xb7\x91s\xbf\xd6\xe6?\x13\xb0\x87H\xdd\xc0\xe5\x10\xed\xc3\x1a\x8c\xd6bU\x0b\xb8\xe5&\xb5P\xec\x8f{\x88u\x1a9M"\x1bM\x98#\xd1\xa1\x95\x99\xc9\xe9="&\xa43<-\xb6\xfdU\xa2\xb1b\xd0\xc1\xd8\x07\xd2\xaf\xa1Q\x9d\x18\x0e(\xe2|\x84\x9c\x7f\x9cr\xa6K&#\xad\xae\x110,@\x8e\x8d\x18!YB\x9f\xdd\x96\xc3\xf6\xe4(\xc8\xae\x04lK\xb0\xae\x13\xc6\xa5r\xff\xd4\r\xe1-\xce\xbf\xacZ/&\x19\x13\xb0\x02\x05\xf9Y\xef\x14\xe8\xdd\xb2\xa1=\x05\xbd\x99\xa9}\x95j\xa4?"\x94\xa1o\xcb\xb4\x9f\xc1\x08FRY\xb6@\x17\x03CDN\xf4\xd9\x9e\xe2\xc1\x8b\x11\x9e\xcdP2\xdf\xe6\xb7\x89\xa47B\x8c\xa7\x0c\xae\x03z\xaf\xb4\xe4:=\xa6\xf0\xd7\xbe\x89!\x8eE\x12\xb3x\x12\x8c\xe9\xfb06u\x93\x98\xe7\xc2$!L\xbc\x1b@T\xc1F\xee\x99oM5Sp\xdb\xdf\\x85\x88\x11\x89\xe43\xf8u 2'

04:31:10,363 main DEBUG Payload: b'\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xe6\x99\xba\xe8\x83\xbd\xe9\x81\xa5\xe6\x8e\xa7\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'

04:31:10,365 main DEBUG [Data 2]

04:31:10,367 main DEBUG [Request] bytearray(b"Z\xa5\xaaUZ\xa5\xaaU\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x9b\xd2\x00\x00\x9d\'j\x00\xf6l\xf1nX4\xea4\x02\x00\x00\x00\xb4\xbe\x00\x00\xdaCM\xde\xaebO\xd7HP\xe8\x84[\xa3\xb2\xb1")

04:31:10,751 main DEBUG [Response] b'Z\xa5\xaaUZ\xa5\xaaU\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x15\xd5\x00\x00\x9d\'\xee\x03\xf6l\xf1nX4\xea4\x02\x00\x00\x00\xb4\xbe\x00\x00\xdaCM\xde\xaebO\xd7HP\xe8\x84[\xa3\xb2\xb1\xf7t\xf5&\xb6G?;wM0n-\x92-\xe1\x1c\x7f\xf9\xa2\xea\x9d\xed\x17S\x12\xfc\xcaqC\xaf\x95\xfd\xf6\x12Y\xbb6\x83e\xd9\x95\xf5\xd9Q)\x88\x87\xdf\xad\xdf9(O\xc38\xce@xc\xe0\xe57\xad\x07\xc3d\xb3\xa4=\xb2\x12\x13\x08^\xd7\xa8\xc0\x12\xa6Y\xb4\xb1\xeb\xf1\x90\xca\xf6\xc4\xe6v\xe3\xf1\xfc\xcce\xa9\x0b\xa8\xc6O\x9a\xad\xa4\xdc\xe0\r_G1F\x9b\xa2dI\xb5\xb6P\x98\xbe{\x08\x05\xbf8)\xc7\xcf\xcfJ_3\xd1\xdf\x95A\x0f\xb68\x7f\xbe1v\xe3 \x9b\x03\x98H\xf2s\xd5\x03\xb4lZvg\x85\x85\xd8R\xe8M\xef^+T>\xaa6\xea\xfc\xdc\xba\t\xedi/\x00:\x90\xa9\xb8\x86=\xc9\xb2\x97Y\xfa\x99\x9a2m\xcb\xc9\xce\xee\xe8\xa1\x06\x9a\xa2v\xee\x13 j\x80\xb82\x0c\x1d}\xf6e \xb1\xf7tm\x93\xd7\x00\xddc.b\xe1\x89\x1e#\x80C\x17-L\x00dX\x99(\xb4\x95\xa5\xba\xee^\xcc\xd5<\xe3\x80\xec\x98l\xaa\xfd\xc6\x82\n\x12+\x86\x8c#\xf3\xa1\x0c\x7f"\xc1\xb3S-\x90\x0fM\xbce\xebm\x9aR|a\xae\xce=+\xf5\xb6\x959>\xa5\xc1\x9d\xf7?\xec\x8aC\x99\xfdV\xb0\x0c\x90\x95\xcb\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b8\xba\xa5f\xe1\xf9\xf2\xc4\xe6\xd3\xdeR|\xec\x0c|\xbc\x02\x053\xf0X\xa5("h\xe0\xb3\x9a\xf0\x81\xa8\x0e\xf1\xb1h\xc8\xf4\xe8n:\x13X\xfa\x95\xb4\xd2\x99G\xc0-C\x82\x8f\xa0\xfd\x95\x90\xb9\xf1\xaa\xf6\xa8\xdbM\xa0\x9b\x04\x8c\xa8\xb6$U\x93\xb8\xe7X\xec\'"\x1c\x17|!\xfdN@y\xa5\x92\xdcm\x0f&\xf5\xc9b3B\xf2\xa1G3y!^\x01N\x9f\xcc\xbb\x906\xdc\x9a\x11\x9b\x90o\xca\x16%\xd4\x15\xb4\xf5\x11av\xc0\xc0\xafSi\x14$L`l\xadd\x06\xfb\xb8I\x02\xb8\xfdca%\xdb\xc1\xe8\xb9\x81\x94fP\x0c\x85a\xb4-\x98$\xdc[\x81r\x83\xba\xc0h5\x04\xf3\xc0M\xe3\x82\xf4\xbf\x1a""\xe20\xf33\x9a\x0e\xfd\xf8\xa6\x9bh\xff\x8a-hU\x11\x07\xa2\xad$|&\xe2\x14\x9cW\x8e\x11@\xa8Q\x16z\x17IK\x87$\x93\xc4\x1cr\x82S\xabm\xf3 ^\x18w\xeamS-_/\xb0\x04\x81\xf4\x9d\xaa9\x8e\xc9\x0c\x92\x9c\xb9\xb0\x01sJI\xd2@\x94\x9a8\x89\xc9\xa9\xf7\xc0\xb2\xfc\xd4"\xe0FNB\xf8?\x85:\x82\xe5\x91\xc4?\xb4\xd6q!\xa7\xb7\xfb\xb3\xf0\xe0\x15\x8c\x98=-7\xb5\x1e\xb5\xff8\x1d'

04:31:10,753 main DEBUG Payload: b'\x05\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'

04:31:10,755 main DEBUG [Data 3]

04:31:10,757 main DEBUG [Request] bytearray(b"Z\xa5\xaaUZ\xa5\xaaU\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xa6\xd2\x00\x00\x9d\'j\x00\xf7l\xf1nX4\xea4\x02\x00\x00\x00q\xc3\x00\x00\x1a\xf0*\xe3\x9e\xdf\x82\xdcg\x9d\xae|\x98v1\xcc")

04:31:10,803 main DEBUG [Response] b"Z\xa5\xaaUZ\xa5\xaaU\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00(\xd5\xfc\xff\x9d'\xee\x03\xf7l\xf1nX4\xea4\x02\x00\x00\x00q\xc3\x00\x00\x1a\xf0*\xe3\x9e\xdf\x82\xdcg\x9d\xae|\x98v1\xcc"

04:31:10,805 main DEBUG Payload: b'\xa5\xa5ZZ\xd8\xc1&\x0b\x02\x00\x00\x00{}\x00\x00'

04:31:10,807 main DEBUG [Device 1] 04:31:10,808 main DEBUG Host: ('192.168.2.245', 80) 04:31:10,808 main DEBUG Mac: 780f773cf568 04:31:10,809 main DEBUG Type: 0x753e

04:31:10,809 main DEBUG Starting authentication...

04:31:10,811 main DEBUG [Request] bytearray(b'Z\xa5\xaaUZ\xa5\xaaU\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xe0\xef\x00\x00>ue\x00\xdb}h\xf5<w\x0fx\x00\x00\x00\x00\xa1\xc3\x00\x00E4R\xe7\xf9.\xda\x95\x83D\x93\x085\xef\x9am\xfbi-\xc3p\xb9\x04C\xac\\xd6?\xbbS\xad\xfa\x08\x81L\xa7\xf8\xcfAq\x002\x8eW\x0c;\x86\xc9M\x05p\x84I\xa3\x89\xe2\x9a\xe1\x04T6\xa0[\xdd\xdc\x02\xc1a\xaf\x13%\xe8~\x19\xb0\xf7\xd1\xce\x06\x8d')

04:31:11,34 main DEBUG [Response] b'Z\xa5\xaaUZ\xa5\xaaU\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00^\xd7\x00\x00>u\xe9\x03\xdb}h\xf5<w\x0fx\x00\x00\x00\x00\x19\xc5\x00\x00e\xa1\xf5\xdb \n\x1d\x8a\xafF\x1a#W\x8a\xdcq \x9d%\x19\x9f\xdb\xe2\x80@;\x90,\x9f\xa8\r\xde'

04:31:11,36 main DEBUG Payload: b'\x01\x00\x00\x00q\xb0CQ\xa0\xdb\x06\x07G*\xd43\x1cm\xf38\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'

04:31:11,37 main DEBUG Authentication successful.

04:31:11,38 main DEBUG Requesting data...

04:31:11,39 main DEBUG [Data 1]

04:31:11,41 main DEBUG [Request] bytearray(b"Z\xa5\xaaUZ\xa5\xaaU\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x7f\xd1\x00\x00>uj\x00\xdc}h\xf5<w\x0fx\x01\x00\x00\x00\xb0\xbe\x00\x00\'\xed\xf4n\x12\x8d\x91\xb5\x98Y\x94S\xa3\x06\xcd\xaf")

04:31:11,164 main DEBUG [Response] b'Z\xa5\xaaUZ\xa5\xaaU\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1b\xc7\x00\x00>u\xee\x03\xdc}h\xf5<w\x0fx\x01\x00\x00\x00\xd8\xca\x00\x00\xdfB\xb3i\xc9:\xe6>\tN>\xe7\x82\x9e\x90\xc0\x9e\x07\x13\xec\xb4\xce\xbbh&\x11\xf6\xe3)\x8c&x;\x90s\xc6\xe7\x89\xcd&z\xff2\xdf\xd2\xb6d\xc0\xcf\xbfFH"\x91\x94\x9f\xd2l\xcc\xf0\x19l\x15\xbe\xb3\x0fv\xad\r\x19$\xf9\xcd\x08u\x9eS\x12\xf5\x02\xaa\x0c\x8f\xbcK\xa4\x13\xc0\xa3\xadBo\xda\xdeY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x84\xe8\xe1XC\xd2$\x02\xea\xebh\xdb\x06\xf6\x15kK\xd9\x03\[}o\xa2&N\xdd\x92\xa9u\xcd\xa6\xeexZ>\x1d\xefR\n\x11>\x98'

04:31:11,166 main DEBUG Payload: b'\x01\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00Wi-Fi\xe6\x8f\x92\xe5\xba\xa7\xef\xbc\x8810A\xef\xbc\x89\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xe4\x07\n\x1f\x04\x04\x12\x06\x00\x00\x00\x00\x00\x00\x00\x00'

04:31:11,168 main DEBUG [Data 2]

04:31:11,170 main DEBUG [Request] bytearray(b'Z\xa5\xaaUZ\xa5\xaaU\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xeb\xd1\x00\x00>uj\x00\xdd}h\xf5<w\x0fx\x01\x00\x00\x00\xb4\xbe\x00\x00\xcf\xf1D\x9fW\x1a\xf8\x8c\xc5S\x98\x8cc\xec\x0f\x8d')

04:31:11,260 main DEBUG [Response] b'Z\xa5\xaaUZ\xa5\xaaU\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xa8\xcb\xfb\xff>u\xee\x03\xdd}h\xf5<w\x0fx\x01\x00\x00\x00\xaf\xbe\x00\x00'

04:31:11,261 main DEBUG Payload: b''

04:31:11,263 main DEBUG [Data 3]

04:31:11,265 main DEBUG [Request] bytearray(b'Z\xa5\xaaUZ\xa5\xaaU\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x15\xd2\x00\x00>uj\x00\xde}h\xf5<w\x0fx\x01\x00\x00\x00q\xc3\x00\x00\x85Ls\xfc\x98\xb5x\xf7\x87\xaf\x98\xebt\x1dtl')

04:31:11,361 main DEBUG [Response] b'Z\xa5\xaaUZ\xa5\xaaU\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xa9\xcb\xfb\xff>u\xee\x03\xde}h\xf5<w\x0fx\x01\x00\x00\x00\xaf\xbe\x00\x00'

04:31:11,363 main DEBUG Payload: b''

04:31:11,364 main DEBUG Checking power...

04:31:11,366 main DEBUG [Request] bytearray(b"Z\xa5\xaaUZ\xa5\xaaU\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x82\xd1\x00\x00>uj\x00\xdf}h\xf5<w\x0fx\x01\x00\x00\x00\xb0\xbe\x00\x00\'\xed\xf4n\x12\x8d\x91\xb5\x98Y\x94S\xa3\x06\xcd\xaf")

04:31:11,499 main DEBUG [Response] b'Z\xa5\xaaUZ\xa5\xaaU\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1e\xc7\x00\x00>u\xee\x03\xdf}h\xf5<w\x0fx\x01\x00\x00\x00\xd8\xca\x00\x00\xdfB\xb3i\xc9:\xe6>\tN>\xe7\x82\x9e\x90\xc0\x9e\x07\x13\xec\xb4\xce\xbbh&\x11\xf6\xe3)\x8c&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99\xd5\xe9\x8ffx\x9b\x05\xd4g\xcbAR\xda1\xa2r\xeew\x02\x1c\xca\xfd\x13\xfd5\xb8 _\xb2\xbc\x04A\xd2\xc5\x1f\xf93\x15$\x07|<h\xd1\x83J\xe1\x1c\x0b\xb7\x8e\x88\x0e\x91\xb3\x94L:C\xc49x:\xd2\xb8\x8f\x84\xe8\xe1XC\xd2$\x02\xea\xebh\xdb\x06\xf6\x15kK\xd9\x03\[}o\xa2&N\xdd\x92\xa9u\xcd\xa6\xeexZ>\x1d\xefR\n\x11>\x98'

04:31:11,501 main DEBUG Payload: b'\x01\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00Wi-Fi\xe6\x8f\x92\xe5\xba\xa7\xef\xbc\x8810A\xef\xbc\x89\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xe4\x07\n\x1f\x04\x04\x12\x06\x00\x00\x00\x00\x00\x00\x00\x00'

04:31:11,503 main DEBUG Checking energy...

04:31:11,505 main DEBUG [Request] bytearray(b'Z\xa5\xaaUZ\xa5\xaaU\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf5\xd1\x00\x00>uj\x00\xe0}h\xf5<w\x0fx\x01\x00\x00\x00\xe9\xbf\x00\x00\x17\x96\xeb\x8c\x18\xb5m\xaf\xdeHT3\xdb_\xf1\xab')

04:31:11,592 main DEBUG [Response] b'Z\xa5\xaaUZ\xa5\xaaU\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xab\xcb\xfb\xff>u\xee\x03\xe0}h\xf5<w\x0fx\x01\x00\x00\x00\xaf\xbe\x00\x00'

04:31:11,594 main DEBUG Payload: b''

04:31:11,595 main DEBUG <class 'main.StorageError'>: The device storage is full

felipediel commented 4 years ago

@huangqian8 Thank you! I will fix this in the next update.

sKooTr commented 4 years ago

@felipediel I also have an SP3mini and get these log error messages every 30 seconds. I think the message refers to power load measurement - a function the SP3mini does not have. On/off switching works fine. Am running latest current release v0.114.4. I am using the SP2 type as the SP3mini is not listed as a supported type:

felipediel commented 4 years ago

Fixed: https://github.com/home-assistant/core/pull/36914.

jamesyym commented 4 years ago

Fixed: #36914.

Could you tell me how to update and fix this issue? Thanks.

felipediel commented 4 years ago

You need to wait for the next release or pull the dev branch, which is usually unstable.

bramkragten commented 4 years ago

I'm on the 0.115 beta, and am getting these messages a lot in my log.

Using a Broadlink RM Mini3 Black Bean

felipediel commented 4 years ago

Please send me the message.

bramkragten commented 4 years ago
Log Details (ERROR)
Logger: homeassistant.components.broadlink.updater
Source: helpers/update_coordinator.py:165
Integration: Broadlink (documentation, issues)
First occurred: 14 September 2020, 9:54:55 (1280 occurrences)
Last logged: 14:19:07

Error fetching device data: The device storage is full
felipediel commented 4 years ago
>>> import broadlink as blk
>>> devs = blk.discover(timeout=5)
>>> [(d.host[0], hex(d.devtype), d.mac.hex()) for d in devs]  # Print devices
>>> d = devs[0]  # Example
>>> d.auth()
>>> d.check_sensors()

What is the output?

felipediel commented 4 years ago

Do you get the same exception?

bramkragten commented 4 years ago

Yes

>>> import broadlink as blk
>>> devs = blk.discover(timeout=5)
>>> [(d.host[0], hex(d.devtype), d.mac.hex()) for d in devs]
[('192.168.1.27', '0x5f36', '39ee7aa7df24')]
>>> d = devs[0]
>>> d.auth()
True
>>> d.check_sensors()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/bram/Documents/projects/home-assistant/core/venv/lib/python3.7/site-packages/broadlink/__init__.py", line 680, in check_sensors
    'temperature': self.check_temperature(),
  File "/Users/bram/Documents/projects/home-assistant/core/venv/lib/python3.7/site-packages/broadlink/__init__.py", line 673, in check_temperature
    return self._read_sensor( 0x24, 4, 100.0 )
  File "/Users/bram/Documents/projects/home-assistant/core/venv/lib/python3.7/site-packages/broadlink/__init__.py", line 653, in _read_sensor
    check_error(response[0x22:0x24])
  File "/Users/bram/Documents/projects/home-assistant/core/venv/lib/python3.7/site-packages/broadlink/exceptions.py", line 97, in check_error
    raise exception(error_code)
broadlink.exceptions.StorageError: The device storage is full
felipediel commented 4 years ago

Thank you! This will be fixed with: https://github.com/home-assistant/core/pull/39228/commits/34561f03039e216a034cfd4ccceb321c87a34ac4.

lumper5 commented 3 years ago

I have two broadlinks. My RM2 Pro+ connects with the new integration in 0.115.0. However, my Mini3 blackbean cannot be automatically or manually discovered. Both devices worked prior to 0.115.0 when entered manually into the config.yaml. Seems to be related to this issue, perhaps? So, effectively, I am with a crippled device until this is resolved. Thanks.

felipediel commented 3 years ago

Same problem. You need to wait for this PR to be merged or update manually with the commit above.

dscao commented 3 years ago

Logger: homeassistant.components.broadlink Source: components/broadlink/config_flow.py:46 Integration: Broadlink (documentation, issues) First occurred: 3:51:54 (9 occurrences) Last logged: 4:34:18

Unsupported device: 0x7d11. If it worked before, please open an issue at https://github.com/home-assistant/core/issues

0x7d11 add sp mini 3 then Error fetching device data: The device storage is full

felipediel commented 3 years ago

@dscao Could you help me with some tests so I can add support for your device?

python3 -m venv venv
source venv/bin/activate
pip3 install broadlink
python3
import broadlink as blk
d = blk.sp2(('192.168.0.17', 80), 'aabbccddeeff', 0x7d11)  # Example
d.auth()
d.check_power()

What is the output?

felipediel commented 3 years ago

Then:

d.get_energy()

What is the output?

ltnguyen88 commented 3 years ago

Logger: homeassistant.components.broadlink Source: components/broadlink/config_flow.py:46 Integration: Broadlink (documentation, issues) First occurred: 7:24:11 AM (4 occurrences) Last logged: 9:42:06 AM

Unsupported device: 0x7583. If it worked before, please open an issue at https://github.com/home-assistant/core/issues

My device: Broadlink SP mini 3

felipediel commented 3 years ago

@ltnguyen88 @dscao

  1. Did the device work correctly before the update?
  2. Is this an OEM device? (manufactured by Broadlink and distributed by another brand)

We need to know this things to support your devices correctly.

fkleon commented 3 years ago

@felipediel I have a 0x7d11 that never worked with home-assistant or python-broadlink. It's labelled as BroadLink SP mini 3 on the sticker.

Here's the command output.

>>> import broadlink as blk
>>> d = blk.sp2(('192.168.1.199', 80), 'aabbccddeeff', 0x7d11)
>>> d.auth()
True
>>> d.check_power()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/tmp/venv/lib/python3.8/site-packages/broadlink/switch.py", line 200, in check_power
    check_error(response[0x22:0x24])
  File "/tmp/venv/lib/python3.8/site-packages/broadlink/exceptions.py", line 137, in check_error
    raise exception(error_code)
broadlink.exceptions.StorageError: [Errno -5] The device storage is full
>>> d.get_energy()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/tmp/venv/lib/python3.8/site-packages/broadlink/switch.py", line 217, in get_energy
    check_error(response[0x22:0x24])
  File "/tmp/venv/lib/python3.8/site-packages/broadlink/exceptions.py", line 137, in check_error
    raise exception(error_code)
broadlink.exceptions.StorageError: [Errno -5] The device storage is full
ltnguyen88 commented 3 years ago

@felipediel Thanks for reply.

  1. The device not wok before the update. error: The device storage is full (Home Assistant 0.98.2) error: Unsupported device: 0x7583 (Home Assistant 0.116.0)
  2. Origin: China https://www.aliexpress.com/item/4001227152800.html?spm=a2g0o.productlist.0.0.e8d817ceSBK985&algo_pvid=112ad05b-0480-4c96-990a-5818342f57b0&algo_expid=112ad05b-0480-4c96-990a-5818342f57b0-2&btsid=0bb0600116021298320965454e179f&ws_ab_test=searchweb0_0,searchweb201602_,searchweb201603_
felipediel commented 3 years ago

Let's try the sp4 class:

import broadlink as blk
d = blk.sp4(('192.168.0.17', 80), 'aabbccddeeff', 0x7d11)  # Example
d.auth()
d.check_power()

Does it work?

fkleon commented 3 years ago

@felipediel Looking much better. Now returning 0 when power is switched off, and 1 when it's turned on.

>>> import broadlink as blk
>>> d = blk.sp4(('192.168.1.199', 80), 'aabbccddeeff', 0x7d11)
>>> d.auth()
True
>>> d.check_power()
1
felipediel commented 3 years ago

This is good news. We may be able to support these devices. What about...

d.set_power(True)
d.set_nightlight(True)
d.get_state()

What is the output?

fkleon commented 3 years ago

@felipediel Changing power state or night light via this library doesn't seem to do anything, but I also don't get any errors.

I don't know if this has a proper night light, there is a blue LED indicator to tell whether it's powered on but it's certainly bright enough to act as a night light.

>>> d.set_power(True)
>>> d.set_nightlight(True)
>>> d.get_state()
{'pwr': 0, 'maxworktime': 0, 'indicator': 1}
>>> d.check_power()
0
felipediel commented 3 years ago

I am inside the official app. They send this payload to turn on this device:

b'\xa5\xa5ZZ\xc2\xc3\x02\x0b\t\x00\x00\x00{"pwr":0}\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'

Which is the same payload sent by our sp4 class, but looks like the state is inverted. Could you please try d.set_power(False) to see if it turns on?

Edit: Wrong packet. This code turns off.

felipediel commented 3 years ago

Something that will help us understand this device... Turn the device on with the official app and d.get_state(). Then turn it off and d.get_state() again to see the difference.

fkleon commented 3 years ago

@felipediel Thanks for investigating!

It seems to return the correct state when toggled via the IHC app. Note I can only control it with the older IHC app; the newer BroadLink app lists the device, but refuses to interact with it ("It's currently not supported on this device.").

Setting power to False has no effect, no matter whether the switch is turned on or off.

# Turn ON via IHC app
>>> d.get_state()
{'pwr': 1, 'maxworktime': 0, 'indicator': 1}
# Turn OFF via IHC app
>>> d.get_state()
{'pwr': 0, 'maxworktime': 0, 'indicator': 1}

I can capture some network traces if that would be helpful.

felipediel commented 3 years ago

No need to, I already found the problem. Your device will be supported soon.

felipediel commented 3 years ago

@fkleon Thanks for your help. May I ask you one more thing? We need to test the update in Home Assistant. Do you know how to pull this branch to a dev environment and test your device? You need to pull the library updates too.

felipediel commented 3 years ago

I prepared a new version of the library with all the updates. You can get it here. If you are running a dev container, you can add this line to the end of Dockerfile.dev: RUN pip3 install git+https://github.com/felipediel/python-broadlink.git@latest-broadlink --upgrade && pip3 install cryptography==2.9.2

fkleon commented 3 years ago

@felipediel I can confirm that controlling the switch works fine with python-broadlink on your latest-broadlink branch, and also with home-assistant on your sp4 branch. Thanks a lot!

felipediel commented 3 years ago

Thank you!

felipediel commented 3 years ago

@fkleon I had to update the branch to add support for SP4M. Could you please help to test it again? 😆 Sorry!

fkleon commented 3 years ago

@felipediel Still works for me with the newest code.

krook1 commented 3 years ago

Hello, Im trying to test the code in home assistant. Are there any changes in homeassistant/components/broadlink too? I see that there is code in const.py and switch.py, that correspond to SP1/SP2 switches, but no code for SP3/SP4. Are the changes in python-broadlink sufficient to add support for SP3/SP4?

(I have an SP4 switch, and with the python-broadlink changes to init.py/switch.py, things work correctly in python interpreter, but when I try the Broadlink integration from UI, its still broken)

krook1 commented 3 years ago

Hello, Im trying to test the code in home assistant. Are there any changes in homeassistant/components/broadlink too? I see that there is code in const.py and switch.py, that correspond to SP1/SP2 switches, but no code for SP3/SP4. Are the changes in python-broadlink sufficient to add support for SP3/SP4?

(I have an SP4 switch, and with the python-broadlink changes to init.py/switch.py, things work correctly in python interpreter, but when I try the Broadlink integration from UI, its still broken)

Okay, looks like I missed the part about the sp4 branch from @felipediel . Checked it out, the switch works!

github-actions[bot] commented 3 years ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.