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 405 forks source link

Sonoff Cam does execute every command #359

Open illivanillie opened 3 years ago

illivanillie commented 3 years ago

Hi! Thank you for your work! I have the problem that not every command is executed by the camera. I cannot specify it further. Sometimes every command is executed immediately, but sometimes there's just nothing. Do you have any idea?

log below: (attention to #comment )

2021-01-24 13:30:54 DEBUG main SysInfo: {'version': '2021.1.2', 'dev': False, 'hassio': True, 'virtualenv': False, 'python_version': '3.8.7', 'docker': True, 'arch': 'aarch64', 'os_name': 'Linux', 'os_version': '5.4.79-v8', 'supervisor': '2021.01.7', 'host_os': 'Home Assistant OS 5.10', 'docker_version': '19.03.13', 'chassis': 'embedded'} 2021-01-24 13:30:54 DEBUG main AUTO mode start 2021-01-24 13:30:57 DEBUG sonoff_cloud 1 devices loaded from the Cloud Server 2021-01-24 13:30:57 DEBUG main a63000cedb == Init | {'uiid': 87, 'extra': {'manufacturer': 'coolkit', 'model': 'GK-200MP2B', 'sw_version': 'GK-200MP2B'}, 'params': {'romVersion': '24520191030', 'version': 7, 'cloud': 'online'}} 2021-01-24 13:31:00 DEBUG sonoff_cloud Cloud init: {'error': 0, 'apikey': '...', 'config': {'hb': 1, 'hbInterval': 145}, 'sequence': '1611491459657'} 2021-01-24 13:32:10 DEBUG sonoff_camera Send HELLO 2021-01-24 13:32:14 DEBUG sonoff_camera Send HELLO 2021-01-24 13:32:17 DEBUG sonoff_camera Send UID Session Open Request 2021-01-24 13:32:17 DEBUG sonoff_camera Send UID Session Open Request 2021-01-24 13:32:17 DEBUG sonoff_camera Send Init Command 2021-01-24 13:32:17 DEBUG sonoff_camera Send Init Command 2021-01-24 13:32:17 DEBUG sonoff_camera Send Command left 2021-01-24 13:33:14 DEBUG sonoff_camera Send HELLO 2021-01-24 13:33:14 DEBUG sonoff_camera Send Command left 2021-01-24 13:33:14 DEBUG sonoff_camera Send Command right 2021-01-24 13:33:14 DEBUG sonoff_camera Send UID Session Open Request 2021-01-24 13:33:14 DEBUG sonoff_camera Send Init Command 2021-01-24 13:33:21 DEBUG sonoff_camera Send Command right 2021-01-24 13:33:21 DEBUG sonoff_camera Send Command right 2021-01-24 13:33:25 DEBUG sonoff_camera Send Command right 2021-01-24 13:33:27 DEBUG sonoff_camera Send Command up 2021-01-24 13:33:28 DEBUG sonoff_camera Send Command right 2021-01-24 13:33:30 DEBUG sonoff_camera Send Command down 2021-01-24 13:33:32 DEBUG sonoff_camera Send Command left 2021-01-24 13:33:33 DEBUG sonoff_camera Send Command right 2021-01-24 13:33:34 DEBUG sonoff_camera Send Command up 2021-01-24 13:34:14 DEBUG sonoff_camera Send HELLO 2021-01-24 13:34:20 DEBUG sonoff_camera Send HELLO 2021-01-24 13:34:21 DEBUG sonoff_camera Send HELLO 2021-01-24 13:34:30 DEBUG sonoff_camera Send HELLO 2021-01-24 13:34:30 DEBUG sonoff_camera Send UID Session Open Request 2021-01-24 13:34:30 DEBUG sonoff_camera Send UID Session Open Request 2021-01-24 13:34:30 DEBUG sonoff_camera Send UID Session Open Request 2021-01-24 13:34:30 DEBUG sonoff_camera Send UID Session Open Request 2021-01-24 13:34:30 DEBUG sonoff_camera Send Init Command 2021-01-24 13:34:30 DEBUG sonoff_camera Send Init Command 2021-01-24 13:34:30 DEBUG sonoff_camera Send Init Command 2021-01-24 13:34:30 DEBUG sonoff_camera Send Init Command 2021-01-24 13:34:30 DEBUG sonoff_camera Send Command right 2021-01-24 13:34:30 DEBUG sonoff_camera Send Command right 2021-01-24 13:34:30 DEBUG sonoff_camera Send Command left

from around here it started working

2021-01-24 13:34:30 DEBUG sonoff_camera Send Command up 2021-01-24 13:34:35 DEBUG sonoff_camera Send Command right 2021-01-24 13:34:37 DEBUG sonoff_camera Send Command left 2021-01-24 13:34:40 DEBUG sonoff_camera Send Command up 2021-01-24 13:34:42 DEBUG sonoff_camera Send Command down 2021-01-24 13:34:44 DEBUG sonoff_camera Send Command down 2021-01-24 13:34:46 DEBUG sonoff_camera Send Command right 2021-01-24 13:34:48 DEBUG sonoff_camera Send Command right 2021-01-24 13:34:50 DEBUG sonoff_camera Send Command right

barrymossel commented 3 years ago

I experience the same. It looks like the connection needs to be opened before the command can be send.

How can I help debugging?

CRASH-Tech commented 2 years ago

Have same problem