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 Devices Periodically Unavailable On HA #867

Closed eric8503 closed 2 years ago

eric8503 commented 2 years ago

I have the Sonoff integration added to my Home Assistant. Every now and then when I try to access this through my mobile device the sensors are unavailable or offline. I have to go into the settings and manually reload the service in order for the sensors to become operational again. This goes for all my devices accept the Backyard Light which seems to stay connected the whole time.

Attached are two screenshots of On and Off State of the Backyard Light and all the others disconnected.

HA 01

HA 02

prosymnus commented 2 years ago

same as mine... get this error on log " Cloud WS Connection error: Cannot connect to host as-pconnect1.coolkit.cc:8080 "

pecuna commented 2 years ago

This happend to me tonight. All my SonOFF devices become unavailable. Manually realoding the Integration fixed the issue.

prosymnus commented 2 years ago

This happend to me tonight. All my SonOFF devices become unavailable. Manually realoding the Integration fixed the issue.

yes, fixed for a moment before it become unavailable again.

candidotsa commented 2 years ago

Change the HA DNS server to 1.1.1.1 reboot and see if work.

AlexxIT commented 2 years ago

You need to attach a diagnosis of integration

prosymnus commented 2 years ago

You need to attach a diagnosis of integration this is mine

{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2022.6.3",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.9.12",
    "docker": true,
    "arch": "armv7l",
    "timezone": "Asia/Kuala_Lumpur",
    "os_name": "Linux",
    "os_version": "5.15.32-v7",
    "supervisor": "2022.05.3",
    "host_os": "Home Assistant OS 8.1",
    "docker_version": "20.10.14",
    "chassis": "embedded",
    "run_as_root": true
  },
  "custom_components": {
    "sonoff": {
      "version": "3.0.5",
      "requirements": [
        "pycryptodome>=3.6.6"
      ]
    },
    "hacs": {
      "version": "1.24.5",
      "requirements": [
        "aiogithubapi>=21.11.0"
      ]
    }
  },
  "integration_manifest": {
    "domain": "sonoff",
    "name": "Sonoff",
    "config_flow": true,
    "documentation": "https://github.com/AlexxIT/SonoffLAN",
    "issue_tracker": "https://github.com/AlexxIT/SonoffLAN/issues",
    "codeowners": [
      "@AlexxIT"
    ],
    "dependencies": [
      "http",
      "zeroconf"
    ],
    "requirements": [
      "pycryptodome>=3.6.6"
    ],
    "version": "3.0.5",
    "iot_class": "local_push",
    "is_built_in": false
  },
  "data": {
    "version": "200f243",
    "cloud_auth": true,
    "config": null,
    "options": {
      "mode": "cloud",
      "debug": false
    },
    "errors": [
      {
        "name": "custom_components.sonoff.core.ewelink.cloud",
        "message": [
          "Cloud WS Connection error: Cannot connect to host as-pconnect3.coolkit.cc:8080 ssl:default [Try again]",
          "Cloud WS Connection error: Cannot connect to host as-pconnect1.coolkit.cc:8080 ssl:default [Try again]",
          "Cloud WS Connection error: Cannot connect to host as-pconnect5.coolkit.cc:8080 ssl:default [Try again]",
          "Cloud WS Connection error: Cannot connect to host as-dispa.coolkit.cc:443 ssl:default [Try again]",
          "Cloud WS Connection error: Cannot connect to host as-pconnect4.coolkit.cc:8080 ssl:default [Try again]"
        ],
        "level": "WARNING",
        "source": [
          "custom_components/sonoff/core/ewelink/cloud.py",
          321
        ],
        "timestamp": 1655304668.7258217,
        "exception": "",
        "count": 16,
        "first_occurred": 1655273202.4389882
      }
    ],
    "device": {
      "uiid": 2,
      "params": {
        "bindInfos": "***",
        "version": 8,
        "sledOnline": "on",
        "fwVersion": "3.5.1",
        "staMac": "***",
        "rssi": -55,
        "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": [
          {
            "outlet": 0,
            "switch": "on"
          },
          {
            "outlet": 1,
            "switch": "on"
          },
          {
            "outlet": 0,
            "switch": "off"
          },
          {
            "outlet": 1,
            "switch": "off"
          },
          {
            "outlet": 0,
            "switch": "off"
          },
          {
            "outlet": 1,
            "switch": "off"
          }
        ],
        "only_device": {
          "ota": "success"
        },
        "ssid": "***",
        "bssid": "***"
      },
      "model": "M602-1",
      "online": true,
      "localtype": null,
      "deviceid": "10012caa7e"
    }
  }
}
candidotsa commented 2 years ago

Hi AlexIT. I just updated to the last version and it's working fine. Thank you a lot

A quinta, 7/07/2022, 14:06, prosymnus @.***> escreveu:

You need to attach a diagnosis of integration this is mine

{ "home_assistant": { "installation_type": "Home Assistant OS", "version": "2022.6.3", "dev": false, "hassio": true, "virtualenv": false, "python_version": "3.9.12", "docker": true, "arch": "armv7l", "timezone": "Asia/Kuala_Lumpur", "os_name": "Linux", "os_version": "5.15.32-v7", "supervisor": "2022.05.3", "host_os": "Home Assistant OS 8.1", "docker_version": "20.10.14", "chassis": "embedded", "run_as_root": true }, "custom_components": { "sonoff": { "version": "3.0.5", "requirements": [ "pycryptodome>=3.6.6" ] }, "hacs": { "version": "1.24.5", "requirements": [ "aiogithubapi>=21.11.0" ] } }, "integration_manifest": { "domain": "sonoff", "name": "Sonoff", "config_flow": true, "documentation": "https://github.com/AlexxIT/SonoffLAN", "issue_tracker": "https://github.com/AlexxIT/SonoffLAN/issues", "codeowners": [ @.*** https://github.com/AlexxIT" ], "dependencies": [ "http", "zeroconf" ], "requirements": [ "pycryptodome>=3.6.6" ], "version": "3.0.5", "iot_class": "local_push", "is_built_in": false }, "data": { "version": "200f243", "cloud_auth": true, "config": null, "options": { "mode": "cloud", "debug": false }, "errors": [ { "name": "custom_components.sonoff.core.ewelink.cloud", "message": [ "Cloud WS Connection error: Cannot connect to host as-pconnect3.coolkit.cc:8080 ssl:default [Try again]", "Cloud WS Connection error: Cannot connect to host as-pconnect1.coolkit.cc:8080 ssl:default [Try again]", "Cloud WS Connection error: Cannot connect to host as-pconnect5.coolkit.cc:8080 ssl:default [Try again]", "Cloud WS Connection error: Cannot connect to host as-dispa.coolkit.cc:443 ssl:default [Try again]", "Cloud WS Connection error: Cannot connect to host as-pconnect4.coolkit.cc:8080 ssl:default [Try again]" ], "level": "WARNING", "source": [ "custom_components/sonoff/core/ewelink/cloud.py", 321 ], "timestamp": 1655304668.7258217, "exception": "", "count": 16, "first_occurred": 1655273202.4389882 } ], "device": { "uiid": 2, "params": { "bindInfos": "

", "version": 8, "sledOnline": "on", "fwVersion": "3.5.1", "staMac": "", "rssi": -55, "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": [ { "outlet": 0, "switch": "on" }, { "outlet": 1, "switch": "on" }, { "outlet": 0, "switch": "off" }, { "outlet": 1, "switch": "off" }, { "outlet": 0, "switch": "off" }, { "outlet": 1, "switch": "off" } ], "only_device": { "ota": "success" }, "ssid": " ", "bssid": "" }, "model": "M602-1", "online": true, "localtype": null, "deviceid": "10012caa7e" } } }

— Reply to this email directly, view it on GitHub https://github.com/AlexxIT/SonoffLAN/issues/867#issuecomment-1177583664, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASR3U5E77ECRIWB2HEFFZ2DVS3I4VANCNFSM5YE5K26A . You are receiving this because you commented.Message ID: @.***>

candidotsa commented 2 years ago

2022-07-07 19:21:27 [D] SysInfo: {'installation_type': 'Home Assistant OS', 'version': '2022.7.0', 'dev': False, 'hassio': True, 'virtualenv': False, 'python_version': '3.10.5', 'docker': True, 'arch': 'aarch64', 'timezone': 'Europe/Lisbon', 'os_name': 'Linux', 'os_version': '5.15.32-v8', 'user': 'root', 'supervisor': '2022.07.0', 'host_os': 'Home Assistant OS 8.2', 'docker_version': '20.10.14', 'chassis': 'embedded', 'sonoff_version': '3.1.0 (3871c0b)'} 2022-07-07 19:21:28 [D] 19 devices loaded from Cloud 2022-07-07 19:21:28 [D] 1001556433 UIID 0032 | {'version': 8, 'sledOnline': 'on', 'fwVersion': '3.5.0', 'rssi': -73, 'init': 1, 'alarmType': 'pcv', 'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'power': '0.00', 'voltage': '231.11', 'current': '0.00', 'oneKwh': 'stop', 'uiActive': 7200, 'timeZone': 1, 'hundredDaysKwh': 'get'} 2022-07-07 19:21:28 [D] 100155644d UIID 0032 | {'version': 8, 'sledOnline': 'on', 'fwVersion': '3.5.0', 'rssi': -56, 'init': 1, 'alarmType': 'pcv', 'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'power': '0.00', 'voltage': '230.85', 'current': '0.00', 'oneKwh': 'stop', 'uiActive': 7200, 'hundredDaysKwh': 'get', 'timeZone': 1} 2022-07-07 19:21:28 [D] 10012a4966 UIID 0015 | {'version': 8, 'sledOnline': 'on', 'init': 1, 'switch': 'off', 'fwVersion': '3.5.0', 'rssi': -62, 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sensorType': 'DS18B20', 'currentHumidity': 'unavailable', 'currentTemperature': '67.2', 'only_device': {'ota': 'success'}, 'mainSwitch': 'off', 'deviceType': 'normal'} 2022-07-07 19:21:28 [D] 10010f50bb UIID 0001 | {'version': 8, 'sledOnline': 'on', 'switch': 'off', 'fwVersion': '3.6.0', 'rssi': -73, 'startup': 'off', 'init': 1, 'pulse': 'off', 'pulseWidth': 500, 'swMode': 2, 'swCtrlReverse': 'off'} 2022-07-07 19:21:28 [D] 1001338ffd UIID 0126 | {'version': 7, 'workMode': 1, 'swMode_00': 1, 'swMode_01': 1, 'swReverse_00': 0, 'swReverse_01': 0, 'switches': [{'switch': 'off', 'outlet': 0}, {'switch': 'off', 'outlet': 1}], 'configure': [{'startup': 'off', 'outlet': 0}, {'startup': 'off', 'outlet': 1}], 'pulses': [{'pulse': 'off', 'width': 1000, 'outlet': 0}, {'pulse': 'off', 'width': 1000, 'outlet': 1}], 'motorSwMode': 2, 'motorSwReverse': 0, 'outputReverse': 0, 'motorTurn': 0, 'calibState': 0, 'currLocation': 0, 'location': 0, 'sledBright': 100, 'rssi': -64, 'overload_00': {'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}}, '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-11-02T16:42:45.328Z', 'endTime_00': '', 'oneKwhState_01': 0, 'startTime_01': '', 'endTime_01': '', 'oneKwhData_00': 349, 'oneKwhData_01': 0, 'current_00': 0, 'voltage_00': 23123, 'actPow_00': 0, 'reactPow_00': 0, 'apparentPow_00': 0, 'current_01': 0, 'voltage_01': 23123, 'actPow_01': 0, 'reactPow_01': 0, 'apparentPow_01': 0, 'fwVersion': '1.4.0', 'timeZone': 1, 'zyx_clear_timers': True, 'initSetting': 1, 'uiActive': {'all': 1, 'time': 7200}, 'only_device': {'ota': 'success', 'ota_fail_reason': 0}, 'getKwh_00': 2} 2022-07-07 19:21:28 [D] 10010f5fe1 UIID 0001 | {'version': 8, 'sledOnline': 'on', 'switch': 'off', 'fwVersion': '3.6.0', 'rssi': -75, 'startup': 'off', 'init': 1, 'pulse': 'off', 'pulseWidth': 500, 'swMode': 3, 'swCtrlReverse': 'off'} 2022-07-07 19:21:28 [D] 10010ea66b UIID 0001 | {'version': 8, 'sledOnline': 'on', 'switch': 'off', 'fwVersion': '3.6.0', 'rssi': -58, 'startup': 'off', 'init': 1, 'pulse': 'off', 'pulseWidth': 500, 'swMode': 3, 'swCtrlReverse': 'off'} 2022-07-07 19:21:28 [D] 10010ee384 UIID 0001 | {'version': 8, 'sledOnline': 'on', 'switch': 'off', 'fwVersion': '3.6.0', 'rssi': -72, 'startup': 'off', 'init': 1, 'pulse': 'off', 'pulseWidth': 500, 'swMode': 3, 'swCtrlReverse': 'off'} 2022-07-07 19:21:28 [D] 10010ea1ca UIID 0001 | {'version': 8, 'sledOnline': 'on', 'switch': 'off', 'fwVersion': '3.6.0', 'rssi': -83, 'startup': 'off', 'init': 1, 'pulse': 'off', 'pulseWidth': 500, 'swMode': 3, 'swCtrlReverse': 'off'} 2022-07-07 19:21:28 [D] 1000b3498d UIID 0011 | {'version': 8, 'sledOnline': 'off', 'rssi': -59, 'fwVersion': '3.4.3', 'switch': 'pause', 'setclose': 71, 'only_device': {'ota': 'success'}} 2022-07-07 19:21:28 [D] 10010fa583 UIID 0001 | {'version': 8, 'sledOnline': 'on', 'switch': 'off', 'fwVersion': '3.6.0', 'rssi': -74, 'startup': 'off', 'init': 1, 'pulse': 'off', 'pulseWidth': 500, 'swMode': 3, 'swCtrlReverse': 'off'} 2022-07-07 19:21:28 [D] a63000dce6 UIID 0065 | {'record': 0, 'direction': 1, 'microphone': 1, 'sharpness': 1, 'health': 3} 2022-07-07 19:21:28 [D] 1000cfc6dc UIID 0001 | {'version': 8, 'sledOnline': 'off', 'switch': 'off', 'fwVersion': '3.5.1', 'rssi': -84, 'startup': 'off', 'init': 1, 'pulse': 'on', 'pulseWidth': 500, 'only_device': {'ota': 'success'}} 2022-07-07 19:21:28 [D] 10009ee4b8 UIID 0032 | {'sledOnline': 'on', 'switch': 'off', 'power': '0.00', 'voltage': '237.67', 'current': '0.00', 'fwVersion': '3.5.0', 'rssi': -53, 'init': 1, 'alarmType': 'pcv', 'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'oneKwh': 'stop', 'timeZone': 1, 'version': 8, 'startup': 'on', 'pulse': 'off', 'pulseWidth': 500, 'uiActive': 7200, 'only_device': {'ota': 'success'}, 'hundredDaysKwh': 'get', 'sledonline': 'on', 'endTime': '', 'startTime': '2021-08-28T14:38:45.709Z', 'onKwh': 'start'} 2022-07-07 19:21:28 [D] 1000e5337e UIID 0001 | {'version': 8, 'sledOnline': 'off', 'switch': 'off', 'fwVersion': '3.6.0', 'rssi': -90, 'startup': 'off', 'init': 1, 'pulse': 'off', 'pulseWidth': 500, 'swMode': 3, 'swCtrlReverse': 'off'} 2022-07-07 19:21:28 [D] 10007c7fe3 UIID 0032 | {'version': 8, 'sledOnline': 'on', 'fwVersion': '3.5.0', 'rssi': -36, 'init': 1, 'alarmType': 'pcv', 'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'on', 'pulse': 'off', 'pulseWidth': 500, 'power': '0.00', 'voltage': '229.03', 'current': '0.00', 'oneKwh': 'stop', 'uiActive': 7200, 'only_device': {'ota': 'success'}, 'hundredDaysKwh': 'get', 'endTime': '2020-12-20T19:04:15.583Z', 'startTime': '2020-12-20T19:03:56.536Z', 'sledonline': 'on', 'timeZone': 1} 2022-07-07 19:21:28 [D] 1000b3563e UIID 0011 | {'version': 8, 'sledOnline': 'off', 'rssi': -83, 'fwVersion': '3.4.3', 'switch': 'pause', 'setclose': 65, 'only_device': {'ota': 'success'}} 2022-07-07 19:21:28 [D] 1000b35772 UIID 0011 | {'version': 8, 'sledOnline': 'off', 'rssi': -85, 'fwVersion': '3.4.3', 'switch': 'pause', 'setclose': 64, 'only_device': {'ota': 'success'}} 2022-07-07 19:21:28 [D] 1000b3528f UIID 0011 | {'version': 8, 'sledOnline': 'off', 'rssi': -72, 'fwVersion': '3.4.3', 'switch': 'on', 'setclose': 0, 'only_device': {'ota': 'success'}} 2022-07-07 19:21:28 [D] Can't find key in zeroconf cache: ewelink_1001338ffd.local. 2022-07-07 19:21:28 [D] AUTO mode start 2022-07-07 19:21:28 [D] 10009ee4b8 <= Local3 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'on', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'on', 'power': 0, 'voltage': 237.67, 'current': 0} | 8172 2022-07-07 19:21:28 [D] 10007c7fe3 <= Local3 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'on', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'on', 'power': 0, 'voltage': 229.03, 'current': 0} | 12156 2022-07-07 19:21:28 [D] 100155644d <= Local3 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'on', 'power': 0, 'voltage': 230.85, 'current': 0} | 10060 2022-07-07 19:21:28 [D] 1001556433 <= Local3 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'on', 'power': 0, 'voltage': 231.11, 'current': 0} | 9028 2022-07-07 19:21:28 [D] 10010ee384 <= Local3 | {'switch': 'off', 'startup': 'off', 'pulse': 'off', 'sledOnline': 'on', 'fwVersion': '3.6.0', 'pulseWidth': 500, 'rssi': -72} | 446 2022-07-07 19:21:28 [D] 1000e5337e <= Local3 | {'switch': 'off', 'startup': 'off', 'pulse': 'off', 'sledOnline': 'off', 'fwVersion': '3.6.0', 'pulseWidth': 500, 'rssi': -90} | 62 2022-07-07 19:21:28 [D] 10010ea66b <= Local3 | {'switch': 'off', 'startup': 'off', 'pulse': 'off', 'sledOnline': 'on', 'fwVersion': '3.6.0', 'pulseWidth': 500, 'rssi': -58} | 95 2022-07-07 19:21:28 [D] 10012a4966 <= Local3 | {'mainSwitch': 'off', 'deviceType': 'normal', 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'on', 'sensorType': 'DS18B20', 'currentHumidity': 'unavailable', 'currentTemperature': '67.2'} | 1356 2022-07-07 19:21:28 [D] 10010f5fe1 <= Local3 | {'switch': 'off', 'startup': 'off', 'pulse': 'off', 'sledOnline': 'on', 'fwVersion': '3.6.0', 'pulseWidth': 500, 'rssi': -75} | 108 2022-07-07 19:21:28 [D] 10010fa583 <= Local3 | {'switch': 'off', 'startup': 'off', 'pulse': 'off', 'sledOnline': 'on', 'fwVersion': '3.6.0', 'pulseWidth': 500, 'rssi': -74} | 267 2022-07-07 19:21:28 [D] 10010f50bb <= Local3 | {'switch': 'off', 'startup': 'off', 'pulse': 'off', 'sledOnline': 'on', 'fwVersion': '3.6.0', 'pulseWidth': 500, 'rssi': -73} | 514 2022-07-07 19:21:28 [D] 10010ea1ca <= Local3 | {'switch': 'off', 'startup': 'off', 'pulse': 'off', 'sledOnline': 'on', 'fwVersion': '3.6.0', 'pulseWidth': 500, 'rssi': -83} | 98 2022-07-07 19:21:28 [D] 1000cfc6dc <= Local3 | {'switch': 'off', 'startup': 'off', 'pulse': 'on', 'sledOnline': 'off', 'pulseWidth': 500, 'rssi': -84} | 189 2022-07-07 19:21:28 [W] Cloud WS Connection error: Cannot connect to host eu-dispa.coolkit.cc:443 ssl:default [Name does not resolve] 2022-07-07 19:21:28 [D] CLOUD False => False 2022-07-07 19:21:28 [D] Cloud connection retrying in 15 seconds 2022-07-07 19:21:29 [D] 10009ee4b8 <= Local3 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'on', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'on', 'power': 0, 'voltage': 237.36, 'current': 0} | 8173 2022-07-07 19:21:33 [D] CLOUD False => False 2022-07-07 19:21:33 [D] 19 devices loaded from Cloud 2022-07-07 19:21:33 [D] 1001556433 UIID 0032 | {'version': 8, 'sledOnline': 'on', 'fwVersion': '3.5.0', 'rssi': -73, 'init': 1, 'alarmType': 'pcv', 'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'power': '0.00', 'voltage': '231.11', 'current': '0.00', 'oneKwh': 'stop', 'uiActive': 7200, 'timeZone': 1, 'hundredDaysKwh': 'get'} 2022-07-07 19:21:33 [D] 100155644d UIID 0032 | {'version': 8, 'sledOnline': 'on', 'fwVersion': '3.5.0', 'rssi': -56, 'init': 1, 'alarmType': 'pcv', 'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'power': '0.00', 'voltage': '230.85', 'current': '0.00', 'oneKwh': 'stop', 'uiActive': 7200, 'hundredDaysKwh': 'get', 'timeZone': 1} 2022-07-07 19:21:33 [D] 10012a4966 UIID 0015 | {'version': 8, 'sledOnline': 'on', 'init': 1, 'switch': 'off', 'fwVersion': '3.5.0', 'rssi': -62, 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sensorType': 'DS18B20', 'currentHumidity': 'unavailable', 'currentTemperature': '67.2', 'only_device': {'ota': 'success'}, 'mainSwitch': 'off', 'deviceType': 'normal'} 2022-07-07 19:21:33 [D] 10010f50bb UIID 0001 | {'version': 8, 'sledOnline': 'on', 'switch': 'off', 'fwVersion': '3.6.0', 'rssi': -73, 'startup': 'off', 'init': 1, 'pulse': 'off', 'pulseWidth': 500, 'swMode': 2, 'swCtrlReverse': 'off'} 2022-07-07 19:21:33 [D] 1001338ffd UIID 0126 | {'version': 7, 'workMode': 1, 'swMode_00': 1, 'swMode_01': 1, 'swReverse_00': 0, 'swReverse_01': 0, 'switches': [{'switch': 'off', 'outlet': 0}, {'switch': 'off', 'outlet': 1}], 'configure': [{'startup': 'off', 'outlet': 0}, {'startup': 'off', 'outlet': 1}], 'pulses': [{'pulse': 'off', 'width': 1000, 'outlet': 0}, {'pulse': 'off', 'width': 1000, 'outlet': 1}], 'motorSwMode': 2, 'motorSwReverse': 0, 'outputReverse': 0, 'motorTurn': 0, 'calibState': 0, 'currLocation': 0, 'location': 0, 'sledBright': 100, 'rssi': -64, 'overload_00': {'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}}, '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-11-02T16:42:45.328Z', 'endTime_00': '', 'oneKwhState_01': 0, 'startTime_01': '', 'endTime_01': '', 'oneKwhData_00': 349, 'oneKwhData_01': 0, 'current_00': 0, 'voltage_00': 23123, 'actPow_00': 0, 'reactPow_00': 0, 'apparentPow_00': 0, 'current_01': 0, 'voltage_01': 23123, 'actPow_01': 0, 'reactPow_01': 0, 'apparentPow_01': 0, 'fwVersion': '1.4.0', 'timeZone': 1, 'zyx_clear_timers': True, 'initSetting': 1, 'uiActive': {'all': 1, 'time': 7200}, 'only_device': {'ota': 'success', 'ota_fail_reason': 0}, 'getKwh_00': 2} 2022-07-07 19:21:33 [D] 10010f5fe1 UIID 0001 | {'version': 8, 'sledOnline': 'on', 'switch': 'off', 'fwVersion': '3.6.0', 'rssi': -75, 'startup': 'off', 'init': 1, 'pulse': 'off', 'pulseWidth': 500, 'swMode': 3, 'swCtrlReverse': 'off'} 2022-07-07 19:21:33 [D] 10010ea66b UIID 0001 | {'version': 8, 'sledOnline': 'on', 'switch': 'off', 'fwVersion': '3.6.0', 'rssi': -58, 'startup': 'off', 'init': 1, 'pulse': 'off', 'pulseWidth': 500, 'swMode': 3, 'swCtrlReverse': 'off'} 2022-07-07 19:21:33 [D] 10010ee384 UIID 0001 | {'version': 8, 'sledOnline': 'on', 'switch': 'off', 'fwVersion': '3.6.0', 'rssi': -72, 'startup': 'off', 'init': 1, 'pulse': 'off', 'pulseWidth': 500, 'swMode': 3, 'swCtrlReverse': 'off'} 2022-07-07 19:21:33 [D] 10010ea1ca UIID 0001 | {'version': 8, 'sledOnline': 'on', 'switch': 'off', 'fwVersion': '3.6.0', 'rssi': -83, 'startup': 'off', 'init': 1, 'pulse': 'off', 'pulseWidth': 500, 'swMode': 3, 'swCtrlReverse': 'off'} 2022-07-07 19:21:33 [D] 1000b3498d UIID 0011 | {'version': 8, 'sledOnline': 'off', 'rssi': -59, 'fwVersion': '3.4.3', 'switch': 'pause', 'setclose': 71, 'only_device': {'ota': 'success'}} 2022-07-07 19:21:33 [D] 10010fa583 UIID 0001 | {'version': 8, 'sledOnline': 'on', 'switch': 'off', 'fwVersion': '3.6.0', 'rssi': -74, 'startup': 'off', 'init': 1, 'pulse': 'off', 'pulseWidth': 500, 'swMode': 3, 'swCtrlReverse': 'off'} 2022-07-07 19:21:33 [D] a63000dce6 UIID 0065 | {'record': 0, 'direction': 1, 'microphone': 1, 'sharpness': 1, 'health': 3} 2022-07-07 19:21:33 [D] 1000cfc6dc UIID 0001 | {'version': 8, 'sledOnline': 'off', 'switch': 'off', 'fwVersion': '3.5.1', 'rssi': -84, 'startup': 'off', 'init': 1, 'pulse': 'on', 'pulseWidth': 500, 'only_device': {'ota': 'success'}} 2022-07-07 19:21:33 [D] 10009ee4b8 UIID 0032 | {'sledOnline': 'on', 'switch': 'off', 'power': '0.00', 'voltage': '237.36', 'current': '0.00', 'fwVersion': '3.5.0', 'rssi': -53, 'init': 1, 'alarmType': 'pcv', 'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'oneKwh': 'stop', 'timeZone': 1, 'version': 8, 'startup': 'on', 'pulse': 'off', 'pulseWidth': 500, 'uiActive': 7200, 'only_device': {'ota': 'success'}, 'hundredDaysKwh': 'get', 'sledonline': 'on', 'endTime': '', 'startTime': '2021-08-28T14:38:45.709Z', 'onKwh': 'start'} 2022-07-07 19:21:33 [D] 1000e5337e UIID 0001 | {'version': 8, 'sledOnline': 'off', 'switch': 'off', 'fwVersion': '3.6.0', 'rssi': -90, 'startup': 'off', 'init': 1, 'pulse': 'off', 'pulseWidth': 500, 'swMode': 3, 'swCtrlReverse': 'off'} 2022-07-07 19:21:33 [D] 10007c7fe3 UIID 0032 | {'version': 8, 'sledOnline': 'on', 'fwVersion': '3.5.0', 'rssi': -36, 'init': 1, 'alarmType': 'pcv', 'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'on', 'pulse': 'off', 'pulseWidth': 500, 'power': '0.00', 'voltage': '229.03', 'current': '0.00', 'oneKwh': 'stop', 'uiActive': 7200, 'only_device': {'ota': 'success'}, 'hundredDaysKwh': 'get', 'endTime': '2020-12-20T19:04:15.583Z', 'startTime': '2020-12-20T19:03:56.536Z', 'sledonline': 'on', 'timeZone': 1} 2022-07-07 19:21:33 [D] 1000b3563e UIID 0011 | {'version': 8, 'sledOnline': 'off', 'rssi': -83, 'fwVersion': '3.4.3', 'switch': 'pause', 'setclose': 65, 'only_device': {'ota': 'success'}} 2022-07-07 19:21:33 [D] 1000b35772 UIID 0011 | {'version': 8, 'sledOnline': 'off', 'rssi': -85, 'fwVersion': '3.4.3', 'switch': 'pause', 'setclose': 64, 'only_device': {'ota': 'success'}} 2022-07-07 19:21:33 [D] 1000b3528f UIID 0011 | {'version': 8, 'sledOnline': 'off', 'rssi': -72, 'fwVersion': '3.4.3', 'switch': 'on', 'setclose': 0, 'only_device': {'ota': 'success'}} 2022-07-07 19:21:33 [D] Can't find key in zeroconf cache: ewelink_1001338ffd.local. 2022-07-07 19:21:33 [D] AUTO mode start 2022-07-07 19:21:33 [D] 10009ee4b8 <= Local3 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'on', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'on', 'power': 0, 'voltage': 237.36, 'current': 0} | 8173 2022-07-07 19:21:33 [D] 10007c7fe3 <= Local3 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'on', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'on', 'power': 0, 'voltage': 229.03, 'current': 0} | 12156 2022-07-07 19:21:33 [D] 100155644d <= Local3 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'on', 'power': 0, 'voltage': 230.85, 'current': 0} | 10060 2022-07-07 19:21:33 [D] 1001556433 <= Local3 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'on', 'power': 0, 'voltage': 231.11, 'current': 0} | 9028 2022-07-07 19:21:33 [D] 10010ee384 <= Local3 | {'switch': 'off', 'startup': 'off', 'pulse': 'off', 'sledOnline': 'on', 'fwVersion': '3.6.0', 'pulseWidth': 500, 'rssi': -72} | 446 2022-07-07 19:21:33 [D] 1000e5337e <= Local3 | {'switch': 'off', 'startup': 'off', 'pulse': 'off', 'sledOnline': 'off', 'fwVersion': '3.6.0', 'pulseWidth': 500, 'rssi': -90} | 62 2022-07-07 19:21:33 [D] 10010ea66b <= Local3 | {'switch': 'off', 'startup': 'off', 'pulse': 'off', 'sledOnline': 'on', 'fwVersion': '3.6.0', 'pulseWidth': 500, 'rssi': -58} | 95 2022-07-07 19:21:33 [D] 10012a4966 <= Local3 | {'mainSwitch': 'off', 'deviceType': 'normal', 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'on', 'sensorType': 'DS18B20', 'currentHumidity': 'unavailable', 'currentTemperature': '67.2'} | 1356 2022-07-07 19:21:33 [D] 10010f5fe1 <= Local3 | {'switch': 'off', 'startup': 'off', 'pulse': 'off', 'sledOnline': 'on', 'fwVersion': '3.6.0', 'pulseWidth': 500, 'rssi': -75} | 108 2022-07-07 19:21:33 [D] 10010fa583 <= Local3 | {'switch': 'off', 'startup': 'off', 'pulse': 'off', 'sledOnline': 'on', 'fwVersion': '3.6.0', 'pulseWidth': 500, 'rssi': -74} | 267 2022-07-07 19:21:33 [D] 10010f50bb <= Local3 | {'switch': 'off', 'startup': 'off', 'pulse': 'off', 'sledOnline': 'on', 'fwVersion': '3.6.0', 'pulseWidth': 500, 'rssi': -73} | 514 2022-07-07 19:21:33 [D] 10010ea1ca <= Local3 | {'switch': 'off', 'startup': 'off', 'pulse': 'off', 'sledOnline': 'on', 'fwVersion': '3.6.0', 'pulseWidth': 500, 'rssi': -83} | 98 2022-07-07 19:21:33 [D] 1000cfc6dc <= Local3 | {'switch': 'off', 'startup': 'off', 'pulse': 'on', 'sledOnline': 'off', 'pulseWidth': 500, 'rssi': -84} | 189 2022-07-07 19:21:33 [W] Cloud WS Connection error: Cannot connect to host eu-dispa.coolkit.cc:443 ssl:default [Name does not resolve] 2022-07-07 19:21:33 [D] CLOUD False => False 2022-07-07 19:21:33 [D] Cloud connection retrying in 15 seconds 2022-07-07 19:21:44 [D] 10007c7fe3 <= Local3 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'on', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'on', 'power': 0, 'voltage': 227.95, 'current': 0} | 12157 2022-07-07 19:21:47 [D] 100155644d <= Local3 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'on', 'power': 0, 'voltage': 231.41, 'current': 0} | 10061 2022-07-07 19:21:48 [W] Cloud WS Connection error: Cannot connect to host eu-dispa.coolkit.cc:443 ssl:default [Name does not resolve] 2022-07-07 19:21:48 [D] CLOUD False => False 2022-07-07 19:21:48 [D] Cloud connection retrying in 60 seconds 2022-07-07 19:21:52 [D] 1001556433 <= Local3 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'on', 'power': 0, 'voltage': 230.58, 'current': 0} | 9029 2022-07-07 19:22:48 [W] Cloud WS Connection error: Cannot connect to host eu-dispa.coolkit.cc:443 ssl:default [Name does not resolve] 2022-07-07 19:22:48 [D] CLOUD False => False 2022-07-07 19:22:48 [D] Cloud connection retrying in 300 seconds

A quinta, 7/07/2022, 15:02, Cândido Sá @.***> escreveu:

Hi AlexIT. I just updated to the last version and it's working fine. Thank you a lot

A quinta, 7/07/2022, 14:06, prosymnus @.***> escreveu:

You need to attach a diagnosis of integration this is mine

{ "home_assistant": { "installation_type": "Home Assistant OS", "version": "2022.6.3", "dev": false, "hassio": true, "virtualenv": false, "python_version": "3.9.12", "docker": true, "arch": "armv7l", "timezone": "Asia/Kuala_Lumpur", "os_name": "Linux", "os_version": "5.15.32-v7", "supervisor": "2022.05.3", "host_os": "Home Assistant OS 8.1", "docker_version": "20.10.14", "chassis": "embedded", "run_as_root": true }, "custom_components": { "sonoff": { "version": "3.0.5", "requirements": [ "pycryptodome>=3.6.6" ] }, "hacs": { "version": "1.24.5", "requirements": [ "aiogithubapi>=21.11.0" ] } }, "integration_manifest": { "domain": "sonoff", "name": "Sonoff", "config_flow": true, "documentation": "https://github.com/AlexxIT/SonoffLAN", "issue_tracker": "https://github.com/AlexxIT/SonoffLAN/issues", "codeowners": [ @.*** https://github.com/AlexxIT" ], "dependencies": [ "http", "zeroconf" ], "requirements": [ "pycryptodome>=3.6.6" ], "version": "3.0.5", "iot_class": "local_push", "is_built_in": false }, "data": { "version": "200f243", "cloud_auth": true, "config": null, "options": { "mode": "cloud", "debug": false }, "errors": [ { "name": "custom_components.sonoff.core.ewelink.cloud", "message": [ "Cloud WS Connection error: Cannot connect to host as-pconnect3.coolkit.cc:8080 ssl:default [Try again]", "Cloud WS Connection error: Cannot connect to host as-pconnect1.coolkit.cc:8080 ssl:default [Try again]", "Cloud WS Connection error: Cannot connect to host as-pconnect5.coolkit.cc:8080 ssl:default [Try again]", "Cloud WS Connection error: Cannot connect to host as-dispa.coolkit.cc:443 ssl:default [Try again]", "Cloud WS Connection error: Cannot connect to host as-pconnect4.coolkit.cc:8080 ssl:default [Try again]" ], "level": "WARNING", "source": [ "custom_components/sonoff/core/ewelink/cloud.py", 321 ], "timestamp": 1655304668.7258217, "exception": "", "count": 16, "first_occurred": 1655273202.4389882 } ], "device": { "uiid": 2, "params": { "bindInfos": "

", "version": 8, "sledOnline": "on", "fwVersion": "3.5.1", "staMac": " ", "rssi": -55, "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": [ { "outlet": 0, "switch": "on" }, { "outlet": 1, "switch": "on" }, { "outlet": 0, "switch": "off" }, { "outlet": 1, "switch": "off" }, { "outlet": 0, "switch": "off" }, { "outlet": 1, "switch": "off" } ], "only_device": { "ota": "success" }, "ssid": " ", "bssid": "" }, "model": "M602-1", "online": true, "localtype": null, "deviceid": "10012caa7e" } } }

— Reply to this email directly, view it on GitHub https://github.com/AlexxIT/SonoffLAN/issues/867#issuecomment-1177583664, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASR3U5E77ECRIWB2HEFFZ2DVS3I4VANCNFSM5YE5K26A . You are receiving this because you commented.Message ID: @.***>

prosymnus commented 2 years ago

You need to attach a diagnosis of integration

{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2022.7.2",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.10.5",
    "docker": true,
    "arch": "armv7l",
    "timezone": "Asia/Kuala_Lumpur",
    "os_name": "Linux",
    "os_version": "5.15.32-v7",
    "supervisor": "2022.07.0",
    "host_os": "Home Assistant OS 8.2",
    "docker_version": "20.10.14",
    "chassis": "embedded",
    "run_as_root": true
  },
  "custom_components": {
    "sonoff": {
      "version": "3.1.0",
      "requirements": [
        "pycryptodome>=3.6.6"
      ]
    },
    "hacs": {
      "version": "1.25.5",
      "requirements": [
        "aiogithubapi>=22.2.4"
      ]
    }
  },
  "integration_manifest": {
    "domain": "sonoff",
    "name": "Sonoff",
    "config_flow": true,
    "documentation": "https://github.com/AlexxIT/SonoffLAN",
    "issue_tracker": "https://github.com/AlexxIT/SonoffLAN/issues",
    "codeowners": [
      "@AlexxIT"
    ],
    "dependencies": [
      "http",
      "zeroconf"
    ],
    "requirements": [
      "pycryptodome>=3.6.6"
    ],
    "version": "3.1.0",
    "iot_class": "local_push",
    "is_built_in": false
  },
  "data": {
    "version": "3871c0b",
    "cloud_auth": true,
    "config": null,
    "options": {
      "mode": "auto",
      "debug": true
    },
    "errors": [
      {
        "name": "custom_components.sonoff.core.ewelink.cloud",
        "message": [
          "Cloud WS Connection error: Cannot connect to host as-dispa.coolkit.cc:443 ssl:default [Try again]",
          "Cloud WS Connection error: Cannot connect to host as-pconnect2.coolkit.cc:8080 ssl:default [Try again]",
          "Cloud WS Connection error: Cannot connect to host as-pconnect5.coolkit.cc:8080 ssl:default [Try again]"
        ],
        "level": "WARNING",
        "source": [
          "custom_components/sonoff/core/ewelink/cloud.py",
          323
        ],
        "timestamp": 1657717847.8597462,
        "exception": "",
        "count": 98,
        "first_occurred": 1657381286.010227
      }
    ],
    "devices": {
      "10012caa7e": {
        "uiid": 2,
        "params": {
          "bindInfos": "***",
          "version": 8,
          "sledOnline": "on",
          "fwVersion": "3.5.1",
          "staMac": "***",
          "rssi": -55,
          "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": [
            {
              "outlet": 0,
              "switch": "off"
            },
            {
              "outlet": 1,
              "switch": "off"
            },
            {
              "outlet": 0,
              "switch": "off"
            },
            {
              "outlet": 1,
              "switch": "off"
            },
            {
              "outlet": 0,
              "switch": "off"
            },
            {
              "outlet": 1,
              "switch": "off"
            }
          ],
          "only_device": {
            "ota": "success"
          },
          "ssid": "***",
          "bssid": "***",
          "timers": "***"
        },
        "model": "M602-1",
        "online": true,
        "localtype": "strip"
      },
      "10012ca919": {
        "uiid": 2,
        "params": {
          "bindInfos": "***",
          "version": 8,
          "sledOnline": "on",
          "fwVersion": "3.5.1",
          "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": [
            {
              "outlet": 0,
              "switch": "off"
            },
            {
              "outlet": 1,
              "switch": "off"
            },
            {
              "outlet": 2,
              "switch": "off"
            },
            {
              "outlet": 3,
              "switch": "off"
            }
          ],
          "only_device": {
            "ota": "success"
          },
          "ssid": "***",
          "bssid": "***"
        },
        "model": "M602-1",
        "online": true,
        "localtype": "strip"
      },
      "1000a45137": {
        "uiid": 1,
        "params": {
          "bindInfos": "***",
          "version": 8,
          "sledOnline": "on",
          "switch": "off",
          "fwVersion": "3.6.0",
          "rssi": -57,
          "staMac": "***",
          "startup": "off",
          "init": 1,
          "pulse": "off",
          "pulseWidth": 500,
          "swMode": 2,
          "swCtrlReverse": "off"
        },
        "model": "MINI",
        "online": true,
        "localtype": "plug"
      },
      "a64000201a": {
        "uiid": 87,
        "params": {
          "partnerDevice": {
            "ezVedioSerial": "EWLK-054976-FTNPV",
            "partnerInfo": [
              {
                "thirdPartyDeviceId": "EWLK-054976-FTNPV",
                "chipid": "EWLK-054976-FTNPV5A:XXXXXXXXXXXX",
                "model": "GK-200MP2B",
                "vendor": "GK-200MP2B",
                "thirdPartyName": "eWeLink camera",
                "addType": 1
              }
            ],
            "p2pPasswd": "xxxxxxxxxxx"
          },
          "version": 7,
          "romVersion": "24520191030",
          "timeZone": 8
        },
        "model": "GK-200MP2B",
        "online": true,
        "localtype": null
      },
      "1000573738": {
        "uiid": 7,
        "params": {
          "timers": "***",
          "init": 1,
          "rssi": -65,
          "staMac": "***",
          "pulseWidth": 0,
          "switches": [
            {
              "switch": "off",
              "outlet": 0
            },
            {
              "switch": "off",
              "outlet": 1
            },
            {
              "switch": "off",
              "outlet": 2
            },
            {
              "switch": "off",
              "outlet": 3
            }
          ],
          "pulse": "off",
          "fwVersion": "3.5.1",
          "configure": [
            {
              "startup": "off",
              "outlet": 0
            },
            {
              "startup": "off",
              "outlet": 1
            },
            {
              "startup": "off",
              "outlet": 2
            },
            {
              "startup": "off",
              "outlet": 3
            }
          ],
          "version": 8,
          "sledOnline": "on",
          "lock": 0,
          "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
            }
          ],
          "bindInfos": "***",
          "only_device": {
            "ota": "success"
          },
          "ssid": "***",
          "bssid": "***"
        },
        "model": "T1 2C",
        "online": true,
        "localtype": "strip"
      },
      "10006f0d37": {
        "uiid": 28,
        "params": {
          "rfTrig1": "2022-07-09T15:28:36.000Z",
          "setState": "arm",
          "staMac": "***",
          "version": 8,
          "rfTrig0": "2022-07-09T11:59:56.000Z",
          "rfList": [
            {
              "rfChl": 0,
              "rfVal": "xxxxxx"
            },
            {
              "rfChl": 1,
              "rfVal": "xxxxxxx"
            }
          ],
          "rfChl": 1,
          "cmd": "trigger",
          "sledOnline": "on",
          "rssi": -17,
          "fwVersion": "3.5.0",
          "init": 1,
          "bindInfos": "***",
          "only_device": {
            "ota": "success"
          },
          "ssid": "***",
          "bssid": "***"
        },
        "model": "RF_Bridge",
        "online": true,
        "localtype": "rf"
      }
    }
  }
}

using latest update, much better but still the switch did not sync and intermittent unavailable.

BigWalnutZ commented 2 years ago

I still cannot get updates from my Sonoff S31 without opening the app. This like others have said came in in the last month or so after an update to HomeAssistant or something. I have tried some of the items others mentioned to no avail. I have the following in my configuration.yaml file from older versions:

# eWeLink/Sonoff integration - AlexIT (HACS)
# https://github.com/AlexxIT/SonoffLAN
sonoff:
  username: !secret sonoff_username
  password: !secret sonoff_password
  mode: local
  sensors: [temperature, humidity, power, current, voltage]
  force_update: [temperature, humidity, power, current, voltage]
  scan_interval: "00:01:00" # (optional) default 5 minutes
  reload: always # update device list every time HA starts
  #sensors: [temperature, humidity, sw_version, cloud, rssi, local, unit_of_measurement ]

I see the integration now has a Configure button which allows me to change the mode. Not sure that that has any effect since I have the yaml entered. Do they conflict? Should I be using one and not the other? Any tweaks to this config that would resolve my issue?

I have logged out of eWeLink app and back in, loaded latest 3.1.0, reloaded/re-downloaded it, etc. This worked so great for triggering things for a long time but has been the bane of my existence for a while now. If you need the debug thing, I have to figure out how to do that. Saw directions in readme i think.

AlexxIT commented 2 years ago

No response from author, so closing issue.