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.67k stars 414 forks source link

Sonoff mini Cloud ERROR #994

Closed Soltinioo closed 1 year ago

Soltinioo commented 2 years ago

Hi, I have a problem with one device that I use in automation. I don't know why this is happening. I do not understand why, when it is not possible to use the cloud, it does not connect locally. If I force lan mode, the device and my automations always work.

Logs:

Ten błąd pochodzi z niestandardowej integracji.

Logger: custom_components.sonoff.core.ewelink.cloud
Source: custom_components/sonoff/core/ewelink/cloud.py:286
Integration: Sonoff (documentation, issues)
First occurred: 19:42:08 (1 occurrences)
Last logged: 19:42:08

Cloud ERROR: {'error': 504, 'reason': 'Request Timeout', 'deviceid': '1000dcaf2e', 'apikey': '5846b6a1-c084-493c-81e1-255512bcbd0b', 'sequence': '1664646122000'}

Diagnostics of intergration

{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2022.9.7",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.10.5",
    "docker": true,
    "arch": "aarch64",
    "timezone": "Europe/Warsaw",
    "os_name": "Linux",
    "os_version": "5.15.61-v8",
    "supervisor": "2022.09.1",
    "host_os": "Home Assistant OS 9.0",
    "docker_version": "20.10.17",
    "chassis": "embedded",
    "run_as_root": true
  },
  "custom_components": {
    "sonoff": {
      "version": "3.3.1",
      "requirements": [
        "pycryptodome>=3.6.6"
      ]
    },
    "hacs": {
      "version": "1.27.2",
      "requirements": [
        "aiogithubapi>=22.2.4"
      ]
    },
    "samsungtv_tizen": {
      "version": "1.6.1",
      "requirements": [
        "websocket-client>=0.56.0",
        "wakeonlan>=2.0.0",
        "numpy>=1.19.2"
      ]
    },
    "xiaomi_miot": {
      "version": "0.6.13",
      "requirements": [
        "construct==2.10.56",
        "python-miio>=0.5.6",
        "micloud>=0.3"
      ]
    },
    "thermal_comfort": {
      "version": "1.5.2",
      "requirements": []
    },
    "webrtc": {
      "version": "v2.3.1",
      "requirements": []
    },
    "tuya_local": {
      "version": "0.19.3",
      "requirements": [
        "pycryptodome~=3.15.0",
        "tinytuya==1.6.5"
      ]
    },
    "dahua": {
      "version": "0.5.0",
      "requirements": []
    },
    "solarman": {
      "version": "1.0.0",
      "requirements": [
        "pyyaml"
      ]
    },
    "rpi_gpio": {
      "version": "2022.7.0",
      "requirements": [
        "RPi.GPIO==0.7.1"
      ]
    },
    "garbage_collection": {
      "version": "4.8.3",
      "requirements": [
        "python-dateutil>=2.8.2"
      ]
    }
  },
  "integration_manifest": {
    "domain": "sonoff",
    "name": "Sonoff",
    "config_flow": true,
    "documentation": "https://github.com/AlexxIT/SonoffLAN",
    "issue_tracker": "/api/sonoff/08919692-4fbe-4c68-a90a-e5f50bc5834d",
    "codeowners": [
      "@AlexxIT"
    ],
    "dependencies": [
      "http",
      "zeroconf"
    ],
    "requirements": [
      "pycryptodome>=3.6.6"
    ],
    "version": "3.3.1",
    "iot_class": "local_push",
    "is_built_in": false
  },
  "data": {
    "version": "b20e33c",
    "cloud_auth": true,
    "config": null,
    "options": {
      "mode": "auto",
      "debug": true
    },
    "errors": [
      {
        "name": "custom_components.sonoff.core.ewelink.cloud",
        "message": [
          "Cloud processing error"
        ],
        "level": "WARNING",
        "source": [
          "custom_components/sonoff/core/ewelink/__init__.py",
          165
        ],
        "timestamp": 1664644890.546108,
        "exception": "Traceback (most recent call last):\n  File \"/config/custom_components/sonoff/core/ewelink/cloud.py\", line 286, in run_forever\n    await self._process_ws_msg(resp)\n  File \"/config/custom_components/sonoff/core/ewelink/cloud.py\", line 340, in _process_ws_msg\n    self.dispatcher_send(SIGNAL_UPDATE, data)\n  File \"/config/custom_components/sonoff/core/ewelink/base.py\", line 59, in dispatcher_send\n    handler(*args, **kwargs)\n  File \"/config/custom_components/sonoff/core/ewelink/__init__.py\", line 165, in cloud_update\n    did = msg[\"deviceid\"]\nKeyError: 'deviceid'\n",
        "count": 1,
        "first_occurred": 1664644890.546108
      },
      {
        "name": "custom_components.sonoff.core.ewelink.cloud",
        "message": [
          "Cloud ERROR: {'error': 504, 'reason': 'Request Timeout', 'deviceid': '1000dcaf2e', 'apikey': '5846b6a1-c084-493c-81e1-255512bcbd0b', 'sequence': '1664646122000'}"
        ],
        "level": "WARNING",
        "source": [
          "custom_components/sonoff/core/ewelink/cloud.py",
          286
        ],
        "timestamp": 1664646128.5266304,
        "exception": "",
        "count": 1,
        "first_occurred": 1664646128.5266304
      }
    ],
    "devices": {
      "1000dcaf2e": {
        "uiid": 1,
        "params": {
          "bindInfos": "***",
          "version": 8,
          "sledOnline": "on",
          "switch": "off",
          "fwVersion": "3.6.0",
          "rssi": -65,
          "staMac": "***",
          "startup": "off",
          "init": 1,
          "pulse": "off",
          "pulseWidth": 500,
          "swMode": 2,
          "swCtrlReverse": "off"
        },
        "model": "MINI",
        "online": true,
        "localtype": "plug"
      },
      "1000dca60e": {
        "uiid": 1,
        "params": {
          "bindInfos": "***",
          "version": 8,
          "sledOnline": "on",
          "switch": "off",
          "fwVersion": "3.6.0",
          "rssi": -65,
          "staMac": "***",
          "startup": "stay",
          "init": 1,
          "pulse": "off",
          "pulseWidth": 500,
          "swMode": 2,
          "swCtrlReverse": "on"
        },
        "model": "MINI",
        "online": true,
        "localtype": "plug"
      },
      "1000dc87b3": {
        "uiid": 1,
        "params": {
          "bindInfos": "***",
          "version": 8,
          "sledOnline": "on",
          "switch": "off",
          "fwVersion": "3.6.0",
          "rssi": -63,
          "staMac": "***",
          "startup": "off",
          "init": 1,
          "pulse": "off",
          "pulseWidth": 500,
          "swMode": 2,
          "swCtrlReverse": "off"
        },
        "model": "MINI",
        "online": true,
        "localtype": "plug"
      },
      "1000a459a7": {
        "uiid": 1,
        "params": {
          "version": 8,
          "sledOnline": "off",
          "switch": "off",
          "fwVersion": "3.6.0",
          "rssi": -61,
          "staMac": "***",
          "startup": "off",
          "init": 1,
          "pulse": "off",
          "pulseWidth": 500,
          "swMode": 2,
          "swCtrlReverse": "off",
          "bindInfos": "***"
        },
        "model": "MINI",
        "online": true,
        "localtype": "plug"
      },
      "1000dca458": {
        "uiid": 1,
        "params": {
          "bindInfos": "***",
          "version": 8,
          "sledOnline": "off",
          "switch": "off",
          "fwVersion": "3.6.0",
          "rssi": -58,
          "staMac": "***",
          "startup": "off",
          "init": 1,
          "pulse": "off",
          "pulseWidth": 500,
          "swMode": 2,
          "swCtrlReverse": "off"
        },
        "model": "MINI",
        "online": true,
        "localtype": "plug"
      },
      "10014598b4": {
        "uiid": 1,
        "params": {
          "bindInfos": "***",
          "version": 8,
          "sledOnline": "off",
          "switch": "off",
          "fwVersion": "3.6.0",
          "rssi": -78,
          "staMac": "***",
          "startup": "off",
          "init": 1,
          "pulse": "off",
          "pulseWidth": 500,
          "swMode": 2,
          "swCtrlReverse": "off"
        },
        "model": "MINI",
        "online": true,
        "localtype": "plug"
      },
      "1000e5a2de": {
        "uiid": 15,
        "params": {
          "bindInfos": "***",
          "version": 8,
          "sledOnline": "off",
          "ssid": "***",
          "bssid": "***",
          "init": 1,
          "switch": "off",
          "fwVersion": "3.5.0",
          "rssi": -76,
          "staMac": "***",
          "startup": "stay",
          "pulse": "off",
          "pulseWidth": 500,
          "mainSwitch": "",
          "deviceType": "normal",
          "sensorType": "AM2301",
          "currentHumidity": "77",
          "currentTemperature": "21.8"
        },
        "model": "TH16R2",
        "online": false,
        "localtype": null
      },
      "1000ee0e46": {
        "uiid": 59,
        "params": {
          "bindInfos": "***",
          "version": 8,
          "sledOnline": "on",
          "rssi": -74,
          "fwVersion": "3.4.3",
          "staMac": "***",
          "switch": "off",
          "light_type": 1,
          "colorR": 255,
          "colorG": 255,
          "colorB": 255,
          "bright": 100,
          "mode": 1,
          "speed": 100,
          "sensitive": 10,
          "only_device": {
            "ota": "success"
          },
          "ssid": "***",
          "bssid": "***"
        },
        "model": "L1",
        "online": true,
        "localtype": null
      },
      "1001488813": {
        "uiid": 32,
        "params": {
          "bindInfos": "***",
          "version": 8,
          "only_device": {
            "ota": "success"
          },
          "sledOnline": "off",
          "ssid": "***",
          "bssid": "***",
          "fwVersion": "3.5.0",
          "staMac": "***",
          "rssi": -69,
          "init": 1,
          "alarmType": "pcv",
          "alarmVValue": [
            -1,
            -1
          ],
          "alarmCValue": [
            -1,
            -1
          ],
          "alarmPValue": [
            -1,
            -1
          ],
          "switch": "off",
          "startup": "stay",
          "pulse": "off",
          "pulseWidth": 500,
          "power": "0.00",
          "voltage": "235.47",
          "current": "0.00",
          "oneKwh": "stop",
          "uiActive": 7200,
          "timeZone": 1,
          "hundredDaysKwh": "get",
          "password": "Hf3R6Jo17atcmq7xUoDKcg==",
          "demNextFetchTime": 1664488800000
        },
        "model": "POWR2",
        "online": true,
        "localtype": "enhanced_plug"
      },
      "1000ef01c8": {
        "uiid": 1,
        "params": {
          "bindInfos": "***",
          "version": 8,
          "sledOnline": "off",
          "switch": "off",
          "fwVersion": "3.5.1",
          "rssi": -65,
          "staMac": "***",
          "startup": "stay",
          "init": 1,
          "pulse": "off",
          "pulseWidth": 500,
          "only_device": {
            "ota": "success"
          },
          "ssid": "***",
          "bssid": "***"
        },
        "model": "S55R1",
        "online": false,
        "localtype": null
      },
      "10012393a1": {
        "uiid": 32,
        "params": {
          "bindInfos": "***",
          "version": 8,
          "only_device": {
            "ota": "success"
          },
          "sledOnline": "off",
          "ssid": "***",
          "bssid": "***",
          "fwVersion": "3.5.0",
          "staMac": "***",
          "rssi": -71,
          "init": 1,
          "alarmType": "pcv",
          "alarmVValue": [
            -1,
            -1
          ],
          "alarmCValue": [
            -1,
            -1
          ],
          "alarmPValue": [
            -1,
            -1
          ],
          "switch": "off",
          "startup": "stay",
          "pulse": "off",
          "pulseWidth": 500,
          "power": "0.00",
          "voltage": "232.78",
          "current": "0.00",
          "oneKwh": "stop",
          "uiActive": 7200,
          "timeZone": 2,
          "hundredDaysKwh": "get",
          "password": "Hf3R6Jo17atcmq7xUoDKcg==",
          "demNextFetchTime": 1664488800000
        },
        "model": "POWR2",
        "online": true,
        "localtype": "enhanced_plug"
      },
      "10012397ca": {
        "uiid": 32,
        "params": {
          "bindInfos": "***",
          "version": 8,
          "only_device": {
            "ota": "success"
          },
          "sledOnline": "off",
          "ssid": "***",
          "bssid": "***",
          "fwVersion": "3.5.0",
          "staMac": "***",
          "rssi": -72,
          "init": 1,
          "alarmType": "pcv",
          "alarmVValue": [
            -1,
            -1
          ],
          "alarmCValue": [
            -1,
            -1
          ],
          "alarmPValue": [
            -1,
            -1
          ],
          "switch": "off",
          "startup": "stay",
          "pulse": "off",
          "pulseWidth": 500,
          "power": "0.00",
          "voltage": "233.26",
          "current": "0.00",
          "oneKwh": "stop",
          "uiActive": 7200,
          "timeZone": 2,
          "password": "Hf3R6Jo17atcmq7xUoDKcg==",
          "hundredDaysKwh": "get",
          "demNextFetchTime": 1664488800000
        },
        "model": "POWR2",
        "online": true,
        "localtype": "enhanced_plug"
      },
      "10012391a0": {
        "uiid": 32,
        "params": {
          "bindInfos": "***",
          "version": 8,
          "only_device": {
            "ota": "success"
          },
          "sledOnline": "off",
          "ssid": "***",
          "bssid": "***",
          "fwVersion": "3.5.0",
          "staMac": "***",
          "rssi": -73,
          "init": 1,
          "alarmType": "pcv",
          "alarmVValue": [
            -1,
            -1
          ],
          "alarmCValue": [
            -1,
            -1
          ],
          "alarmPValue": [
            -1,
            -1
          ],
          "switch": "on",
          "startup": "stay",
          "pulse": "off",
          "pulseWidth": 500,
          "power": "0.76",
          "voltage": "238.12",
          "current": "0.05",
          "oneKwh": "stop",
          "uiActive": 7200,
          "timeZone": 2,
          "hundredDaysKwh": "get",
          "demNextFetchTime": 1664488800000
        },
        "model": "POWR2",
        "online": true,
        "localtype": "enhanced_plug"
      },
      "1000eefec1": {
        "uiid": 1,
        "params": {
          "bindInfos": "***",
          "version": 8,
          "sledOnline": "off",
          "switch": "on",
          "fwVersion": "3.5.1",
          "rssi": -64,
          "staMac": "***",
          "startup": "stay",
          "init": 1,
          "pulse": "off",
          "pulseWidth": 500,
          "only_device": {
            "ota": "success"
          },
          "ssid": "***",
          "bssid": "***"
        },
        "model": "S55R1",
        "online": true,
        "localtype": "plug"
      },
      "10012391b3": {
        "uiid": 32,
        "params": {
          "bindInfos": "***",
          "version": 8,
          "only_device": {
            "ota": "success"
          },
          "sledOnline": "off",
          "ssid": "***",
          "bssid": "***",
          "fwVersion": "3.5.0",
          "staMac": "***",
          "rssi": -58,
          "init": 1,
          "alarmType": "pcv",
          "alarmVValue": [
            -1,
            -1
          ],
          "alarmCValue": [
            -1,
            -1
          ],
          "alarmPValue": [
            -1,
            -1
          ],
          "switch": "off",
          "startup": "stay",
          "pulse": "off",
          "pulseWidth": 500,
          "power": "0.00",
          "voltage": "235.63",
          "current": "0.00",
          "oneKwh": "stop",
          "uiActive": 7200,
          "timeZone": 2,
          "hundredDaysKwh": "get",
          "endTime": "2021-09-11T16:49:18.438Z",
          "startTime": "2021-09-04T13:18:56.020Z",
          "demNextFetchTime": 1664488800000
        },
        "model": "POWR2",
        "online": true,
        "localtype": "enhanced_plug"
      },
      "1000e5a55c": {
        "uiid": 15,
        "params": {
          "bindInfos": "***",
          "version": 8,
          "sledOnline": "off",
          "init": 1,
          "switch": "on",
          "fwVersion": "3.5.0",
          "rssi": -75,
          "staMac": "***",
          "startup": "stay",
          "pulse": "off",
          "pulseWidth": 500,
          "mainSwitch": "on",
          "deviceType": "normal",
          "sensorType": "AM2301",
          "currentHumidity": "70",
          "currentTemperature": "22.1",
          "timers": "***",
          "uiActive": 7200,
          "only_device": {
            "ota": "success"
          },
          "ssid": "***",
          "bssid": "***"
        },
        "model": "TH16R2",
        "online": true,
        "localtype": "th_plug"
      },
      "1000e5a54f": {
        "uiid": 15,
        "params": {
          "bindInfos": "***",
          "version": 8,
          "sledOnline": "off",
          "sensorType": "AM2301",
          "currentHumidity": "70",
          "currentTemperature": "17.9",
          "init": 1,
          "switch": "off",
          "fwVersion": "3.5.0",
          "rssi": -78,
          "staMac": "***",
          "startup": "stay",
          "pulse": "off",
          "pulseWidth": 500,
          "mainSwitch": "off",
          "deviceType": "normal",
          "only_device": {
            "ota": "success"
          },
          "ssid": "***",
          "bssid": "***"
        },
        "model": "TH16R2",
        "online": true,
        "localtype": "th_plug"
      },
      "1000bf0da6": {
        "uiid": 1,
        "params": {
          "bindInfos": "***",
          "version": 8,
          "sledOnline": "off",
          "ssid": "***",
          "bssid": "***",
          "switch": "off",
          "fwVersion": "3.5.1",
          "rssi": -74,
          "staMac": "***",
          "startup": "off",
          "init": 1,
          "pulse": "off",
          "pulseWidth": 500,
          "timers": "***",
          "only_device": {
            "ota": "success"
          }
        },
        "model": "S55R1",
        "online": false,
        "localtype": null
      },
      "10010a5b90": {
        "uiid": 1,
        "params": {
          "bindInfos": "***",
          "version": 8,
          "sledOnline": "off",
          "ssid": "***",
          "bssid": "***",
          "switch": "off",
          "fwVersion": "3.5.1",
          "rssi": -69,
          "staMac": "***",
          "startup": "stay",
          "init": 1,
          "pulse": "off",
          "pulseWidth": 500,
          "timers": "***",
          "only_device": {
            "ota": "success"
          }
        },
        "model": "S26R1",
        "online": false,
        "localtype": null
      },
      "1000fcbef3": {
        "uiid": 104,
        "params": {
          "bindInfos": "***",
          "version": 7,
          "switch": "on",
          "ltype": "color",
          "white": {
            "br": 100,
            "ct": 255
          },
          "fwVersion": "1.3.2",
          "color": {
            "r": 184,
            "g": 134,
            "b": 0,
            "br": 11
          },
          "sequence": "123456789",
          "selfApikey": "",
          "leisure": {
            "r": 0,
            "g": 40,
            "b": 254,
            "br": 55,
            "tf": 1,
            "sp": 1
          },
          "goodNight": {
            "r": 254,
            "g": 254,
            "b": 126,
            "br": 25
          },
          "bright": {
            "r": 255,
            "g": 255,
            "b": 255,
            "br": 100
          },
          "read": {
            "r": 255,
            "g": 255,
            "b": 255,
            "br": 60
          },
          "timers": "***",
          "soft": {
            "r": 38,
            "g": 254,
            "b": 0,
            "br": 20,
            "tf": 1,
            "sp": 1
          },
          "colorful": {
            "r": 255,
            "g": 0,
            "b": 0,
            "br": 100,
            "tf": 1,
            "sp": 1
          },
          "nightLight": {
            "r": 255,
            "g": 242,
            "b": 226,
            "br": 5
          },
          "party": {
            "r": 254,
            "g": 132,
            "b": 0,
            "br": 45,
            "tf": 1,
            "sp": 1
          }
        },
        "model": "B05-B",
        "online": true,
        "localtype": null
      },
      "1000f6b5d1": {
        "uiid": 1,
        "params": {
          "bindInfos": "***",
          "version": 8,
          "sledOnline": "off",
          "switch": "off",
          "fwVersion": "3.5.1",
          "rssi": -79,
          "staMac": "***",
          "startup": "stay",
          "init": 1,
          "pulse": "off",
          "pulseWidth": 500,
          "only_device": {
            "ota": "success"
          },
          "ssid": "***",
          "bssid": "***"
        },
        "model": "SANTTON_2",
        "online": true,
        "localtype": "plug"
      }
    }
  }
}

Diagnostics device:

{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2022.9.7",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.10.5",
    "docker": true,
    "arch": "aarch64",
    "timezone": "Europe/Warsaw",
    "os_name": "Linux",
    "os_version": "5.15.61-v8",
    "supervisor": "2022.09.1",
    "host_os": "Home Assistant OS 9.0",
    "docker_version": "20.10.17",
    "chassis": "embedded",
    "run_as_root": true
  },
  "custom_components": {
    "sonoff": {
      "version": "3.3.1",
      "requirements": [
        "pycryptodome>=3.6.6"
      ]
    },
    "hacs": {
      "version": "1.27.2",
      "requirements": [
        "aiogithubapi>=22.2.4"
      ]
    },
    "samsungtv_tizen": {
      "version": "1.6.1",
      "requirements": [
        "websocket-client>=0.56.0",
        "wakeonlan>=2.0.0",
        "numpy>=1.19.2"
      ]
    },
    "xiaomi_miot": {
      "version": "0.6.13",
      "requirements": [
        "construct==2.10.56",
        "python-miio>=0.5.6",
        "micloud>=0.3"
      ]
    },
    "thermal_comfort": {
      "version": "1.5.2",
      "requirements": []
    },
    "webrtc": {
      "version": "v2.3.1",
      "requirements": []
    },
    "tuya_local": {
      "version": "0.19.3",
      "requirements": [
        "pycryptodome~=3.15.0",
        "tinytuya==1.6.5"
      ]
    },
    "dahua": {
      "version": "0.5.0",
      "requirements": []
    },
    "solarman": {
      "version": "1.0.0",
      "requirements": [
        "pyyaml"
      ]
    },
    "rpi_gpio": {
      "version": "2022.7.0",
      "requirements": [
        "RPi.GPIO==0.7.1"
      ]
    },
    "garbage_collection": {
      "version": "4.8.3",
      "requirements": [
        "python-dateutil>=2.8.2"
      ]
    }
  },
  "integration_manifest": {
    "domain": "sonoff",
    "name": "Sonoff",
    "config_flow": true,
    "documentation": "https://github.com/AlexxIT/SonoffLAN",
    "issue_tracker": "/api/sonoff/08919692-4fbe-4c68-a90a-e5f50bc5834d",
    "codeowners": [
      "@AlexxIT"
    ],
    "dependencies": [
      "http",
      "zeroconf"
    ],
    "requirements": [
      "pycryptodome>=3.6.6"
    ],
    "version": "3.3.1",
    "iot_class": "local_push",
    "is_built_in": false
  },
  "data": {
    "version": "b20e33c",
    "cloud_auth": true,
    "config": null,
    "options": {
      "mode": "auto",
      "debug": true
    },
    "errors": [
      {
        "name": "custom_components.sonoff.core.ewelink.cloud",
        "message": [
          "Cloud processing error"
        ],
        "level": "WARNING",
        "source": [
          "custom_components/sonoff/core/ewelink/__init__.py",
          165
        ],
        "timestamp": 1664644890.546108,
        "exception": "Traceback (most recent call last):\n  File \"/config/custom_components/sonoff/core/ewelink/cloud.py\", line 286, in run_forever\n    await self._process_ws_msg(resp)\n  File \"/config/custom_components/sonoff/core/ewelink/cloud.py\", line 340, in _process_ws_msg\n    self.dispatcher_send(SIGNAL_UPDATE, data)\n  File \"/config/custom_components/sonoff/core/ewelink/base.py\", line 59, in dispatcher_send\n    handler(*args, **kwargs)\n  File \"/config/custom_components/sonoff/core/ewelink/__init__.py\", line 165, in cloud_update\n    did = msg[\"deviceid\"]\nKeyError: 'deviceid'\n",
        "count": 1,
        "first_occurred": 1664644890.546108
      },
      {
        "name": "custom_components.sonoff.core.ewelink.cloud",
        "message": [
          "Cloud ERROR: {'error': 504, 'reason': 'Request Timeout', 'deviceid': '1000dcaf2e', 'apikey': '5846b6a1-c084-493c-81e1-255512bcbd0b', 'sequence': '1664646122000'}"
        ],
        "level": "WARNING",
        "source": [
          "custom_components/sonoff/core/ewelink/cloud.py",
          286
        ],
        "timestamp": 1664646128.5266304,
        "exception": "",
        "count": 1,
        "first_occurred": 1664646128.5266304
      }
    ],
    "device": {
      "uiid": 1,
      "params": {
        "bindInfos": "***",
        "version": 8,
        "sledOnline": "on",
        "switch": "off",
        "fwVersion": "3.6.0",
        "rssi": -65,
        "staMac": "***",
        "startup": "off",
        "init": 1,
        "pulse": "off",
        "pulseWidth": 500,
        "swMode": 2,
        "swCtrlReverse": "off"
      },
      "model": "MINI",
      "online": true,
      "localtype": "plug",
      "deviceid": "1000dcaf2e"
    }
  }
}
AlexxIT commented 2 years ago

I think your device just don't answer on cloud command. Bad WiFi or something like this.

AlexxIT commented 1 year ago

Please reopen the issue if it is still relevant

shaYaman commented 1 year ago

Happens here as well: Cloud ERROR: {'error': 504, 'reason': 'Request Timeout', 'deviceid': '100171d73a', 'apikey': '5fc8ef75-205f-4326-8518-876685db8b76', 'sequence': '1690210205002'}

Is there a way to block the cloud request in my router or maybe add a filrewall rule in home assistant server on Hardkernel ODROID-C4?