Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues after uptade to V2.0 #122

Closed
flipepiloto opened this issue May 26, 2020 · 8 comments
Closed

Issues after uptade to V2.0 #122

flipepiloto opened this issue May 26, 2020 · 8 comments
Labels
question Further information is requested

Comments

@flipepiloto
Copy link

flipepiloto commented May 26, 2020

I was working with the component in version 1.04 in local mode with reload always and everything is working fine.
After I upgraded to version 2.0 it stopped working. My moden does not find the relays and I have the log below obtained by debug mode.

2020-05-26 16:20:12  DEBUG    main          SysInfo: {'version': '0.110.3', 'dev': False, 'hassio': False, 'virtualenv': False, 'python_version': '3.7.7', 'docker': True, 'arch': 'armv7l', 'os_name': 'Linux', 'os_version': '4.19.114-v7'}
2020-05-26 16:20:12  DEBUG    main          LOCAL mode start
2020-05-26 16:20:15  DEBUG    sonoff_cloud  Redirect to region: us
2020-05-26 16:20:19  DEBUG    sonoff_cloud  6 devices loaded from the Cloud Server
2020-05-26 16:25:04  DEBUG    sonoff_local  10009beaa8 <= Local1 | {'switch': 'off', 'startup': 'off', 'pulse': 'off', 'sledOnline': 'on', 'fwVersion': '3.5.0', 'pulseWidth': 500, 'rssi': -47}
2020-05-26 16:25:04  DEBUG    main          10009beaa8 == Init   | {'uiid': 1, 'extra': {'manufacturer': 'SONOFF', 'model': 'MINI', 'sw_version': 'PSF-BD1-GL v3.5.0'}, 'params': {'switch': 'off', 'startup': 'off', 'pulse': 'off', 'sledOnline': 'on', 'fwVersion': '3.5.0', 'pulseWidth': 500, 'rssi': -47, 'local': 'online'}}
2020-05-26 16:25:10  WARNING  sonoff_local  10009beaa8 => Local4 | {'switch': 'on'} !! Cannot connect to host 192.168.0.22:8081 ssl:None [Connect call failed ('...', 8081)]
2020-05-26 16:25:10  DEBUG    sonoff_local  10009beaa8 => Local4 | Check offline with timeout 20s
2020-05-26 16:25:13  WARNING  sonoff_local  10009beaa8 => Local4 | {'cmd': 'info'} !! Cannot connect to host 192.168.0.22:8081 ssl:None [Connect call failed ('...', 8081)]
2020-05-26 16:25:16  WARNING  sonoff_local  10009beaa8 => Local4 | {'switch': 'on'} !! Cannot connect to host 192.168.0.22:8081 ssl:None [Connect call failed ('...', 8081)]
2020-05-26 16:25:16  DEBUG    sonoff_local  10009beaa8 => Local4 | Skip parallel checks

Through the ewelink application the relay works normally.

@flipepiloto
Copy link
Author

flipepiloto commented May 26, 2020

Using local mode and simultaneous cloud as suggested by the update, some buttons do not work, others with a very long delay.
Log below.

2020-05-26 16:31:08  DEBUG    main          SysInfo: {'version': '0.110.3', 'dev': False, 'hassio': False, 'virtualenv': False, 'python_version': '3.7.7', 'docker': True, 'arch': 'armv7l', 'os_name': 'Linux', 'os_version': '4.19.114-v7'}
2020-05-26 16:31:08  DEBUG    main          AUTO mode start
2020-05-26 16:31:12  DEBUG    sonoff_cloud  Redirect to region: us
2020-05-26 16:31:15  DEBUG    sonoff_cloud  6 devices loaded from the Cloud Server
2020-05-26 16:31:15  DEBUG    main          10009beaa8 == Init   | {'uiid': 1, 'extra': {'manufacturer': 'SONOFF', 'model': 'MINI', 'sw_version': 'PSF-BD1-GL v3.5.0'}, 'params': {'bindInfos': {'gaction': ['...']}, 'version': 8, 'sledOnline': 'on', 'switch': 'off', 'fwVersion': '3.5.0', 'rssi': -47, 'staMac': '...', 'startup': 'off', 'init': 1, 'pulse': 'off', 'pulseWidth': 500, 'partnerApikey': '...', 'swMode': 2, 'cloud': 'online'}}
2020-05-26 16:31:15  DEBUG    main          1000acf498 == Init   | {'uiid': 8, 'extra': {'manufacturer': 'SONOFF', 'model': 'TX3C', 'sw_version': 'PSF-B04-GL v3.4.0'}, 'params': {'controlType': 8, 'bindInfos': {'scene': 4, 'gaction': ['...']}, 'version': 8, 'sledOnline': 'on', 'fwVersion': '3.4.0', 'staMac': '...', 'rssi': -46, 'init': 1, 'lock': 0, 'configure': [{'startup': 'off', 'outlet': 0}, {'startup': 'off', 'outlet': 1}, {'startup': 'off', 'outlet': 2}, {'startup': 'off', 'outlet': 3}], 'pulses': [{'pulse': 'off', 'width': 1000, 'outlet': 0}, {'pulse': 'off', 'width': 1000, 'outlet': 1}, {'pulse': 'off', 'width': 1000, 'outlet': 2}, {'pulse': 'off', 'width': 1000, 'outlet': 3}], 'switches': [{'switch': 'off', 'outlet': 0}, {'switch': 'off', 'outlet': 1}, {'switch': 'on', 'outlet': 2}, {'switch': 'off', 'outlet': 3}], 'partnerApikey': '...', 'cloud': 'online'}}
2020-05-26 16:31:15  DEBUG    main          1000acf8cf == Init   | {'uiid': 8, 'extra': {'manufacturer': 'SONOFF', 'model': 'TX3C', 'sw_version': 'PSF-B04-GL v3.4.0'}, 'params': {'bindInfos': {'gaction': ['...'], 'scene': 4}, 'version': 8, 'sledOnline': 'on', 'fwVersion': '3.4.0', 'staMac': '...', 'rssi': -60, 'init': 1, 'lock': 0, 'configure': [{'startup': 'off', 'outlet': 0}, {'startup': 'off', 'outlet': 1}, {'startup': 'off', 'outlet': 2}, {'startup': 'off', 'outlet': 3}], 'pulses': [{'pulse': 'off', 'width': 1000, 'outlet': 0}, {'pulse': 'off', 'width': 1000, 'outlet': 1}, {'pulse': 'off', 'width': 1000, 'outlet': 2}, {'pulse': 'off', 'width': 1000, 'outlet': 3}], 'switches': [{'switch': 'off', 'outlet': 0}, {'switch': 'off', 'outlet': 1}, {'switch': 'on', 'outlet': 2}, {'switch': 'off', 'outlet': 3}], 'partnerApikey': '...', 'controlType': 8, 'cloud': 'online'}}
2020-05-26 16:31:15  DEBUG    main          1000acf250 == Init   | {'uiid': 8, 'extra': {'manufacturer': 'SONOFF', 'model': 'TX3C', 'sw_version': 'PSF-B04-GL v3.4.0'}, 'params': {'bindInfos': {'gaction': ['...'], 'scene': 8}, 'version': 8, 'sledOnline': 'on', 'fwVersion': '3.4.0', 'staMac': '...', 'rssi': -53, 'init': 1, 'lock': 0, 'configure': [{'startup': 'off', 'outlet': 0}, {'startup': 'off', 'outlet': 1}, {'startup': 'off', 'outlet': 2}, {'startup': 'off', 'outlet': 3}], 'pulses': [{'pulse': 'off', 'width': 1000, 'outlet': 0}, {'pulse': 'off', 'width': 1000, 'outlet': 1}, {'pulse': 'off', 'width': 1000, 'outlet': 2}, {'pulse': 'off', 'width': 1000, 'outlet': 3}], 'switches': [{'switch': 'off', 'outlet': 0}, {'switch': 'on', 'outlet': 1}, {'switch': 'on', 'outlet': 2}, {'switch': 'off', 'outlet': 3}], 'partnerApikey': '...', 'controlType': 8, 'cloud': 'online'}}
2020-05-26 16:31:15  DEBUG    main          10009fd117 == Init   | {'uiid': 1, 'extra': {'manufacturer': 'SONOFF', 'model': 'MINI', 'sw_version': 'PSF-BD1-GL v3.5.0'}, 'params': {'pulseWidth': 500, 'pulse': 'off', 'init': 1, 'startup': 'off', 'staMac': '...', 'rssi': -56, 'fwVersion': '3.5.0', 'switch': 'off', 'sledOnline': 'on', 'version': 8, 'bindInfos': {'gaction': ['...']}, 'partnerApikey': '...', 'swMode': 2, 'cloud': 'online'}}
2020-05-26 16:31:15  DEBUG    main          1000ae975f == Init   | {'uiid': 28, 'extra': {'manufacturer': 'SONOFF', 'model': 'RFBridge', 'sw_version': 'PSF-BRA-GL v3.4.1'}, 'params': {'bindInfos': {'gaction': ['...']}, 'sledOnline': 'on', 'init': 1, 'fwVersion': '3.4.1', 'rssi': -17, 'version': 8, 'staMac': '...', 'setState': 'arm', 'rfList': [], 'cmd': 'captureCancel', 'rfChl': 0, 'cloud': 'offline'}}
2020-05-26 16:31:16  DEBUG    sonoff_cloud  Cloud init: {'error': 0, 'apikey': '...', 'config': {'hb': 1, 'hbInterval': 145}, 'sequence': '1590521476707'}
2020-05-26 16:33:09  DEBUG    sonoff_cloud  10009beaa8 => Cloud4 | {'switch': 'on'}
2020-05-26 16:33:09  DEBUG    sonoff_cloud  10009beaa8 <= Cloud3 | {'action': 'sysmsg', 'deviceid': '10009beaa8', 'apikey': '...', 'ts': 0, 'params': {'online': False}}
2020-05-26 16:33:14  DEBUG    sonoff_cloud  10009beaa8 <= Cloud3 | {'error': 504, 'reason': 'Request Timeout', 'deviceid': '10009beaa8', 'apikey': '...', 'sequence': '1590521589142'}
2020-05-26 16:33:27  DEBUG    sonoff_cloud  1000acf8cf => Cloud4 | {'switches': [{'outlet': 2, 'switch': 'off'}]}
2020-05-26 16:33:27  DEBUG    sonoff_cloud  1000acf8cf <= Cloud3 | {'action': 'sysmsg', 'deviceid': '1000acf8cf', 'apikey': '...', 'ts': 0, 'params': {'online': False}}
2020-05-26 16:33:30  DEBUG    sonoff_cloud  1000acf498 => Cloud4 | {'switches': [{'outlet': 2, 'switch': 'off'}]}
2020-05-26 16:33:31  DEBUG    sonoff_local  1000acf498 <= Local1 | {'sledOnline': 'on', 'configure': [{'startup': 'off', 'outlet': 0}, {'startup': 'off', 'outlet': 1}, {'startup': 'off', 'outlet': 2}, {'startup': 'off', 'outlet': 3}], 'pulses': [{'pulse': 'off', 'width': 1000, 'outlet': 0}, {'pulse': 'off', 'width': 1000, 'outlet': 1}, {'pulse': 'off', 'width': 1000, 'outlet': 2}, {'pulse': 'off', 'width': 1000, 'outlet': 3}], 'switches': [{'switch': 'off', 'outlet': 0}, {'switch': 'off', 'outlet': 1}, {'switch': 'off', 'outlet': 2}, {'switch': 'off', 'outlet': 3}]}
2020-05-26 16:33:31  DEBUG    sonoff_cloud  1000acf498 <= Cloud3 | {'error': 0, 'deviceid': '1000acf498', 'apikey': '...', 'sequence': '1590521610701'}
2020-05-26 16:33:31  DEBUG    sonoff_cloud  1000acf498 => Cloud5 | Force update sequence: 1590521611173
2020-05-26 16:33:31  DEBUG    sonoff_local  1000acf250 <= Local1 | {'sledOnline': 'on', 'configure': [{'startup': 'off', 'outlet': 0}, {'startup': 'off', 'outlet': 1}, {'startup': 'off', 'outlet': 2}, {'startup': 'off', 'outlet': 3}], 'pulses': [{'pulse': 'off', 'width': 1000, 'outlet': 0}, {'pulse': 'off', 'width': 1000, 'outlet': 1}, {'pulse': 'off', 'width': 1000, 'outlet': 2}, {'pulse': 'off', 'width': 1000, 'outlet': 3}], 'switches': [{'switch': 'off', 'outlet': 0}, {'switch': 'off', 'outlet': 1}, {'switch': 'on', 'outlet': 2}, {'switch': 'off', 'outlet': 3}]}
2020-05-26 16:33:31  DEBUG    sonoff_cloud  1000acf498 <= Cloud3 | {'error': 0, 'deviceid': '1000acf498', 'apikey': '...', 'sequence': '1590521611173', 'params': {'controlType': 8, 'bindInfos': {'scene': 4, 'gaction': ['...']}, 'version': 8, 'sledOnline': 'on', 'fwVersion': '3.4.0', 'staMac': '...', 'rssi': -46, 'init': 1, 'lock': 0, 'configure': [{'startup': 'off', 'outlet': 0}, {'startup': 'off', 'outlet': 1}, {'startup': 'off', 'outlet': 2}, {'startup': 'off', 'outlet': 3}], 'pulses': [{'pulse': 'off', 'width': 1000, 'outlet': 0}, {'pulse': 'off', 'width': 1000, 'outlet': 1}, {'pulse': 'off', 'width': 1000, 'outlet': 2}, {'pulse': 'off', 'width': 1000, 'outlet': 3}], 'switches': [{'switch': 'off', 'outlet': 0}, {'switch': 'off', 'outlet': 1}, {'switch': 'off', 'outlet': 2}, {'switch': 'off', 'outlet': 3}], 'partnerApikey': '...'}}
2020-05-26 16:33:31  DEBUG    sonoff_cloud  1000acf250 <= Cloud3 | {'action': 'update', 'deviceid': '1000acf250', 'apikey': '...', 'userAgent': 'server', 'sequence': '1590521611076', 'ts': 0, 'params': {'controlType': 8, 'switches': [{'switch': 'off', 'outlet': 0}, {'switch': 'off', 'outlet': 1}, {'switch': 'on', 'outlet': 2}, {'switch': 'off', 'outlet': 3}]}, 'tempRec': '1000acf250', 'sceneid': '5e696829724c87ed6ca2c6be', 'sceneHistoryid': '2af3746588f4428485af87945ccb23aa'}
2020-05-26 16:33:32  DEBUG    sonoff_cloud  1000acf8cf <= Cloud3 | {'error': 504, 'reason': 'Request Timeout', 'deviceid': '1000acf8cf', 'apikey': '...', 'sequence': '1590521607020'}
2020-05-26 16:33:33  DEBUG    sonoff_local  1000acf498 => Local4 | {'switches': [{'outlet': 2, 'switch': 'on'}]} !! Timeout 1
2020-05-26 16:33:33  DEBUG    sonoff_cloud  1000acf498 => Cloud4 | {'switches': [{'outlet': 2, 'switch': 'on'}]}
2020-05-26 16:33:34  DEBUG    sonoff_local  1000acf498 <= Local3 | {'sledOnline': 'on', 'configure': [{'startup': 'off', 'outlet': 0}, {'startup': 'off', 'outlet': 1}, {'startup': 'off', 'outlet': 2}, {'startup': 'off', 'outlet': 3}], 'pulses': [{'pulse': 'off', 'width': 1000, 'outlet': 0}, {'pulse': 'off', 'width': 1000, 'outlet': 1}, {'pulse': 'off', 'width': 1000, 'outlet': 2}, {'pulse': 'off', 'width': 1000, 'outlet': 3}], 'switches': [{'switch': 'off', 'outlet': 0}, {'switch': 'off', 'outlet': 1}, {'switch': 'on', 'outlet': 2}, {'switch': 'off', 'outlet': 3}]}
2020-05-26 16:33:34  DEBUG    sonoff_cloud  1000acf498 <= Cloud3 | {'error': 0, 'deviceid': '1000acf498', 'apikey': '...', 'sequence': '1590521612695'}
2020-05-26 16:33:34  DEBUG    sonoff_cloud  1000acf498 => Cloud5 | Force update sequence: 1590521614327
2020-05-26 16:33:34  DEBUG    sonoff_local  1000acf250 <= Local3 | {'sledOnline': 'on', 'configure': [{'startup': 'off', 'outlet': 0}, {'startup': 'off', 'outlet': 1}, {'startup': 'off', 'outlet': 2}, {'startup': 'off', 'outlet': 3}], 'pulses': [{'pulse': 'off', 'width': 1000, 'outlet': 0}, {'pulse': 'off', 'width': 1000, 'outlet': 1}, {'pulse': 'off', 'width': 1000, 'outlet': 2}, {'pulse': 'off', 'width': 1000, 'outlet': 3}], 'switches': [{'switch': 'off', 'outlet': 0}, {'switch': 'on', 'outlet': 1}, {'switch': 'on', 'outlet': 2}, {'switch': 'off', 'outlet': 3}]}
2020-05-26 16:33:34  DEBUG    sonoff_cloud  1000acf250 <= Cloud3 | {'action': 'update', 'deviceid': '1000acf250', 'apikey': '...', 'userAgent': 'server', 'sequence': '1590521614223', 'ts': 0, 'params': {'controlType': 8, 'switches': [{'switch': 'off', 'outlet': 0}, {'switch': 'on', 'outlet': 1}, {'switch': 'on', 'outlet': 2}, {'switch': 'off', 'outlet': 3}]}, 'tempRec': '1000acf250', 'sceneid': '5e6967865817f76fb416e29a', 'sceneHistoryid': '40c242c1c8bd4308beee164fb09de630'}
2020-05-26 16:33:34  DEBUG    sonoff_cloud  1000acf498 <= Cloud3 | {'error': 0, 'deviceid': '1000acf498', 'apikey': '...', 'sequence': '1590521614327', 'params': {'controlType': 8, 'bindInfos': {'scene': 4, 'gaction': ['...']}, 'version': 8, 'sledOnline': 'on', 'fwVersion': '3.4.0', 'staMac': '...', 'rssi': -46, 'init': 1, 'lock': 0, 'configure': [{'startup': 'off', 'outlet': 0}, {'startup': 'off', 'outlet': 1}, {'startup': 'off', 'outlet': 2}, {'startup': 'off', 'outlet': 3}], 'pulses': [{'pulse': 'off', 'width': 1000, 'outlet': 0}, {'pulse': 'off', 'width': 1000, 'outlet': 1}, {'pulse': 'off', 'width': 1000, 'outlet': 2}, {'pulse': 'off', 'width': 1000, 'outlet': 3}], 'switches': [{'switch': 'off', 'outlet': 0}, {'switch': 'off', 'outlet': 1}, {'switch': 'on', 'outlet': 2}, {'switch': 'off', 'outlet': 3}], 'partnerApikey': '...'}}
2020-05-26 16:33:35  DEBUG    sonoff_cloud  10009fd117 => Cloud4 | {'switch': 'on'}
2020-05-26 16:33:35  DEBUG    sonoff_local  10009fd117 <= Local1 | {'switch': 'on', 'startup': 'off', 'pulse': 'off', 'sledOnline': 'on', 'fwVersion': '3.5.0', 'pulseWidth': 500, 'rssi': -56}
2020-05-26 16:33:35  DEBUG    sonoff_cloud  10009fd117 <= Cloud3 | {'error': 0, 'deviceid': '10009fd117', 'apikey': '...', 'sequence': '1590521615284'}
2020-05-26 16:33:35  DEBUG    sonoff_cloud  10009fd117 => Cloud5 | Force update sequence: 1590521615748
2020-05-26 16:33:35  DEBUG    sonoff_local  1000acf498 => Local4 | {'switches': [{'outlet': 2, 'switch': 'off'}]} !! Timeout 1
2020-05-26 16:33:35  DEBUG    sonoff_cloud  1000acf498 => Cloud4 | {'switches': [{'outlet': 2, 'switch': 'off'}]}
2020-05-26 16:33:35  DEBUG    sonoff_cloud  10009fd117 <= Cloud3 | {'error': 0, 'deviceid': '10009fd117', 'apikey': '...', 'sequence': '1590521615748', 'params': {'pulseWidth': 500, 'pulse': 'off', 'init': 1, 'startup': 'off', 'staMac': '...', 'rssi': -56, 'fwVersion': '3.5.0', 'switch': 'on', 'sledOnline': 'on', 'version': 8, 'bindInfos': {'gaction': ['...']}, 'partnerApikey': '...', 'swMode': 2}}
2020-05-26 16:33:36  DEBUG    sonoff_local  1000acf498 <= Local3 | {'sledOnline': 'on', 'configure': [{'startup': 'off', 'outlet': 0}, {'startup': 'off', 'outlet': 1}, {'startup': 'off', 'outlet': 2}, {'startup': 'off', 'outlet': 3}], 'pulses': [{'pulse': 'off', 'width': 1000, 'outlet': 0}, {'pulse': 'off', 'width': 1000, 'outlet': 1}, {'pulse': 'off', 'width': 1000, 'outlet': 2}, {'pulse': 'off', 'width': 1000, 'outlet': 3}], 'switches': [{'switch': 'off', 'outlet': 0}, {'switch': 'off', 'outlet': 1}, {'switch': 'off', 'outlet': 2}, {'switch': 'off', 'outlet': 3}]}
2020-05-26 16:33:36  DEBUG    sonoff_cloud  1000acf498 <= Cloud3 | {'error': 0, 'deviceid': '1000acf498', 'apikey': '...', 'sequence': '1590521614056'}
2020-05-26 16:33:36  DEBUG    sonoff_cloud  1000acf498 => Cloud5 | Force update sequence: 1590521616347
2020-05-26 16:33:36  DEBUG    sonoff_local  1000acf250 <= Local3 | {'sledOnline': 'on', 'configure': [{'startup': 'off', 'outlet': 0}, {'startup': 'off', 'outlet': 1}, {'startup': 'off', 'outlet': 2}, {'startup': 'off', 'outlet': 3}], 'pulses': [{'pulse': 'off', 'width': 1000, 'outlet': 0}, {'pulse': 'off', 'width': 1000, 'outlet': 1}, {'pulse': 'off', 'width': 1000, 'outlet': 2}, {'pulse': 'off', 'width': 1000, 'outlet': 3}], 'switches': [{'switch': 'off', 'outlet': 0}, {'switch': 'off', 'outlet': 1}, {'switch': 'on', 'outlet': 2}, {'switch': 'off', 'outlet': 3}]}
2020-05-26 16:33:36  DEBUG    sonoff_cloud  1000acf250 <= Cloud3 | {'action': 'update', 'deviceid': '1000acf250', 'apikey': '...', 'userAgent': 'server', 'sequence': '1590521616246', 'ts': 0, 'params': {'controlType': 8, 'switches': [{'switch': 'off', 'outlet': 0}, {'switch': 'off', 'outlet': 1}, {'switch': 'on', 'outlet': 2}, {'switch': 'off', 'outlet': 3}]}, 'tempRec': '1000acf250', 'sceneid': '5e696829724c87ed6ca2c6be', 'sceneHistoryid': '21375ecf48b14d18ba0bb7e75c3fcefb'}
2020-05-26 16:33:36  DEBUG    sonoff_cloud  1000acf498 <= Cloud3 | {'error': 0, 'deviceid': '1000acf498', 'apikey': '...', 'sequence': '1590521616347', 'params': {'controlType': 8, 'bindInfos': {'scene': 4, 'gaction': ['...']}, 'version': 8, 'sledOnline': 'on', 'fwVersion': '3.4.0', 'staMac': '...', 'rssi': -46, 'init': 1, 'lock': 0, 'configure': [{'startup': 'off', 'outlet': 0}, {'startup': 'off', 'outlet': 1}, {'startup': 'off', 'outlet': 2}, {'startup': 'off', 'outlet': 3}], 'pulses': [{'pulse': 'off', 'width': 1000, 'outlet': 0}, {'pulse': 'off', 'width': 1000, 'outlet': 1}, {'pulse': 'off', 'width': 1000, 'outlet': 2}, {'pulse': 'off', 'width': 1000, 'outlet': 3}], 'switches': [{'switch': 'off', 'outlet': 0}, {'switch': 'off', 'outlet': 1}, {'switch': 'off', 'outlet': 2}, {'switch': 'off', 'outlet': 3}], 'partnerApikey': '...'}}
2020-05-26 16:33:37  DEBUG    sonoff_local  10009fd117 => Local4 | {'switch': 'off'} !! Timeout 1
2020-05-26 16:33:37  DEBUG    sonoff_cloud  10009fd117 => Cloud4 | {'switch': 'off'}
2020-05-26 16:33:38  DEBUG    sonoff_local  10009fd117 <= Local3 | {'switch': 'off', 'startup': 'off', 'pulse': 'off', 'sledOnline': 'on', 'fwVersion': '3.5.0', 'pulseWidth': 500, 'rssi': -56}
2020-05-26 16:33:38  DEBUG    sonoff_cloud  10009fd117 <= Cloud3 | {'error': 0, 'deviceid': '10009fd117', 'apikey': '...', 'sequence': '1590521616222'}
2020-05-26 16:33:38  DEBUG    sonoff_cloud  10009fd117 => Cloud5 | Force update sequence: 1590521618334
2020-05-26 16:33:38  DEBUG    sonoff_cloud  10009fd117 <= Cloud3 | {'error': 0, 'deviceid': '10009fd117', 'apikey': '...', 'sequence': '1590521618334', 'params': {'pulseWidth': 500, 'pulse': 'off', 'init': 1, 'startup': 'off', 'staMac': '...', 'rssi': -56, 'fwVersion': '3.5.0', 'switch': 'off', 'sledOnline': 'on', 'version': 8, 'bindInfos': {'gaction': ['...']}, 'partnerApikey': '...', 'swMode': 2}}
2020-05-26 16:33:40  DEBUG    sonoff_local  1000acf498 => Local4 | {'switches': [{'outlet': 1, 'switch': 'on'}]} !! Timeout 1
2020-05-26 16:33:40  DEBUG    sonoff_cloud  1000acf498 => Cloud4 | {'switches': [{'outlet': 1, 'switch': 'on'}]}
2020-05-26 16:33:41  DEBUG    sonoff_local  1000acf498 <= Local3 | {'sledOnline': 'on', 'configure': [{'startup': 'off', 'outlet': 0}, {'startup': 'off', 'outlet': 1}, {'startup': 'off', 'outlet': 2}, {'startup': 'off', 'outlet': 3}], 'pulses': [{'pulse': 'off', 'width': 1000, 'outlet': 0}, {'pulse': 'off', 'width': 1000, 'outlet': 1}, {'pulse': 'off', 'width': 1000, 'outlet': 2}, {'pulse': 'off', 'width': 1000, 'outlet': 3}], 'switches': [{'switch': 'off', 'outlet': 0}, {'switch': 'on', 'outlet': 1}, {'switch': 'off', 'outlet': 2}, {'switch': 'off', 'outlet': 3}]}
2020-05-26 16:33:41  DEBUG    sonoff_cloud  1000acf498 <= Cloud3 | {'error': 0, 'deviceid': '1000acf498', 'apikey': '...', 'sequence': '1590521619666'}
2020-05-26 16:33:41  DEBUG    sonoff_cloud  1000acf498 => Cloud5 | Force update sequence: 1590521621327
2020-05-26 16:33:41  DEBUG    sonoff_cloud  1000acf498 <= Cloud3 | {'error': 0, 'deviceid': '1000acf498', 'apikey': '...', 'sequence': '1590521621327', 'params': {'controlType': 8, 'bindInfos': {'scene': 4, 'gaction': ['...']}, 'version': 8, 'sledOnline': 'on', 'fwVersion': '3.4.0', 'staMac': '...', 'rssi': -46, 'init': 1, 'lock': 0, 'configure': [{'startup': 'off', 'outlet': 0}, {'startup': 'off', 'outlet': 1}, {'startup': 'off', 'outlet': 2}, {'startup': 'off', 'outlet': 3}], 'pulses': [{'pulse': 'off', 'width': 1000, 'outlet': 0}, {'pulse': 'off', 'width': 1000, 'outlet': 1}, {'pulse': 'off', 'width': 1000, 'outlet': 2}, {'pulse': 'off', 'width': 1000, 'outlet': 3}], 'switches': [{'switch': 'off', 'outlet': 0}, {'switch': 'on', 'outlet': 1}, {'switch': 'off', 'outlet': 2}, {'switch': 'off', 'outlet': 3}], 'partnerApikey': '...'}}
2020-05-26 16:33:41  DEBUG    sonoff_local  1000acf498 => Local4 | {'switches': [{'outlet': 1, 'switch': 'off'}]} !! Timeout 1
2020-05-26 16:33:41  DEBUG    sonoff_cloud  1000acf498 => Cloud4 | {'switches': [{'outlet': 1, 'switch': 'off'}]}
2020-05-26 16:33:42  DEBUG    sonoff_local  1000acf498 <= Local3 | {'sledOnline': 'on', 'configure': [{'startup': 'off', 'outlet': 0}, {'startup': 'off', 'outlet': 1}, {'startup': 'off', 'outlet': 2}, {'startup': 'off', 'outlet': 3}], 'pulses': [{'pulse': 'off', 'width': 1000, 'outlet': 0}, {'pulse': 'off', 'width': 1000, 'outlet': 1}, {'pulse': 'off', 'width': 1000, 'outlet': 2}, {'pulse': 'off', 'width': 1000, 'outlet': 3}], 'switches': [{'switch': 'off', 'outlet': 0}, {'switch': 'off', 'outlet': 1}, {'switch': 'off', 'outlet': 2}, {'switch': 'off', 'outlet': 3}]}
2020-05-26 16:33:42  DEBUG    sonoff_cloud  1000acf498 <= Cloud3 | {'error': 0, 'deviceid': '1000acf498', 'apikey': '...', 'sequence': '1590521620665'}
2020-05-26 16:33:42  DEBUG    sonoff_cloud  1000acf498 => Cloud5 | Force update sequence: 1590521622329
2020-05-26 16:33:42  DEBUG    sonoff_cloud  1000acf498 <= Cloud3 | {'error': 0, 'deviceid': '1000acf498', 'apikey': '...', 'sequence': '1590521622329', 'params': {'controlType': 8, 'bindInfos': {'scene': 4, 'gaction': ['...']}, 'version': 8, 'sledOnline': 'on', 'fwVersion': '3.4.0', 'staMac': '...', 'rssi': -46, 'init': 1, 'lock': 0, 'configure': [{'startup': 'off', 'outlet': 0}, {'startup': 'off', 'outlet': 1}, {'startup': 'off', 'outlet': 2}, {'startup': 'off', 'outlet': 3}], 'pulses': [{'pulse': 'off', 'width': 1000, 'outlet': 0}, {'pulse': 'off', 'width': 1000, 'outlet': 1}, {'pulse': 'off', 'width': 1000, 'outlet': 2}, {'pulse': 'off', 'width': 1000, 'outlet': 3}], 'switches': [{'switch': 'off', 'outlet': 0}, {'switch': 'off', 'outlet': 1}, {'switch': 'off', 'outlet': 2}, {'switch': 'off', 'outlet': 3}], 'partnerApikey': '...'}}
2020-05-26 16:33:42  WARNING  sonoff_local  1000acf498 => Local4 | {'switches': [{'outlet': 0, 'switch': 'on'}]} !! Cannot connect to host 192.168.0.23:8081 ssl:None [Connect call failed ('...', 8081)]
2020-05-26 16:33:42  DEBUG    sonoff_cloud  1000acf498 => Cloud4 | {'switches': [{'outlet': 0, 'switch': 'on'}]}
2020-05-26 16:33:42  WARNING  sonoff_local  1000acf498 => Local4 | {'switches': [{'outlet': 0, 'switch': 'off'}]} !! Cannot connect to host 192.168.0.23:8081 ssl:None [Connect call failed ('...', 8081)]
2020-05-26 16:33:42  DEBUG    sonoff_cloud  1000acf498 => Cloud4 | {'switches': [{'outlet': 0, 'switch': 'off'}]}
2020-05-26 16:33:43  DEBUG    sonoff_local  1000acf498 <= Local3 | {'sledOnline': 'on', 'configure': [{'startup': 'off', 'outlet': 0}, {'startup': 'off', 'outlet': 1}, {'startup': 'off', 'outlet': 2}, {'startup': 'off', 'outlet': 3}], 'pulses': [{'pulse': 'off', 'width': 1000, 'outlet': 0}, {'pulse': 'off', 'width': 1000, 'outlet': 1}, {'pulse': 'off', 'width': 1000, 'outlet': 2}, {'pulse': 'off', 'width': 1000, 'outlet': 3}], 'switches': [{'switch': 'off', 'outlet': 0}, {'switch': 'off', 'outlet': 1}, {'switch': 'off', 'outlet': 2}, {'switch': 'off', 'outlet': 3}]}
2020-05-26 16:33:43  DEBUG    sonoff_cloud  1000acf498 <= Cloud3 | {'error': 0, 'deviceid': '1000acf498', 'apikey': '...', 'sequence': '1590521621178'}
2020-05-26 16:33:43  DEBUG    sonoff_cloud  1000acf498 => Cloud5 | Force update sequence: 1590521623298
2020-05-26 16:33:43  DEBUG    sonoff_cloud  1000acf498 <= Cloud3 | {'error': 0, 'deviceid': '1000acf498', 'apikey': '...', 'sequence': '1590521623298', 'params': {'controlType': 8, 'bindInfos': {'scene': 4, 'gaction': ['...']}, 'version': 8, 'sledOnline': 'on', 'fwVersion': '3.4.0', 'staMac': '...', 'rssi': -46, 'init': 1, 'lock': 0, 'configure': [{'startup': 'off', 'outlet': 0}, {'startup': 'off', 'outlet': 1}, {'startup': 'off', 'outlet': 2}, {'startup': 'off', 'outlet': 3}], 'pulses': [{'pulse': 'off', 'width': 1000, 'outlet': 0}, {'pulse': 'off', 'width': 1000, 'outlet': 1}, {'pulse': 'off', 'width': 1000, 'outlet': 2}, {'pulse': 'off', 'width': 1000, 'outlet': 3}], 'switches': [{'switch': 'on', 'outlet': 0}, {'switch': 'off', 'outlet': 1}, {'switch': 'off', 'outlet': 2}, {'switch': 'off', 'outlet': 3}], 'partnerApikey': '...'}}
2020-05-26 16:33:43  DEBUG    sonoff_cloud  1000acf498 <= Cloud3 | {'error': 0, 'deviceid': '1000acf498', 'apikey': '...', 'sequence': '1590521621769'}
2020-05-26 16:33:43  DEBUG    sonoff_cloud  1000acf498 => Cloud5 | Force update sequence: 1590521623585
2020-05-26 16:33:43  DEBUG    sonoff_cloud  1000acf498 <= Cloud3 | {'error': 0, 'deviceid': '1000acf498', 'apikey': '...', 'sequence': '1590521623585', 'params': {'controlType': 8, 'bindInfos': {'scene': 4, 'gaction': ['...']}, 'version': 8, 'sledOnline': 'on', 'fwVersion': '3.4.0', 'staMac': '...', 'rssi': -46, 'init': 1, 'lock': 0, 'configure': [{'startup': 'off', 'outlet': 0}, {'startup': 'off', 'outlet': 1}, {'startup': 'off', 'outlet': 2}, {'startup': 'off', 'outlet': 3}], 'pulses': [{'pulse': 'off', 'width': 1000, 'outlet': 0}, {'pulse': 'off', 'width': 1000, 'outlet': 1}, {'pulse': 'off', 'width': 1000, 'outlet': 2}, {'pulse': 'off', 'width': 1000, 'outlet': 3}], 'switches': [{'switch': 'off', 'outlet': 0}, {'switch': 'off', 'outlet': 1}, {'switch': 'off', 'outlet': 2}, {'switch': 'off', 'outlet': 3}], 'partnerApikey': '...'}}

@AlexxIT
Copy link
Owner

AlexxIT commented May 26, 2020

I think you have problem with WiFi. Two devices did not answer either on a local or a cloud connection. And the others answered with faults.

Try rebooting the router first.

@AlexxIT AlexxIT added the question Further information is requested label May 26, 2020
@browetd
Copy link

browetd commented May 28, 2020

I have the same issue... It is a sonoff 4CH Pro R2... and the equipment seems to work correctly.

100046486a => Local4 | {'switches': [{'outlet': 1, 'switch': 'off'}]} !! Cannot connect to host 192.168.1.16:8081 ssl:None [Connect call failed ('192.168.1.16', 8081)]
100046486a => Local4 | {'cmd': 'info'} !! Cannot connect to host 192.168.1.16:8081 ssl:None [Connect call failed ('192.168.1.16', 8081)]

@AlexxIT
Copy link
Owner

AlexxIT commented May 28, 2020

Oh I also have "Cannot connect to host" issue. Devices not always respond locally. In this case, cloud connectivity helps.

@browetd
Copy link

browetd commented May 28, 2020

In this case the problem I have is that I have two locations... one I can enable local + cloud but not for the other one (where the problem is)... What I can do is to split those equipments on two different usernames and enable local + cloud on both and use mqtt to transfer status between the two locations running HA as I have one "master" (where everything is displayed/managed) and a "slave"... I will give a try (when we will be able to travel). I can live with these warnings as it is not a blocking error.

Neverthless, great work by having done this new major version with unavailability detection and local/cloud options...

@AlexxIT
Copy link
Owner

AlexxIT commented May 28, 2020

@browetd different usernames (shared devices) should work fine.

@AlexxIT
Copy link
Owner

AlexxIT commented May 28, 2020

@flipepiloto any updates?

@flipepiloto
Copy link
Author

flipepiloto commented May 28, 2020

@flipepiloto any updates?

Hi AlexxIt, at first i want to thank you for your efforts to help us and provide a very easy and usefull tool.
Once after some updates on your tool it's works ok. Some times on restart HA one sonoff mini or Tx2 become unavailable so i turn on and turn off by ewelink and its works on HA.
i'm using local mode with reload always.
I'm planning to buy a new router as soon as possible.
Once more thank you!

@AlexxIT AlexxIT closed this as completed May 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants