AlexxIT / SonoffLAN

Control Sonoff Devices with eWeLink (original) firmware over LAN and/or Cloud from Home Assistant
https://github.com/AlexxIT/Blog
MIT License
2.58k stars 406 forks source link

Answer "Send Hello" on Sonoff gk-200mp2-b #728

Closed kfulko closed 2 years ago

kfulko commented 2 years ago

Hello, I have problem with PTZ.I use Home Assistant. When send comand: Left, Right, Down, Up, the aswer always is "Send Hello". Big or small letter don't work. Test local and cloud mode, nothing happend. This is debug from local mode:

2022-03-23 10:02:32 DEBUG main SysInfo: {'version': '2022.3.5', 'dev': False, 'hassio': True, 'virtualenv': False, 'python_version': '3.9.9', 'docker': True, 'arch': 'armv7l', 'os_name': 'Linux', 'os_version': '5.10.103-v7l+', 'user': 'root', 'supervisor': '2022.03.5', 'host_os': 'Raspbian GNU/Linux 10 (buster)', 'docker_version': '20.10.13', 'chassis': ''} 2022-03-23 10:02:32 DEBUG main LOCAL mode start 2022-03-23 10:03:47 DEBUG sonoff_camera Send HELLO 2022-03-23 10:04:19 DEBUG sonoff_camera Send HELLO 2022-03-23 10:05:11 DEBUG sonoff_camera Send HELLO 2022-03-23 10:21:48 DEBUG sonoff_camera Send HELLO 2022-03-23 10:34:12 DEBUG sonoff_camera Send HELLO 2022-03-23 10:34:25 DEBUG sonoff_camera Send HELLO 2022-03-23 10:40:17 DEBUG sonoff_camera Send HELLO 2022-03-23 10:40:24 DEBUG sonoff_camera Send HELLO

This is cloud mode: 2022-03-23 10:47:13 DEBUG main SysInfo: {'version': '2022.3.5', 'dev': False, 'hassio': True, 'virtualenv': False, 'python_version': '3.9.9', 'docker': True, 'arch': 'armv7l', 'os_name': 'Linux', 'os_version': '5.10.103-v7l+', 'user': 'root', 'supervisor': '2022.03.5', 'host_os': 'Raspbian GNU/Linux 10 (buster)', 'docker_version': '20.10.13', 'chassis': ''} 2022-03-23 10:47:13 DEBUG main CLOUD mode start 2022-03-23 10:47:18 DEBUG sonoff_cloud 1 devices loaded from the Cloud Server 2022-03-23 10:47:18 DEBUG main a63001862b == Init | {'uiid': 87, 'extra': {'manufacturer': 'coolkit', 'model': 'GK-200MP2C', 'sw_version': 'GK-200MP2C v27620201103'}, 'params': {'romVersion': '27620201103', 'version': 7, 'rssi': -44, 'fwVersion': '27620201103', 'cmd': 'left', 'cloud': 'online'}} 2022-03-23 10:47:19 DEBUG sonoff_cloud Cloud init: {'error': 0, 'apikey': '...', 'config': {'hb': 1, 'hbInterval': 145}, 'sequence': '1648028839198'} 2022-03-23 10:48:12 DEBUG sonoff_camera Send HELLO 2022-03-23 10:48:20 DEBUG sonoff_camera Send HELLO 2022-03-23 10:48:30 DEBUG sonoff_camera Send HELLO 2022-03-23 10:48:41 DEBUG sonoff_camera Send HELLO 2022-03-23 10:48:44 DEBUG sonoff_camera Send HELLO 2022-03-23 10:48:54 DEBUG sonoff_camera Send HELLO 2022-03-23 10:49:10 DEBUG sonoff_camera Send HELLO 2022-03-23 10:49:14 DEBUG sonoff_camera Send HELLO

AlexxIT commented 2 years ago

Are you sure you using right device ID?

kfulko commented 2 years ago

Yes. Six numbers xxxx-123456-xxxxx

śr., 23 mar 2022, 14:02 użytkownik Alex X @.***> napisał:

Are you sure you using right device ID?

— Reply to this email directly, view it on GitHub https://github.com/AlexxIT/SonoffLAN/issues/728#issuecomment-1076349975, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA2ZC3YPEQCARVQOS6PYIG3VBMI6FANCNFSM5RNODR5Q . You are receiving this because you authored the thread.Message ID: @.***>

kfulko commented 2 years ago

Hello, again I test, when I instert the Device ID like '123456' I have answer Send Hello, when DeviceID is 'a63001862b' answer is :+1:

2022-03-25 09:35:58  DEBUG    sonoff_cloud  a63001862b => Cloud4 | {'cmd': 'UP'} | 1648197358989
2022-03-25 09:35:59  DEBUG    sonoff_cloud  a63001862b <= Cloud3 | {'error': 0, 'deviceid': 'a63001862b', 'apikey': '...', 'sequence': '1648197358989'}
2022-03-25 09:35:59  DEBUG    sonoff_cloud  a63001862b => Cloud5 | Force update sequence: 1648197359230
2022-03-25 09:35:59  DEBUG    sonoff_cloud  a63001862b <= Cloud3 | {'error': 0, 'deviceid': 'a63001862b', 'apikey': '...', 'sequence': '1648197359230', 'params': {'bindInfos': {}, 'partnerDevice': {'ezVedioSerial': '...', 'partnerInfo': [{'thirdPartyDeviceId': '...', 'chipid': 'EWLK-xxxxxx-xxxxxxx:xx:xx:xx:xx:xx', 'model': 'GK-200MP2C', 'vendor': 'GK-200MP2C', 'addType': 1}], 'p2pPasswd': '12345678'}, 'romVersion': '40620220309', 'version': 7, 'rssi': -44, 'fwVersion': '40620220309', 'cmd': 'UP'}}
2022-03-25 09:37:10  DEBUG    sonoff_cloud  a63001862b => Cloud4 | {'cmd': 'UP'} | 1648197430374
2022-03-25 09:37:10  DEBUG    sonoff_cloud  a63001862b <= Cloud3 | {'error': 0, 'deviceid': 'a63001862b', 'apikey': '...', 'sequence': '1648197430374'}
2022-03-25 09:37:10  DEBUG    sonoff_cloud  a63001862b => Cloud5 | Force update sequence: 1648197430630
2022-03-25 09:37:10  DEBUG    sonoff_cloud  a63001862b <= Cloud3 | {'error': 0, 'deviceid': 'a63001862b', 'apikey': '...', 'sequence': '1648197430630', 'params': {'bindInfos': {}, 'partnerDevice': {'ezVedioSerial': '...', 'partnerInfo': [{'thirdPartyDeviceId': '...', 'chipid': 'EWLK-xxxxxx-xxxxxxx:xx:xx:xx:xx:xx', 'model': 'GK-200MP2C', 'vendor': 'GK-200MP2C', 'addType': 1}], 'p2pPasswd': '12345678'}, 'romVersion': '40620220309', 'version': 7, 'rssi': -44, 'fwVersion': '40620220309', 'cmd': 'UP'}}
2022-03-25 09:38:07  DEBUG    sonoff_cloud  a63001862b => Cloud4 | {'cmd': 'down'} | 1648197487684
2022-03-25 09:38:07  DEBUG    sonoff_cloud  a63001862b <= Cloud3 | {'error': 0, 'deviceid': 'a63001862b', 'apikey': '...', 'sequence': '1648197487684'}
2022-03-25 09:38:07  DEBUG    sonoff_cloud  a63001862b => Cloud5 | Force update sequence: 1648197487931
2022-03-25 09:38:08  DEBUG    sonoff_cloud  a63001862b <= Cloud3 | {'error': 0, 'deviceid': 'a63001862b', 'apikey': '...', 'sequence': '1648197487931', 'params': {'bindInfos': {}, 'partnerDevice': {'ezVedioSerial': '...', 'partnerInfo': [{'thirdPartyDeviceId': '...', 'chipid': 'EWLK-xxxxxx-xxxxxxx:xx:xx:xx:xx:xx', 'model': 'GK-200MP2C', 'vendor': 'GK-200MP2C', 'addType': 1}], 'p2pPasswd': '12345678'}, 'romVersion': '40620220309', 'version': 7, 'rssi': -44, 'fwVersion': '40620220309', 'cmd': 'down'}}
2022-03-25 09:38:15  DEBUG    sonoff_cloud  a63001862b => Cloud4 | {'cmd': 'down'} | 1648197495897
2022-03-25 09:38:16  DEBUG    sonoff_cloud  a63001862b <= Cloud3 | {'error': 0, 'deviceid': 'a63001862b', 'apikey': '...', 'sequence': '1648197495897'}
2022-03-25 09:38:16  DEBUG    sonoff_cloud  a63001862b => Cloud5 | Force update sequence: 1648197496131
2022-03-25 09:38:16  DEBUG    sonoff_cloud  a63001862b <= Cloud3 | {'error': 0, 'deviceid': 'a63001862b', 'apikey': '...', 'sequence': '1648197496131', 'params': {'bindInfos': {}, 'partnerDevice': {'ezVedioSerial': '...', 'partnerInfo': [{'thirdPartyDeviceId': '...', 'chipid': 'EWLK-xxxxxx-xxxxxxx:xx:xx:xx:xx:xx', 'model': 'GK-200MP2C', 'vendor': 'GK-200MP2C', 'addType': 1}], 'p2pPasswd': '12345678'}, 'romVersion': '40620220309', 'version': 7, 'rssi': -44, 'fwVersion': '40620220309', 'cmd': 'down'}}

and nothing happend with camera.

AlexxIT commented 2 years ago

For camera you should using 6-symbol camera ID

AlexxIT commented 2 years ago

Problem is fixed?

kfulko commented 2 years ago

No, I use SonoffHack, PTZ work