SonoffLAN: Sonoff Dual R3 Consumption not working
When I run the Service Sonoff: update_consumption i just get a timeout error in my SonoffDebug log and no data is populated from my Dual R3 in Switch Mode. The eWeLink App shows the consumtion as normal. I believe this has never been working so far
2021-08-23 12:07:34 DEBUG main SysInfo: {'version': '2021.8.7', 'dev': False, 'hassio': True, 'virtualenv': False, 'python_version': '3.9.6', 'docker': True, 'user': 'root', 'arch': 'armv7l', 'os_name': 'Linux', 'os_version': '5.10.17-v7l', 'supervisor': '2021.06.8', 'host_os': 'Home Assistant OS 6.2', 'docker_version': '20.10.6', 'chassis': 'embedded'}
2021-08-23 12:07:34 DEBUG main AUTO mode start
2021-08-23 12:07:37 DEBUG sonoff_cloud 2 devices loaded from the Cloud Server
2021-08-23 12:07:37 DEBUG main Init force_update for attributes: {'power'}
2021-08-23 12:07:37 DEBUG main Init auto sensors for: ['voltage', 'current', 'power', 'consumption', 'current_1', 'current_2', 'voltage_1', 'voltage_2', 'power_1', 'power_2']
2021-08-23 12:07:37 DEBUG main 10008dc2cb == Init | {'uiid': 11, 'extra': {'manufacturer': 'KingArt', 'model': ' ', 'sw_version': 'PSF-BTA-GL v3.4.0'}, 'params': {'timers': [], 'sledOnline': 'off', 'rssi': -84, 'fwVersion': '3.4.0', 'staMac': '...', 'switch': 'on', 'setclose': 0, 'bindInfos': {'alexa': ['...']}, 'version': 8, 'only_device': {'ota': 'success'}, 'ssid': '...', 'bssid': '...', 'cloud': 'offline'}}
2021-08-23 12:07:37 DEBUG main 10012730ba == Init | {'uiid': 126, 'extra': {'manufacturer': 'SONOFF', 'model': 'DUALR3', 'sw_version': 'E32-2SW-P0 v1.3.0'}, 'params': {'bindInfos': {'alexa': ['...']}, 'version': 7, 'workMode': 1, 'motorSwMode': 2, 'motorSwReverse': 0, 'outputReverse': 0, 'motorTurn': 0, 'calibState': 0, 'currLocation': 0, 'location': 0, 'sledBright': 0, 'staMac': '3C61054B49C8', 'rssi': -60, 'overload_00': {'minActPow': {'enabled': 0, 'value': 10}, 'maxVoltage': {'enabled': 0, 'value': 24000}, 'minVoltage': {'enabled': 0, 'value': 10}, 'maxCurrent': {'enabled': 1, 'value': 400}, 'maxActPow': {'enabled': 1, 'value': 50000}}, 'overload_01': {'minActPow': {'enabled': 0, 'value': 10}, 'maxVoltage': {'enabled': 0, 'value': 24000}, 'minVoltage': {'enabled': 0, 'value': 10}, 'maxCurrent': {'enabled': 0, 'value': 1500}, 'maxActPow': {'enabled': 0, 'value': 360000}}, 'oneKwhState_00': 1, 'startTime_00': '2021-07-24T10:12:35.650Z', 'endTime_00': '', 'oneKwhState_01': 0, 'startTime_01': '', 'endTime_01': '', 'oneKwhData_00': 2741, 'oneKwhData_01': 0, 'current_00': 3, 'voltage_00': 23725, 'actPow_00': 0, 'reactPow_00': 806, 'apparentPow_00': 806, 'current_01': 0, 'voltage_01': 23725, 'actPow_01': 0, 'reactPow_01': 0, 'apparentPow_01': 0, 'fwVersion': '1.3.0', 'timeZone': 2, 'swMode_00': 2, 'swMode_01': 2, 'swReverse_00': 0, 'swReverse_01': 0, 'zyx_clear_timers': True, 'switches': [{'switch': 'on', 'outlet': 0}, {'switch': 'off', 'outlet': 1}], 'configure': [{'startup': 'on', 'outlet': 0}, {'startup': 'off', 'outlet': 1}], 'pulses': [{'pulse': 'off', 'width': 1000, 'outlet': 0}, {'pulse': 'off', 'width': 1000, 'outlet': 1}], 'uiActive': {'outlet': 0, 'time': 60}, 'getKwh_00': 2, 'getKwh_01': 2, 'timers': [], 'initSetting': 1, 'cloud': 'online'}}
2021-08-23 12:07:37 DEBUG sonoff_cloud Start refresh task for 1 POW
2021-08-23 12:07:37 DEBUG sonoff_local 10012730ba <= Local1 | {'current_00': 46, 'voltage_00': 23581, 'actPow_00': 10728, 'reactPow_00': 2028, 'apparentPow_00': 10918} | 31540
2021-08-23 12:07:37 DEBUG sonoff_cloud Cloud init: {'error': 0, 'apikey': '...', 'config': {'hb': 1, 'hbInterval': 145}, 'sequence': '1629713257885'}
2021-08-23 12:08:27 DEBUG sonoff_cloud Update consumption for all devices
2021-08-23 12:08:27 DEBUG sonoff_cloud 10012730ba => Cloud4 | {'hundredDaysKwh': 'get'} | 1629713307574
2021-08-23 12:08:32 DEBUG sonoff_cloud 10012730ba <= Cloud3 | {'error': 504, 'reason': 'Request Timeout', 'deviceid': '10012730ba', 'apikey': '...', 'sequence': '1629713307574'}
2021-08-23 12:08:37 DEBUG sonoff_cloud 10012730ba => Cloud4 | {'uiActive': 7200} | 1629713317718
2021-08-23 12:08:37 DEBUG sonoff_cloud 10012730ba <= Cloud3 | {'error': 400, 'deviceid': '10012730ba', 'apikey': '...', 'sequence': '1629713317718'}
2021-08-23 12:09:33 DEBUG sonoff_cloud 10008dc2cb <= Cloud3 | {'action': 'sysmsg', 'deviceid': '10008dc2cb', 'apikey': '...', 'params': {'online': True}}
2021-08-23 12:09:33 DEBUG sonoff_cloud 10008dc2cb <= Cloud3 | {'action': 'update', 'deviceid': '10008dc2cb', 'apikey': '...', 'userAgent': 'device', 'd_seq': 483, 'params': {'sledOnline': 'off', 'ssid': '...', 'bssid': '...'}, 'from': 'device'}
2021-08-23 12:09:34 DEBUG sonoff_cloud 10008dc2cb <= Cloud3 | {'action': 'update', 'deviceid': '10008dc2cb', 'apikey': '...', 'userAgent': 'device', 'params': {'rssi': -85, 'fwVersion': '3.4.0', 'staMac': '...'}, 'from': 'device'}
2021-08-23 12:09:35 DEBUG sonoff_cloud 10012730ba <= Cloud3 | {'action': 'update', 'deviceid': '10012730ba', 'apikey': '...', 'userAgent': 'app', 'sequence': '1629713374931', 'params': {'getKwh_00': 2}, 'tempRec': '10012730ba'}
2021-08-23 12:09:48 DEBUG sonoff_cloud 10008dc2cb <= Cloud3 | {'action': 'update', 'deviceid': '10008dc2cb', 'apikey': '...', 'userAgent': 'device', 'params': {'switch': 'on', 'setclose': 0}, 'from': 'device'}
2021-08-23 12:09:48 DEBUG sonoff_cloud 10008dc2cb <= Cloud3 | {'action': 'update', 'deviceid': '10008dc2cb', 'apikey': '...', 'userAgent': 'device', 'params': {'switch': 'on', 'setclose': 0}, 'from': 'device'}
2021-08-23 12:09:56 DEBUG sonoff_cloud 10012730ba <= Cloud3 | {'action': 'update', 'deviceid': '10012730ba', 'apikey': '...', 'userAgent': 'app', 'sequence': '1629713396287', 'params': {'getKwh_00': 2}, 'tempRec': '10012730ba'}
2021-08-23 12:09:58 DEBUG sonoff_cloud 10012730ba <= Cloud3 | {'action': 'update', 'deviceid': '10012730ba', 'apikey': '...', 'userAgent': 'app', 'sequence': '1629713398224', 'params': {'getKwh_01': 2}, 'tempRec': '10012730ba'}
2021-08-23 12:10:00 DEBUG sonoff_local 10012730ba <= Local3 | {'switches': [{'switch': 'on', 'outlet': 0}, {'switch': 'on', 'outlet': 1}]} | 31547
2021-08-23 12:10:01 DEBUG sonoff_cloud 10012730ba <= Cloud3 | {'action': 'update', 'deviceid': '10012730ba', 'apikey': '...', 'userAgent': 'device', 'sequence': '1629713400887', 'd_seq': 9284, 'params': {'switches': [{'switch': 'on', 'outlet': 0}, {'switch': 'on', 'outlet': 1}]}, 'from': 'device', 'seq': '31547'}
2021-08-23 12:10:01 DEBUG sonoff_main Skip update with same sequence
2021-08-23 12:10:02 DEBUG sonoff_cloud 10012730ba <= Cloud3 | {'action': 'update', 'deviceid': '10012730ba', 'apikey': '...', 'userAgent': 'device', 'sequence': '1629713402189', 'd_seq': 2615, 'params': {'switches': [{'switch': 'on', 'outlet': 0}, {'switch': 'off', 'outlet': 1}]}, 'from': 'device', 'seq': '31548'}
2021-08-23 12:10:03 DEBUG sonoff_local 10012730ba <= Local3 | {'switches': [{'switch': 'on', 'outlet': 0}, {'switch': 'off', 'outlet': 1}]} | 31548
2021-08-23 12:10:03 DEBUG sonoff_main Skip update with same sequence
2021-08-23 12:10:04 DEBUG sonoff_cloud 10012730ba <= Cloud3 | {'action': 'update', 'deviceid': '10012730ba', 'apikey': '...', 'userAgent': 'app', 'sequence': '1629713404430', 'params': {'getKwh_01': 2}, 'tempRec': '10012730ba'}
2021-08-23 12:10:05 DEBUG sonoff_cloud 10012730ba <= Cloud3 | {'action': 'update', 'deviceid': '10012730ba', 'apikey': '...', 'userAgent': 'app', 'sequence': '1629713405769', 'params': {'getKwh_00': 2}, 'tempRec': '10012730ba'}
2021-08-23 12:10:53 DEBUG sonoff_cloud Update consumption for all devices
2021-08-23 12:10:53 DEBUG sonoff_cloud 10012730ba => Cloud4 | {'hundredDaysKwh': 'get'} | 1629713453867
2021-08-23 12:10:58 DEBUG sonoff_cloud 10012730ba <= Cloud3 | {'error': 504, 'reason': 'Request Timeout', 'deviceid': '10012730ba', 'apikey': '...', 'sequence': '1629713453867'}
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 3
- Comments: 18 (6 by maintainers)
It is known issue. R3 using different API
any chance it can be implemented?
i believe this is what’s needed: https://www.home-assistant.io/integrations/integration/#energy sonoff integration provides power readings, using the above we can have the energy reading that can be added in HA energy dashboard. Thanks @AlexxIT for supporting the relays.
I am having the same issue where there is a timeout error when querying the cloud for power usage.