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.74k stars 416 forks source link

SPM power only updates when lookin at power on ewelink app #1200

Closed arieltl closed 9 months ago

arieltl commented 1 year ago

sonoff SPM power,current and voltage only updates when lookin at power on ewelink app. It sometimess also update radomly updates by itself. Theres nothing in home assistant logs and in the integration debug logs it simply rarely shows messages with the voltage, current and power unless the app is open.

akslow commented 1 year ago

have the same from about one week

FrancescoTalotta commented 1 year ago

I'm having the same issue with OpenHAB

rperfetti commented 1 year ago

Same issue here. Big problem because I use the power in several automations to recognize when overnight device charging is complete and turn off power to each device. The automation powers on charging device on at 11PM (cheapest electricity), reads zero power, assumes full charge and turns power off.

JDJuergenD commented 1 year ago

i have same with PowR2 after update 3.0

MrPrisoner commented 1 year ago

I'm also seeing this with POWR2 and POWR3 switches. Voltage, Current, Power only updates when switching it on and off via HA, or while having the ewelink app open. Integration configured as Auto with account credentials. Reinstalled latest version, all devices have latest firmware.

My POW Origin (316) doesn't have this issue. In debug logs I see frequent updates from both cloud and local for this switch. The POWR2/3 devices only have cloud updates, local updates only happen when toggling the switch. Turn it on, power is 0, turn it off, power is what it was before it turned off. Turn on again, power is 0.

UPDATE: seems like the ewelink app interferes somehow. After checking logs and restarting HA a couple of times all values update correctly now, every couple of seconds there is a local update in debug logs. If I then open the ewelink app it still works, but when I close the ewelink app it stops updating on HA. Leave it a while (10 mins), restart HA, then local updates work fine again.

TL;DR: don't open ewelink app :)

kingwap99 commented 1 year ago

yes, got the same issue on s31 I think ewelink is doing the same things just like what TUYA did. In the end, it seems flashing Tasmota is the only solution

AlexxIT commented 1 year ago

I need device diagnostics and component debug logs.

kingwap99 commented 1 year ago

the logs below with app opened at the same time

{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2023.7.3",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.11.4",
    "docker": true,
    "arch": "aarch64",
    "timezone": "Asia/Taipei",
    "os_name": "Linux",
    "os_version": "6.1.34",
    "supervisor": "2023.07.1",
    "host_os": "Home Assistant OS 10.3",
    "docker_version": "23.0.6",
    "chassis": "embedded",
    "run_as_root": true
  },
  "custom_components": {
    "notify_line": {
      "version": "2022.7.1",
      "requirements": []
    },
    "zhimi": {
      "version": "1.0.1",
      "requirements": [
        "miservice>=2.0.1"
      ]
    },
    "line_notify": {
      "version": "1.0.1",
      "requirements": []
    },
    "dohome": {
      "version": "0.2.0",
      "requirements": []
    },
    "sonoff": {
      "version": "3.5.2",
      "requirements": [
        "pycryptodome>=3.6.6"
      ]
    },
    "yeelight_pro": {
      "version": "0.0.1",
      "requirements": []
    },
    "webrtc": {
      "version": "v3.2.1",
      "requirements": []
    },
    "xiaomi_miio_cooker": {
      "version": "2023.6.0.0",
      "requirements": [
        "construct==2.10.56",
        "python-miio>=0.5.12"
      ]
    },
    "hello_miai": {
      "version": "1.0.0",
      "requirements": []
    },
    "yeelight_bt": {
      "version": "1.3.0",
      "requirements": [
        "bleak>=0.18.0",
        "bleak-retry-connector>=2.1.3"
      ]
    },
    "xiaomi_miot": {
      "version": "0.7.10",
      "requirements": [
        "construct==2.10.56",
        "python-miio>=0.5.6",
        "micloud>=0.3"
      ]
    },
    "frigate": {
      "version": "4.0.0",
      "requirements": [
        "pytz==2022.7"
      ]
    },
    "xiaomi_gateway3": {
      "version": "3.3.2",
      "requirements": [
        "zigpy>=0.44.1"
      ]
    },
    "nodered": {
      "version": "2.1.0",
      "requirements": []
    },
    "hacs": {
      "version": "1.32.1",
      "requirements": [
        "aiogithubapi>=22.10.1"
      ]
    },
    "tapo_control": {
      "version": "5.1.0",
      "requirements": [
        "pytapo==3.1.12"
      ]
    },
    "aqara_gateway": {
      "version": "0.0.14",
      "requirements": [
        "paho-mqtt>=1.5.0"
      ]
    },
    "xiaomi_cloud_map_extractor": {
      "version": "v2.2.0",
      "requirements": [
        "pillow",
        "pybase64",
        "python-miio",
        "requests",
        "pycryptodome"
      ]
    },
    "xiaomi_miio_fan": {
      "version": "2023.7.0.0",
      "requirements": [
        "construct==2.10.56",
        "python-miio>=0.5.12"
      ]
    },
    "var": {
      "version": "0.15.0",
      "requirements": []
    },
    "xiaomi_miio_raw": {
      "version": "2023.6.0.0",
      "requirements": [
        "construct==2.10.56",
        "python-miio>=0.5.12"
      ]
    }
  },
  "integration_manifest": {
    "domain": "sonoff",
    "name": "Sonoff",
    "config_flow": true,
    "documentation": "https://github.com/AlexxIT/SonoffLAN",
    "issue_tracker": "/api/sonoff/14715824-cb4b-464b-885c-3ff7629b3d91",
    "codeowners": [
      "@AlexxIT"
    ],
    "dependencies": [
      "http",
      "zeroconf"
    ],
    "requirements": [
      "pycryptodome>=3.6.6"
    ],
    "version": "3.5.2",
    "iot_class": "local_push",
    "is_built_in": false
  },
  "data": {
    "version": "2ad1cd7",
    "cloud_auth": false,
    "config": {
      "username": "***",
      "password": "***",
      "force_update": [
        "temperature",
        "humidity",
        "power",
        "switch",
        "remote"
      ],
      "scan_interval": "00:00:10",
      "debug": false
    },
    "options": {
      "mode": "auto",
      "debug": true
    },
    "errors": [],
    "device": {
      "uiid": 32,
      "params": {
        "bindInfos": "***",
        "version": 8,
        "only_device": {
          "ota": "success"
        },
        "sledOnline": "on",
        "ssid": "***",
        "bssid": "***",
        "fwVersion": "3.6.0",
        "staMac": "***",
        "rssi": -28,
        "init": 1,
        "alarmType": "pcv",
        "alarmVValue": [
          -1,
          -1
        ],
        "alarmCValue": [
          -1,
          -1
        ],
        "alarmPValue": [
          -1,
          -1
        ],
        "switch": "on",
        "startup": "on",
        "pulse": "off",
        "pulseWidth": 500,
        "power": "10.37",
        "voltage": "111.16",
        "current": "0.17",
        "oneKwh": "stop",
        "uiActive": 60,
        "timeZone": 8,
        "hundredDaysKwh": "get",
        "demNextFetchTime": 1690473600000,
        "rstReason": 0,
        "exccause": 0,
        "epc1": 0,
        "epc2": 0,
        "epc3": 0,
        "excvaddr": 0,
        "depc": 0
      },
      "model": "S31TPB(US)",
      "online": true,
      "local": true,
      "localtype": "enhanced_plug",
      "host": "192.168.31.177:8081",
      "deviceid": "10016f32ee"
    }
  }
}
kingwap99 commented 1 year ago

this logs below come with app closed thanks a lot

{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2023.7.3",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.11.4",
    "docker": true,
    "arch": "aarch64",
    "timezone": "Asia/Taipei",
    "os_name": "Linux",
    "os_version": "6.1.34",
    "supervisor": "2023.07.1",
    "host_os": "Home Assistant OS 10.3",
    "docker_version": "23.0.6",
    "chassis": "embedded",
    "run_as_root": true
  },
  "custom_components": {
    "notify_line": {
      "version": "2022.7.1",
      "requirements": []
    },
    "zhimi": {
      "version": "1.0.1",
      "requirements": [
        "miservice>=2.0.1"
      ]
    },
    "line_notify": {
      "version": "1.0.1",
      "requirements": []
    },
    "dohome": {
      "version": "0.2.0",
      "requirements": []
    },
    "sonoff": {
      "version": "3.5.2",
      "requirements": [
        "pycryptodome>=3.6.6"
      ]
    },
    "yeelight_pro": {
      "version": "0.0.1",
      "requirements": []
    },
    "webrtc": {
      "version": "v3.2.1",
      "requirements": []
    },
    "xiaomi_miio_cooker": {
      "version": "2023.6.0.0",
      "requirements": [
        "construct==2.10.56",
        "python-miio>=0.5.12"
      ]
    },
    "hello_miai": {
      "version": "1.0.0",
      "requirements": []
    },
    "yeelight_bt": {
      "version": "1.3.0",
      "requirements": [
        "bleak>=0.18.0",
        "bleak-retry-connector>=2.1.3"
      ]
    },
    "xiaomi_miot": {
      "version": "0.7.10",
      "requirements": [
        "construct==2.10.56",
        "python-miio>=0.5.6",
        "micloud>=0.3"
      ]
    },
    "frigate": {
      "version": "4.0.0",
      "requirements": [
        "pytz==2022.7"
      ]
    },
    "xiaomi_gateway3": {
      "version": "3.3.2",
      "requirements": [
        "zigpy>=0.44.1"
      ]
    },
    "nodered": {
      "version": "2.1.0",
      "requirements": []
    },
    "hacs": {
      "version": "1.32.1",
      "requirements": [
        "aiogithubapi>=22.10.1"
      ]
    },
    "tapo_control": {
      "version": "5.1.0",
      "requirements": [
        "pytapo==3.1.12"
      ]
    },
    "aqara_gateway": {
      "version": "0.0.14",
      "requirements": [
        "paho-mqtt>=1.5.0"
      ]
    },
    "xiaomi_cloud_map_extractor": {
      "version": "v2.2.0",
      "requirements": [
        "pillow",
        "pybase64",
        "python-miio",
        "requests",
        "pycryptodome"
      ]
    },
    "xiaomi_miio_fan": {
      "version": "2023.7.0.0",
      "requirements": [
        "construct==2.10.56",
        "python-miio>=0.5.12"
      ]
    },
    "var": {
      "version": "0.15.0",
      "requirements": []
    },
    "xiaomi_miio_raw": {
      "version": "2023.6.0.0",
      "requirements": [
        "construct==2.10.56",
        "python-miio>=0.5.12"
      ]
    }
  },
  "integration_manifest": {
    "domain": "sonoff",
    "name": "Sonoff",
    "config_flow": true,
    "documentation": "https://github.com/AlexxIT/SonoffLAN",
    "issue_tracker": "/api/sonoff/14715824-cb4b-464b-885c-3ff7629b3d91",
    "codeowners": [
      "@AlexxIT"
    ],
    "dependencies": [
      "http",
      "zeroconf"
    ],
    "requirements": [
      "pycryptodome>=3.6.6"
    ],
    "version": "3.5.2",
    "iot_class": "local_push",
    "is_built_in": false
  },
  "data": {
    "version": "2ad1cd7",
    "cloud_auth": false,
    "config": {
      "username": "***",
      "password": "***",
      "force_update": [
        "temperature",
        "humidity",
        "power",
        "switch",
        "remote"
      ],
      "scan_interval": "00:00:10",
      "debug": false
    },
    "options": {
      "mode": "auto",
      "debug": true
    },
    "errors": [],
    "device": {
      "uiid": 32,
      "params": {
        "bindInfos": "***",
        "version": 8,
        "only_device": {
          "ota": "success"
        },
        "sledOnline": "on",
        "ssid": "***",
        "bssid": "***",
        "fwVersion": "3.6.0",
        "staMac": "***",
        "rssi": -28,
        "init": 1,
        "alarmType": "pcv",
        "alarmVValue": [
          -1,
          -1
        ],
        "alarmCValue": [
          -1,
          -1
        ],
        "alarmPValue": [
          -1,
          -1
        ],
        "switch": "on",
        "startup": "on",
        "pulse": "off",
        "pulseWidth": 500,
        "power": "10.37",
        "voltage": "111.16",
        "current": "0.17",
        "oneKwh": "stop",
        "uiActive": 60,
        "timeZone": 8,
        "hundredDaysKwh": "get",
        "demNextFetchTime": 1690473600000,
        "rstReason": 0,
        "exccause": 0,
        "epc1": 0,
        "epc2": 0,
        "epc3": 0,
        "excvaddr": 0,
        "depc": 0
      },
      "model": "S31TPB(US)",
      "online": true,
      "local": true,
      "localtype": "enhanced_plug",
      "host": "192.168.31.177:8081",
      "deviceid": "10016f32ee"
    }
  }
}
JDJuergenD commented 1 year ago

Config:

{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2023.7.3",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.11.4",
    "docker": true,
    "arch": "aarch64",
    "timezone": "Europe/Berlin",
    "os_name": "Linux",
    "os_version": "6.1.21-v8",
    "supervisor": "2023.07.1",
    "host_os": "Home Assistant OS 10.3",
    "docker_version": "23.0.6",
    "chassis": "embedded",
    "run_as_root": true
  },
  "custom_components": {
    "tuya_local": {
      "version": "2023.7.0",
      "requirements": [
        "pycryptodome~=3.18",
        "tinytuya==1.12.9"
      ]
    },
    "rpi_gpio": {
      "version": "2022.7.0",
      "requirements": [
        "RPi.GPIO==0.7.1"
      ]
    },
    "hacs": {
      "version": "1.32.1",
      "requirements": [
        "aiogithubapi>=22.10.1"
      ]
    },
    "localtuya": {
      "version": "5.2.1",
      "requirements": []
    },
    "omnik_inverter": {
      "version": "2.5.3",
      "requirements": [
        "omnikinverter==0.9.0"
      ]
    },
    "sonoff": {
      "version": "3.5.2",
      "requirements": [
        "pycryptodome>=3.6.6"
      ]
    },
    "better_thermostat": {
      "version": "1.2.2",
      "requirements": []
    }
  },
  "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.5.2",
    "iot_class": "local_push",
    "is_built_in": false
  },
  "data": {
    "version": "2ad1cd7",
    "cloud_auth": false,
    "config": {
      "username": "***",
      "password": "***",
      "reload": "always",
      "force_update": [
        "temperature",
        "power"
      ],
      "scan_interval": "00:01:00"
    },
    "options": {
      "mode": "auto",
      "debug": false
    },
    "errors": [],
    "devices": {
      "10013bf803": {
        "uiid": 32,
        "params": {
          "bindInfos": "***",
          "version": 8,
          "only_device": {
            "ota": "success"
          },
          "sledOnline": "off",
          "ssid": "***",
          "bssid": "***",
          "fwVersion": "3.5.0",
          "staMac": "***",
          "rssi": -47,
          "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": "234.11",
          "current": "0.00",
          "oneKwh": "stop",
          "timeZone": 1,
          "uiActive": 60,
          "hundredDaysKwh": "get",
          "demNextFetchTime": 1688684400000
        },
        "model": "POWR2",
        "online": true,
        "local": true,
        "localtype": "enhanced_plug",
        "host": "192.168.0.53:8081"
      },
      "10013be562": {
        "uiid": 32,
        "params": {
          "bindInfos": "***",
          "version": 8,
          "only_device": {
            "ota": "success"
          },
          "sledOnline": "off",
          "ssid": "***",
          "bssid": "***",
          "fwVersion": "3.5.0",
          "staMac": "***",
          "rssi": -50,
          "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": "234.22",
          "current": "0.00",
          "oneKwh": "stop",
          "uiActive": 60,
          "timeZone": 1,
          "hundredDaysKwh": "get",
          "demNextFetchTime": 1688684400000
        },
        "model": "POWR2",
        "online": true,
        "local": true,
        "localtype": "enhanced_plug",
        "host": "192.168.0.48:8081"
      },
      "100123aed1": {
        "uiid": 32,
        "params": {
          "bindInfos": "***",
          "version": 8,
          "only_device": {
            "ota": "success"
          },
          "sledOnline": "off",
          "ssid": "***",
          "bssid": "***",
          "fwVersion": "3.5.0",
          "staMac": "***",
          "rssi": -54,
          "init": 1,
          "alarmType": "pcv",
          "alarmVValue": [
            -1,
            -1
          ],
          "alarmCValue": [
            -1,
            -1
          ],
          "alarmPValue": [
            -1,
            -1
          ],
          "switch": "on",
          "startup": "on",
          "pulse": "off",
          "pulseWidth": 500,
          "power": "389.29",
          "voltage": "235.07",
          "current": "1.66",
          "oneKwh": "start",
          "uiActive": 60,
          "timeZone": 1,
          "hundredDaysKwh": "get",
          "endTime": "",
          "startTime": "2022-03-09T15:17:01.986Z",
          "onKwh": "stop",
          "password": "jIRBBS4gFOp+E1Ug3hk0cg==",
          "demNextFetchTime": 1688684400000
        },
        "model": "POWR2",
        "online": true,
        "local": true,
        "localtype": "enhanced_plug",
        "host": "192.168.0.114:8081"
      },
      "10004766ed": {
        "uiid": 1,
        "params": {
          "bindInfos": "***",
          "version": 8,
          "sledOnline": "on",
          "ssid": "***",
          "bssid": "***",
          "switch": "off",
          "fwVersion": "3.7.3",
          "rssi": -73,
          "staMac": "***",
          "startup": "off",
          "init": 1,
          "pulse": "off",
          "pulseWidth": 500,
          "only_device": {
            "ota": "success"
          },
          "timers": "***"
        },
        "model": "S20",
        "online": true,
        "local": true,
        "localtype": "plug",
        "host": "192.168.0.76:8081"
      },
      "10010bb322": {
        "uiid": 15,
        "params": {
          "bindInfos": "***",
          "version": 8,
          "sledOnline": "off",
          "init": 1,
          "switch": "off",
          "fwVersion": "3.5.0",
          "rssi": -47,
          "staMac": "***",
          "startup": "off",
          "pulse": "off",
          "pulseWidth": 500,
          "deviceType": "normal",
          "mainSwitch": "off",
          "sensorType": "AM2301",
          "currentHumidity": "58",
          "currentTemperature": "20.7",
          "only_device": {
            "ota": "success"
          },
          "ssid": "***",
          "bssid": "***",
          "targets": [
            {
              "targetHigh": "45.0",
              "reaction": {
                "switch": "off"
              }
            },
            {
              "targetLow": "45.0",
              "reaction": {
                "switch": "on"
              }
            }
          ],
          "timeZone": 1
        },
        "model": "TH16R2",
        "online": true,
        "local": true,
        "localtype": "th_plug",
        "host": "192.168.0.97:8081"
      },
      "100075db52": {
        "uiid": 1,
        "params": {
          "switch": "on",
          "fwVersion": "3.5.1",
          "startup": "on",
          "staMac": "***",
          "rssi": -56,
          "sledOnline": "on",
          "init": 1,
          "pulse": "off",
          "pulseWidth": 500,
          "version": 8,
          "only_device": {
            "ota": "success"
          },
          "ssid": "***",
          "bssid": "***"
        },
        "model": "Basic2",
        "online": true,
        "local": true,
        "localtype": "plug",
        "host": "192.168.0.47:8081"
      },
      "100076f2ea": {
        "uiid": 1,
        "params": {
          "switch": "on",
          "fwVersion": "3.5.1",
          "startup": "on",
          "staMac": "***",
          "rssi": -58,
          "sledOnline": "on",
          "init": 1,
          "pulse": "off",
          "pulseWidth": 5000,
          "version": 8,
          "only_device": {
            "ota": "success"
          },
          "ssid": "***",
          "bssid": "***"
        },
        "model": "Basic2",
        "online": true,
        "local": true,
        "localtype": "plug",
        "host": "192.168.0.77:8081"
      },
      "100075aac1": {
        "uiid": 1,
        "params": {
          "timers": "***",
          "version": 8,
          "pulseWidth": 500,
          "pulse": "off",
          "init": 1,
          "sledOnline": "on",
          "rssi": -40,
          "staMac": "***",
          "startup": "on",
          "fwVersion": "3.5.1",
          "switch": "off",
          "only_device": {
            "ota": "success"
          },
          "ssid": "***",
          "bssid": "***",
          "bindInfos": "***"
        },
        "model": "Basic2",
        "online": true,
        "local": true,
        "localtype": "plug",
        "host": "192.168.0.94:8081"
      },
      "100066bcab": {
        "uiid": 15,
        "params": {
          "currentHumidity": "unavailable",
          "currentTemperature": "unavailable",
          "sensorType": "ERROR_TYPE",
          "init": 1,
          "rssi": -44,
          "staMac": "***",
          "startup": "on",
          "fwVersion": "3.5.0",
          "switch": "off",
          "mainSwitch": "off",
          "deviceType": "normal",
          "targets": [
            {
              "targetHigh": "18.0",
              "reaction": {
                "switch": "on"
              }
            },
            {
              "targetLow": "17.0",
              "reaction": {
                "switch": "off"
              }
            }
          ],
          "timers": "***",
          "version": 8,
          "sledOnline": "on",
          "pulse": "off",
          "pulseWidth": 2000,
          "bindInfos": "***",
          "only_device": {
            "ota": "success"
          },
          "ssid": "***",
          "bssid": "***",
          "password": "RmnOKoxNYMiEVUqTX82AXA==",
          "timeZone": 1
        },
        "model": "TH16",
        "online": true,
        "local": true,
        "localtype": "th_plug",
        "host": "192.168.0.49:8081"
      }
    }
  }
}

debug:

{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2023.7.3",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.11.4",
    "docker": true,
    "arch": "aarch64",
    "timezone": "Europe/Berlin",
    "os_name": "Linux",
    "os_version": "6.1.21-v8",
    "supervisor": "2023.07.1",
    "host_os": "Home Assistant OS 10.3",
    "docker_version": "23.0.6",
    "chassis": "embedded",
    "run_as_root": true
  },
  "custom_components": {
    "tuya_local": {
      "version": "2023.7.0",
      "requirements": [
        "pycryptodome~=3.18",
        "tinytuya==1.12.9"
      ]
    },
    "rpi_gpio": {
      "version": "2022.7.0",
      "requirements": [
        "RPi.GPIO==0.7.1"
      ]
    },
    "hacs": {
      "version": "1.32.1",
      "requirements": [
        "aiogithubapi>=22.10.1"
      ]
    },
    "localtuya": {
      "version": "5.2.1",
      "requirements": []
    },
    "omnik_inverter": {
      "version": "2.5.3",
      "requirements": [
        "omnikinverter==0.9.0"
      ]
    },
    "sonoff": {
      "version": "3.5.2",
      "requirements": [
        "pycryptodome>=3.6.6"
      ]
    },
    "better_thermostat": {
      "version": "1.2.2",
      "requirements": []
    }
  },
  "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.5.2",
    "iot_class": "local_push",
    "is_built_in": false
  },
  "data": {
    "version": "2ad1cd7",
    "cloud_auth": false,
    "config": {
      "username": "***",
      "password": "***",
      "reload": "always",
      "force_update": [
        "temperature",
        "power"
      ],
      "scan_interval": "00:01:00"
    },
    "options": {
      "mode": "auto",
      "debug": false
    },
    "errors": [],
    "device": {
      "uiid": 32,
      "params": {
        "bindInfos": "***",
        "version": 8,
        "only_device": {
          "ota": "success"
        },
        "sledOnline": "off",
        "ssid": "***",
        "bssid": "***",
        "fwVersion": "3.5.0",
        "staMac": "***",
        "rssi": -54,
        "init": 1,
        "alarmType": "pcv",
        "alarmVValue": [
          -1,
          -1
        ],
        "alarmCValue": [
          -1,
          -1
        ],
        "alarmPValue": [
          -1,
          -1
        ],
        "switch": "on",
        "startup": "on",
        "pulse": "off",
        "pulseWidth": 500,
        "power": "389.29",
        "voltage": "235.07",
        "current": "1.66",
        "oneKwh": "start",
        "uiActive": 60,
        "timeZone": 1,
        "hundredDaysKwh": "get",
        "endTime": "",
        "startTime": "2022-03-09T15:17:01.986Z",
        "onKwh": "stop",
        "password": "jIRBBS4gFOp+E1Ug3hk0cg==",
        "demNextFetchTime": 1688684400000
      },
      "model": "POWR2",
      "online": true,
      "local": true,
      "localtype": "enhanced_plug",
      "host": "192.168.0.114:8081",
      "deviceid": "100123aed1"
    }
  }
}
JDJuergenD commented 1 year ago

debug log:

2023-07-30 15:48:10 [D] 100066bcab <= Local3 | 192.168.0.49:8081 | {'mainSwitch': 'off', 'deviceType': 'normal', 'switch': 'off', 'startup': 'on', 'pulse': 'off', 'pulseWidth': 2000, 'sledOnline': 'on', 'sensorType': 'ERROR_TYPE', 'currentHumidity': 'unavailable', 'currentTemperature': 'unavailable'} | 169
2023-07-30 15:48:47 [D] CLOUD None => None
2023-07-30 15:48:47 [D] 9 devices loaded from Cache
2023-07-30 15:48:47 [D] 10013bf803 UIID 0032 | {'version': 8, 'only_device': {'ota': 'success'}, 'sledOnline': 'off', 'fwVersion': '3.5.0', 'rssi': -47, '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': '234.11', 'current': '0.00', 'oneKwh': 'stop', 'timeZone': 1, 'uiActive': 60, 'hundredDaysKwh': 'get', 'demNextFetchTime': 1688684400000}
2023-07-30 15:48:47 [D] 10013be562 UIID 0032 | {'version': 8, 'only_device': {'ota': 'success'}, 'sledOnline': 'off', 'fwVersion': '3.5.0', 'rssi': -50, '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': '234.22', 'current': '0.00', 'oneKwh': 'stop', 'uiActive': 60, 'timeZone': 1, 'hundredDaysKwh': 'get', 'demNextFetchTime': 1688684400000}
2023-07-30 15:48:47 [D] 100123aed1 UIID 0032 | {'version': 8, 'only_device': {'ota': 'success'}, 'sledOnline': 'off', 'fwVersion': '3.5.0', 'rssi': -54, 'init': 1, 'alarmType': 'pcv', 'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'on', 'pulse': 'off', 'pulseWidth': 500, 'power': '389.29', 'voltage': '235.07', 'current': '1.66', 'oneKwh': 'start', 'uiActive': 60, 'timeZone': 1, 'hundredDaysKwh': 'get', 'endTime': '', 'startTime': '2022-03-09T15:17:01.986Z', 'onKwh': 'stop', 'password': 'jIRBBS4gFOp+E1Ug3hk0cg==', 'demNextFetchTime': 1688684400000}
2023-07-30 15:48:47 [D] 10004766ed UIID 0001 | {'version': 8, 'sledOnline': 'on', 'switch': 'off', 'fwVersion': '3.7.3', 'rssi': -73, 'startup': 'off', 'init': 1, 'pulse': 'off', 'pulseWidth': 500, 'only_device': {'ota': 'success'}}
2023-07-30 15:48:47 [D] 10010bb322 UIID 0015 | {'version': 8, 'sledOnline': 'off', 'init': 1, 'switch': 'off', 'fwVersion': '3.5.0', 'rssi': -47, 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'deviceType': 'normal', 'mainSwitch': 'off', 'sensorType': 'AM2301', 'currentHumidity': '58', 'currentTemperature': '20.7', 'only_device': {'ota': 'success'}, 'targets': [{'targetHigh': '45.0', 'reaction': {'switch': 'off'}}, {'targetLow': '45.0', 'reaction': {'switch': 'on'}}], 'timeZone': 1}
2023-07-30 15:48:47 [D] 100075db52 UIID 0001 | {'switch': 'on', 'fwVersion': '3.5.1', 'startup': 'on', 'rssi': -56, 'sledOnline': 'on', 'init': 1, 'pulse': 'off', 'pulseWidth': 500, 'version': 8, 'only_device': {'ota': 'success'}}
2023-07-30 15:48:47 [D] 100076f2ea UIID 0001 | {'switch': 'on', 'fwVersion': '3.5.1', 'startup': 'on', 'rssi': -58, 'sledOnline': 'on', 'init': 1, 'pulse': 'off', 'pulseWidth': 5000, 'version': 8, 'only_device': {'ota': 'success'}}
2023-07-30 15:48:47 [D] 100075aac1 UIID 0001 | {'version': 8, 'pulseWidth': 500, 'pulse': 'off', 'init': 1, 'sledOnline': 'on', 'rssi': -40, 'startup': 'on', 'fwVersion': '3.5.1', 'switch': 'off', 'only_device': {'ota': 'success'}}
2023-07-30 15:48:47 [D] 100066bcab UIID 0015 | {'currentHumidity': 'unavailable', 'currentTemperature': 'unavailable', 'sensorType': 'ERROR_TYPE', 'init': 1, 'rssi': -44, 'startup': 'on', 'fwVersion': '3.5.0', 'switch': 'off', 'mainSwitch': 'off', 'deviceType': 'normal', 'targets': [{'targetHigh': '18.0', 'reaction': {'switch': 'on'}}, {'targetLow': '17.0', 'reaction': {'switch': 'off'}}], 'version': 8, 'sledOnline': 'on', 'pulse': 'off', 'pulseWidth': 2000, 'only_device': {'ota': 'success'}, 'password': 'RmnOKoxNYMiEVUqTX82AXA==', 'timeZone': 1}
2023-07-30 15:48:47 [D] AUTO mode start
2023-07-30 15:48:47 [D] 100123aed1 <= Local3 | 192.168.0.114:8081 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'on', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 491.18, 'voltage': 235.91, 'current': 2.04} | 399
2023-07-30 15:48:47 [D] 100075aac1 <= Local3 | 192.168.0.94:8081 | {'switch': 'off', 'startup': 'on', 'pulse': 'off', 'sledOnline': 'on', 'pulseWidth': 500, 'rssi': -39} | 7
2023-07-30 15:48:47 [D] 10013bf803 <= Local3 | 192.168.0.53:8081 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'on', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 235.31, 'current': 0} | 125488
2023-07-30 15:48:47 [D] 10010bb322 <= Local3 | 192.168.0.97:8081 | {'mainSwitch': 'off', 'deviceType': 'normal', 'targets': [{'targetHigh': 45, 'reaction': {'switch': 'off'}}, {'targetLow': 45, 'reaction': {'switch': 'on'}}], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'sensorType': 'AM2301', 'currentHumidity': '70', 'currentTemperature': '20.2'} | 1505
2023-07-30 15:48:47 [D] 100066bcab <= Local3 | 192.168.0.49:8081 | {'mainSwitch': 'off', 'deviceType': 'normal', 'switch': 'off', 'startup': 'on', 'pulse': 'off', 'pulseWidth': 2000, 'sledOnline': 'on', 'sensorType': 'ERROR_TYPE', 'currentHumidity': 'unavailable', 'currentTemperature': 'unavailable'} | 169
2023-07-30 15:48:47 [D] 100075db52 <= Local3 | 192.168.0.47:8081 | {'switch': 'on', 'startup': 'on', 'pulse': 'off', 'sledOnline': 'on', 'pulseWidth': 500, 'rssi': -73} | 2
2023-07-30 15:48:47 [D] 10004766ed <= Local3 | 192.168.0.76:8081 | {'switch': 'off', 'startup': 'off', 'pulse': 'off', 'sledOnline': 'on', 'pulseWidth': 500, 'rssi': -75} | 2
2023-07-30 15:48:47 [D] 10013be562 <= Local3 | 192.168.0.48:8081 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'on', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 236.82, 'current': 0} | 132970
2023-07-30 15:48:50 [D] Add 53 entities
akslow commented 1 year ago

for me after changing to new api keys it started to work again (and full reboot of rasp). So try to install updates and do reboot. I had problems from 22-26 of July.

sonoff

arieltl commented 1 year ago

I updated and it also seems way better now, bu its not perfect it sometimes takes a few minutes to update the sensors and some channels update way faster then others.

arieltl commented 1 year ago

After further testing I believe its only working with cloud. It was working in auto mode, but after changing the integration to local mode the values changed once and then froze again (the switch entities worked). After changing it back to auto the sensor values were still frozen and required a restart of home assistant to work again.

Capone1983 commented 1 year ago

I have the same issue. POWR3 Firmware: 1.1.0. Values will not update on HA unless I log onto the ewelink app.

I have uninstalled and reinstalled the integration with the new API key. cleared cache etc.

This is happening for both Sonoff and third party devices. When I switch on, power is returned as 0. When I off, power is returned as 865.81.

2023-07-31 12:54:01 [D] 100169365f => Local4 | 192.168.0.156:8081 | {'switch': 'on'} <= {'seq': 55, 'sequence': '1690800841000', 'error': 0}
2023-07-31 12:54:01 [D] 100169365f <= Local3 | 192.168.0.156:8081 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'on', 'power': 0, 'voltage': 235.57, 'current': 0} | 55
2023-07-31 12:54:01 [D] 100169365f <= Cloud3 | {'switch': 'on'} | 1690800841000
2023-07-31 12:57:38 [D] 100169365f => Local4 | 192.168.0.156:8081 | {'switch': 'off'} <= {'seq': 56, 'sequence': '1690801058000', 'error': 0}
2023-07-31 12:57:38 [D] 100169365f <= Local3 | 192.168.0.156:8081 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'on', 'power': 865.81, 'voltage': 231.86, 'current': 4} | 56
2023-07-31 12:57:39 [D] 100169365f <= Cloud3 | {'switch': 'off'} | 1690801058000

If I now log onto the ewelink app and switch it on, values start pouring in

2023-07-31 13:05:06 [D] 100169365f <= Cloud3 | {'switch': 'on'} | 1690801505793
2023-07-31 13:05:18 [D] 100169365f <= Cloud3 | {'uiActive': 60} | 1690801518002
2023-07-31 13:05:18 [D] 100168ba94 <= Cloud3 | {'uiActive': 60} | 1690801518012
2023-07-31 13:05:18 [D] 100169365f <= Local3 | 192.168.0.156:8081 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'on', 'power': 552.26, 'voltage': 230.48, 'current': 2.67} | 58
2023-07-31 13:05:19 [D] 100169365f <= Cloud3 | {'power': '552.26', 'voltage': '230.48', 'current': '2.67'} | None
2023-07-31 13:05:20 [D] 100169365f <= Local3 | 192.168.0.156:8081 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'on', 'power': 580.2, 'voltage': 230.48, 'current': 2.84} | 59
2023-07-31 13:05:21 [D] 100169365f <= Cloud3 | {'power': '580.20', 'voltage': '230.48', 'current': '2.84'} | None
2023-07-31 13:05:22 [D] 100169365f <= Local3 | 192.168.0.156:8081 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'on', 'power': 640.5, 'voltage': 231.03, 'current': 3.03} | 60
2023-07-31 13:05:23 [D] 100169365f <= Cloud3 | {'power': '640.50', 'voltage': '231.03', 'current': '3.03'} | None
2023-07-31 13:05:24 [D] 100169365f <= Local3 | 192.168.0.156:8081 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'on', 'power': 718.71, 'voltage': 229.93, 'current': 3.38} | 61
2023-07-31 13:05:25 [D] 100169365f <= Cloud3 | {'power': '718.71', 'voltage': '229.93', 'current': '3.38'} | None
2023-07-31 13:05:26 [D] 100169365f <= Local3 | 192.168.0.156:8081 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'on', 'power': 772.08, 'voltage': 229.71, 'current': 3.53} | 62
2023-07-31 13:05:27 [D] 100169365f <= Cloud3 | {'power': '772.08', 'voltage': '229.72', 'current': '3.53'} | None
2023-07-31 13:05:28 [D] 100169365f <= Local3 | 192.168.0.156:8081 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'on', 'power': 818.89, 'voltage': 229.38, 'current': 3.82} | 63
2023-07-31 13:05:29 [D] 100169365f <= Cloud3 | {'power': '818.89', 'voltage': '229.38', 'current': '3.83'} | None
2023-07-31 13:05:30 [D] 100169365f <= Local3 | 192.168.0.156:8081 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'on', 'power': 832.72, 'voltage': 229.38, 'current': 3.88} | 64
2023-07-31 13:05:32 [D] 100169365f <= Cloud3 | {'power': '832.73', 'voltage': '229.38', 'current': '3.88'} | None
2023-07-31 13:05:32 [D] 100169365f <= Local3 | 192.168.0.156:8081 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'on', 'power': 877.97, 'voltage': 229.38, 'current': 4.02} | 65
2023-07-31 13:05:33 [D] 100169365f <= Cloud3 | {'power': '877.97', 'voltage': '229.38', 'current': '4.03'} | None
2023-07-31 13:05:34 [D] 100169365f <= Local3 | 192.168.0.156:8081 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'on', 'power': 879.83, 'voltage': 229.38, 'current': 4.12} | 66
2023-07-31 13:05:35 [D] 100169365f <= Cloud3 | {'power': '879.84', 'voltage': '229.38', 'current': '4.12'} | None
2023-07-31 13:05:36 [D] 100169365f <= Local3 | 192.168.0.156:8081 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'on', 'power': 862.55, 'voltage': 229.38, 'current': 4.05} | 67
2023-07-31 13:05:37 [D] 100169365f <= Cloud3 | {'power': '862.55', 'voltage': '229.38', 'current': '4.06'} | None
2023-07-31 13:05:38 [D] 100169365f <= Local3 | 192.168.0.156:8081 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'on', 'power': 857.72, 'voltage': 229.17, 'current': 4.01} | 68
2023-07-31 13:05:39 [D] 100169365f <= Cloud3 | {'power': '857.73', 'voltage': '229.17', 'current': '4.02'} | None
2023-07-31 13:05:40 [D] 100168ba94 <= Local3 | 192.168.0.212:8081 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'on', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'on', 'power': 3897.28, 'voltage': 223.76, 'current': 17.2} | 246
2023-07-31 13:05:42 [D] 100169365f <= Local3 | 192.168.0.156:8081 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'on', 'power': 856.58, 'voltage': 229.38, 'current': 4.01} | 69
2023-07-31 13:05:43 [D] 100169365f <= Cloud3 | {'power': '856.58', 'voltage': '229.38', 'current': '4.01'} | None
2023-07-31 13:05:49 [D] 100169365f <= Local3 | 192.168.0.156:8081 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'on', 'power': 855.27, 'voltage': 229.38, 'current': 4.01} | 70
2023-07-31 13:05:50 [D] 100169365f <= Cloud3 | {'switch': 'off'} | 1690801549252
2023-07-31 13:05:50 [D] 100169365f <= Local3 | 192.168.0.156:8081 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'on', 'power': 0, 'voltage': 229.96, 'current': 0} | 71
2023-07-31 13:05:51 [D] 100169365f <= Cloud3 | {'power': '0.00', 'voltage': '229.38', 'current': '0.00'} | None
2023-07-31 13:05:52 [D] 100168ba94 <= Local3 | 192.168.0.212:8081 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1],
JDJuergenD commented 1 year ago

With HA addon ewelink i have same, update value only open ewelink app.

PiousJunkets commented 1 year ago

Same problem here. Running hass supervised with Armbian on orangePi. Not sure if it's coincident, it seems to happen after running apt upgrade on the host.

The following packages will be upgraded: armbian-config armbian-zsh docker-ce docker-ce-cli docker-ce-rootless-extras gstreamer1.0-plugins-base gstreamer1.0-plugins-good iperf3 libgstreamer-gl1.0-0 libgstreamer-plugins-base1.0-0 libiperf0 tailscale 12 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Installing new version of config file /etc/default/docker ... Installing new version of config file /etc/init.d/docker ... Removing obsolete conffile /etc/init/docker.conf ...

MikeTe commented 1 year ago

I have the same problem with Sonoff SPM-Main and SPM-4Relay - no updating voltage, current and power maybe for one week.

{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2023.7.3",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.11.4",
    "docker": true,
    "arch": "aarch64",
    "timezone": "Europe/Prague",
    "os_name": "Linux",
    "os_version": "6.1.21-v8",
    "supervisor": "2023.07.1",
    "host_os": "Home Assistant OS 10.3",
    "docker_version": "23.0.6",
    "chassis": "embedded",
    "run_as_root": true
  },
  "custom_components": {
    "opensprinkler": {
      "version": "1.1.17",
      "requirements": [
        "pyopensprinkler==0.7.7"
      ]
    },
    "hacs": {
      "version": "1.32.1",
      "requirements": [
        "aiogithubapi>=22.10.1"
      ]
    },
    "auto_backup": {
      "version": "1.4.0",
      "requirements": []
    },
    "hpprinter": {
      "version": "1.0.8",
      "requirements": [
        "xmltodict==0.12.0"
      ]
    },
    "sonoff": {
      "version": "3.5.2",
      "requirements": [
        "pycryptodome>=3.6.6"
      ]
    }
  },
  "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.5.2",
    "iot_class": "local_push",
    "is_built_in": false
  },
  "data": {
    "version": "2ad1cd7",
    "cloud_auth": true,
    "config": null,
    "options": {
      "mode": "auto",
      "debug": false,
      "homes": 1
    },
    "errors": [
      {
        "name": "custom_components.sonoff.core.ewelink.cloud",
        "message": [
          "Cloud ERROR: {'error': 504, 'reason': 'Request Timeout', 'deviceid': 'ab3000071c', 'apikey': '47caec9d-7357-49c1-adb7-93c2470d1ad1', 'sequence': '1690991183000'}",
          "Cloud ERROR: {'error': 504, 'reason': 'Request Timeout', 'deviceid': 'ab3000071c', 'apikey': '47caec9d-7357-49c1-adb7-93c2470d1ad1', 'sequence': '1690991183001'}",
          "Cloud ERROR: {'error': 504, 'reason': 'Request Timeout', 'deviceid': 'ab3000071c', 'apikey': '47caec9d-7357-49c1-adb7-93c2470d1ad1', 'sequence': '1690991183002'}",
          "Cloud ERROR: {'error': 504, 'reason': 'Request Timeout', 'deviceid': 'ab3000071c', 'apikey': '47caec9d-7357-49c1-adb7-93c2470d1ad1', 'sequence': '1690991184000'}"
        ],
        "level": "WARNING",
        "source": [
          "custom_components/sonoff/core/ewelink/cloud.py",
          347
        ],
        "timestamp": 1690991189.0721016,
        "exception": "",
        "count": 4,
        "first_occurred": 1690991188.7836585
      }
    ],
    "devices": {
      "ab3000071c": {
        "uiid": 130,
        "params": {
          "bindInfos": "***",
          "subDevId": "4c15474c3831310c45373439",
          "parentid": "10016b7737",
          "demNextFetchTime": 1690844400000,
          "configure": [
            {
              "outlet": 0,
              "startup": "off"
            },
            {
              "outlet": 1,
              "startup": "on"
            },
            {
              "outlet": 2,
              "startup": "off"
            },
            {
              "outlet": 3,
              "startup": "off"
            }
          ],
          "fwVersion": "1.2.0",
          "overload_00": {
            "delayTime": 0,
            "maxAP": {
              "en": 0,
              "val": 480000
            },
            "maxC": {
              "en": 0,
              "val": 2000
            },
            "maxV": {
              "en": 0,
              "val": 26400
            },
            "minAP": {
              "en": 0,
              "val": 10
            },
            "minV": {
              "en": 0,
              "val": 9000
            }
          },
          "overload_01": {
            "delayTime": 0,
            "maxAP": {
              "en": 0,
              "val": 480000
            },
            "maxC": {
              "en": 0,
              "val": 2000
            },
            "maxV": {
              "en": 0,
              "val": 26400
            },
            "minAP": {
              "en": 0,
              "val": 10
            },
            "minV": {
              "en": 0,
              "val": 9000
            }
          },
          "overload_02": {
            "delayTime": 0,
            "maxAP": {
              "en": 0,
              "val": 480000
            },
            "maxC": {
              "en": 0,
              "val": 2000
            },
            "maxV": {
              "en": 0,
              "val": 26400
            },
            "minAP": {
              "en": 0,
              "val": 10
            },
            "minV": {
              "en": 0,
              "val": 9000
            }
          },
          "overload_03": {
            "delayTime": 0,
            "maxAP": {
              "en": 0,
              "val": 480000
            },
            "maxC": {
              "en": 0,
              "val": 2000
            },
            "maxV": {
              "en": 0,
              "val": 26400
            },
            "minAP": {
              "en": 0,
              "val": 10
            },
            "minV": {
              "en": 0,
              "val": 9000
            }
          },
          "switches": [
            {
              "switch": "off",
              "outlet": 0
            },
            {
              "switch": "on",
              "outlet": 1
            },
            {
              "switch": "off",
              "outlet": 2
            },
            {
              "switch": "on",
              "outlet": 3
            }
          ],
          "threshold": {
            "actPow": {
              "min": 10,
              "max": 480000
            },
            "current": {
              "min": 10,
              "max": 2000
            },
            "voltage": {
              "min": 9000,
              "max": 26400
            }
          },
          "getKwh_00": 2,
          "timers": "***",
          "getKwh_01": 2,
          "getKwh_02": 2,
          "getKwh_03": 2,
          "uiActive": {
            "outlet": 3,
            "time": 60
          },
          "actPow_00": 0,
          "apparentPow_00": 0,
          "current_00": 0,
          "reactPow_00": 0,
          "voltage_00": 0,
          "actPow_01": 0,
          "apparentPow_01": 0,
          "current_01": 0,
          "reactPow_01": 0,
          "voltage_01": 0,
          "actPow_02": 0,
          "apparentPow_02": 0,
          "current_02": 0,
          "reactPow_02": 0,
          "voltage_02": 0,
          "actPow_03": 0,
          "apparentPow_03": 0,
          "current_03": 0,
          "reactPow_03": 0,
          "voltage_03": 0,
          "rangeEnd": 29,
          "rangeStart": 0
        },
        "model": "GD32-SM4(130)",
        "online": true,
        "local": null,
        "localtype": null,
        "host": null
      },
      "10016b7737": {
        "uiid": 128,
        "params": {
          "bindInfos": "***",
          "version": 8,
          "rssi": -74,
          "fwVersion": "1.2.0",
          "sledOnline": "on",
          "subChipFwVer": "1.2.0",
          "timeZone": 2,
          "subDevices": [
            {
              "subDevId": "4c15474c3831310c45373439",
              "deviceid": "ab3000071c",
              "uiid": "130",
              "index": 0
            }
          ]
        },
        "model": "SPM-Main",
        "online": true,
        "local": true,
        "localtype": "meter",
        "host": "10.0.1.51:8081"
      },
      "abf8001d52": {
        "uiid": 20000,
        "params": {
          "partnerDevice": {
            "ezVedioSerial": "93e8a6f7-a626-47ab-b3b3-e9ab9b86ac42"
          },
          "subDevices": []
        },
        "model": "NON-OTA-GL(20000)",
        "online": false,
        "local": null,
        "localtype": null,
        "host": null
      },
      "1001e3800f": {
        "uiid": 195,
        "params": {
          "bindInfos": "***",
          "rooted": false,
          "cityId": "WA@50.04,15.78",
          "dst": 1,
          "tempRange": "3.4,9.3",
          "temperature": 6,
          "timeZone": 1,
          "weather": 8,
          "version": 7,
          "buzzerAlarm": {
            "test": false,
            "mode": "stop"
          },
          "screenList1": [
            "10017c3473"
          ],
          "screenList2": [],
          "screenList3": [],
          "appVersion": "1.10.1",
          "sysVersion": "1.10.0",
          "fwVersion": "1.10.1",
          "zigbeeVersion": "1.0.0",
          "securityType": 0,
          "subDevices": [],
          "temp_control": [],
          "showablePannels": [
            "thingList",
            "main",
            "webScreen",
            "energyPannel"
          ],
          "addSubDevState": "off",
          "addTimeOut": 10,
          "addType": "ble",
          "geo": "50.03861,15.77916",
          "addDevTime": 180,
          "humitureSourceDeviceid": "10017c3473",
          "screenName1": "Obrazovka za\u0159\u00edzen\u00ed 1",
          "dstChange": "2023-10-29T01:00:00.000Z",
          "websites": [
            {
              "id": 90.32172444951789,
              "name": "FVE Remote",
              "url": "http://10.0.1.50"
            },
            {
              "id": 91.78447082014036,
              "name": "FVE Venus",
              "url": "http://10.0.1.50/app"
            },
            {
              "id": 61.79150442251624,
              "name": "HomeAssistant",
              "url": "http://10.0.1.2:8123"
            }
          ]
        },
        "model": "NSPanel86PB",
        "online": true,
        "local": null,
        "localtype": null,
        "host": null
      },
      "10017c3473": {
        "uiid": 181,
        "params": {
          "bindInfos": "***",
          "version": 8,
          "ssid": "***",
          "bssid": "***",
          "fwVersion": "1.1.0",
          "switch": "off",
          "startup": "off",
          "pulseConfig": {
            "pulse": "off",
            "switch": "off",
            "pulseWidth": 500
          },
          "sledOnline": "on",
          "tempUnit": 0,
          "sensorType": "WTS01",
          "currentTemperature": "58.9",
          "currentHumidity": "unavailable",
          "rssi": -74,
          "staMac": "***",
          "autoControl": [
            {
              "deviceType": "temperature",
              "targets": [
                {
                  "high": "52.0",
                  "reaction": {
                    "switch": "off"
                  }
                },
                {
                  "low": "40.0",
                  "reaction": {
                    "switch": "on"
                  }
                }
              ],
              "effTime": {
                "spanType": "any",
                "days": [
                  0,
                  1,
                  2,
                  3,
                  4,
                  5,
                  6
                ],
                "from": "00:00",
                "to": "01:00"
              }
            }
          ],
          "autoControlEnabled": 0,
          "uiActive": 60,
          "timeZone": 1,
          "only_device": {
            "ota": "success",
            "ota_fail_reason": 0
          },
          "tempCorrection": 0,
          "humCorrection": 0,
          "tempHumiType": 1,
          "lowFreqUpdateFlag": 1
        },
        "model": "THR320D",
        "online": true,
        "local": true,
        "localtype": "th_plug",
        "host": "10.0.1.52:8081"
      }
    }
  }
}
froias16 commented 1 year ago

Having the same issue for more than a week already. Has anyone came up with a suggested fix?

czerwony03 commented 1 year ago

Same issue on PSF-X67 devices

Capone1983 commented 1 year ago

Hi all

Started working again for me on the 3rd of August. Didn't do anything. Didnt work from the 25th July till the 3rd Aug only when I would open the ewlink app. Now it's working with out having to open the app.

image

kvn-inbox commented 1 year ago

Hello! Have the same issue Device: https://www.aliexpress.com/item/1005001434568180.html?spm=a2g0o.order_list.order_list_main.68.6ca61802R4hafT

Diagnostic

{
  "home_assistant": {
    "installation_type": "Home Assistant Supervised",
    "version": "2023.8.1",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.11.4",
    "docker": true,
    "arch": "armv7l",
    "timezone": "Europe/Kiev",
    "os_name": "Linux",
    "os_version": "5.10.103-v7l+",
    "supervisor": "2023.07.1",
    "host_os": "Raspbian GNU/Linux 10 (buster)",
    "docker_version": "20.10.21",
    "chassis": "",
    "run_as_root": true
  },
  "custom_components": {
    "webrtc": {
      "version": "v3.2.1",
      "requirements": []
    },
    "hacs": {
      "version": "1.32.1",
      "requirements": [
        "aiogithubapi>=22.10.1"
      ]
    },
    "sonoff": {
      "version": "3.5.2",
      "requirements": [
        "pycryptodome>=3.6.6"
      ]
    },
    "reolink_dev": {
      "version": "0.64",
      "requirements": [
        "reolink==0.0.64",
        "aiosmtpd>=1.4.2"
      ]
    },
    "gismeteo": {
      "version": "2.5.1",
      "requirements": []
    }
  },
  "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.5.2",
    "iot_class": "local_push",
    "is_built_in": false
  },
  "data": {
    "version": "2ad1cd7",
    "cloud_auth": false,
    "config": {
      "username": "***",
      "password": "***"
    },
    "options": {},
    "errors": [],
    "device": {
      "uiid": 32,
      "params": {
        "bindInfos": "***",
        "version": 8,
        "sledOnline": "on",
        "ssid": "***",
        "bssid": "***",
        "fwVersion": "3.5.0",
        "staMac": "***",
        "rssi": -70,
        "init": 1,
        "alarmType": "pcv",
        "alarmVValue": [
          -1,
          -1
        ],
        "alarmCValue": [
          -1,
          -1
        ],
        "alarmPValue": [
          -1,
          -1
        ],
        "switch": "on",
        "startup": "on",
        "pulse": "off",
        "pulseWidth": 500,
        "power": "411.42",
        "voltage": "240.78",
        "current": "1.75",
        "oneKwh": "stop",
        "timeZone": 3,
        "hundredDaysKwh": "get",
        "demNextFetchTime": 1690232400000,
        "uiActive": 60
      },
      "model": "PSF-X67",
      "online": true,
      "local": true,
      "localtype": "enhanced_plug",
      "host": "192.168.1.111:8081",
      "deviceid": "1001322b9f"
    }
  }
}

Если что, стучи в ТГ @kvninbox - смогу подебагать все что нужно

jlopez77 commented 1 year ago

I have the same issue but started two days ago on Aug 8th. Everything has been updated and rebooted but the problem remains.

JDJuergenD commented 1 year ago

I change to tasmota

boberolak commented 1 year ago

Found a solution which is working for me: Uninstall eWeLink from mobile phone and reboot whole Home Assistant. After reboot it works without problems - just dont install eWeLink on Your mobile, so only Home Assistant will "talk" to power meter module (PSF-X67) - just for the record: eWeLink APP is not available in Google Play now, but You can download it from their website if you will need it in the future.

kingwap99 commented 1 year ago

Found a solution which is working for me: Uninstall eWeLink from mobile phone and reboot whole Home Assistant. After reboot it works without problems - just dont install eWeLink on Your mobile, so only Home Assistant will "talk" to power meter module (PSF-X67)

I like this solution, ha ha ha it works for me, thanks a lot

but I think this issue only happened when the ewelink app are touched. so I just quit ewelink app (reboot the mobile phone) and reboot ha

jlopez77 commented 1 year ago

Obviously, this "solution" does nothing. I've tried and nothing changes. Data is still not updated or updated randomly.

El sáb, 12 ago 2023 a las 11:50, neoyang @.***>) escribió:

Found a solution which is working for me: Uninstall eWeLink from mobile phone and reboot whole Home Assistant. After reboot it works without problems - just dont install eWeLink on Your mobile, so only Home Assistant will "talk" to power meter module (PSF-X67)

I like this solution, ha ha ha it works for me, thanks a lot

but I think this issue only happened when the ewelink app are touched. so I just quit ewelink app (reboot the mobile phone) and reboot ha

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

khaisilk1910 commented 1 year ago

After one of my PWR2 devices became Unavailable. I tried removing the device and adding it again.But now I can't see the device on HASS. On ewelink still have equipment and work fine. In Sonoff's json configuration file I still find the device's information But it is not found on sonoff's Integration. I tried to share that device to another account and add it in Integrations but it still doesn't have it.

PiousJunkets commented 1 year ago

Found a solution which is working for me: Uninstall eWeLink from mobile phone and reboot whole Home Assistant. After reboot it works without problems - just dont install eWeLink on Your mobile, so only Home Assistant will "talk" to power meter module (PSF-X67) - just for the record: eWeLink APP is not available in Google Play now, but You can download it from their website if you will need it in the future.

Doesn't work for me unfortunately.

frlequ commented 1 year ago

Same issue with POWR3 when I block net access. Power meter sensors only works via Cloud.

kingwap99 commented 1 year ago

Hi everybody here Pluse just trust me, the solution really works step 1: reboot the phone which one you installed ewelink app step 2: reboot ha and then everything goes well

frlequ commented 1 year ago

Hi everybody here Pluse just trust me, the solution really works step 1: reboot the phone which one you installed ewelink app step 2: reboot ha and then everything goes well

Doesn't work. Capture

Do you have Cloud or Local option? Also, have you disable net access to sonoff?

kingwap99 commented 1 year ago

Hi everybody here Pluse just trust me, the solution really works step 1: reboot the phone which one you installed ewelink app step 2: reboot ha and then everything goes well

Doesn't work. Capture

Do you have Cloud or Local option? Also, have you disable net access to sonoff? 截圖 2023-08-16 16 04 12 截圖 2023-08-16 16 05 19

frlequ commented 1 year ago

Yes, auto and cloud works for me to. Try Local or just cut internet access to sonoff, then power meter stops updating.

jkfranks9 commented 1 year ago

I've been keeping an eye on this issue, but with no updates in a couple of weeks I'm reporting my experience. There seems to be some conflicting and possibly incorrect information so far, but the following is what I've been seeing.

All my devices are S31 plugs. I run the integration in auto mode. Debug information is included below, but essentially what I see is the same as the OP: I get updates only when the eWeLink app is open. None of the proposed solutions work for me.

Debug log notes:

Debug log:

2023-08-28 07:56:50 [D] 10011f93a2 UIID 0032 | {'version': 8, 'only_device': {'ota': 'success'}, 'sledOnline': 'off', 'fwVersion': '3.5.0', 'rssi': -63, 'init': 1, 'alarmType': 'pcv', 'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'on', 'pulse': 'off', 'pulseWidth': 500, 'power': '7.95', 'voltage': '123.34', 'current': '0.25', 'oneKwh': 'stop', 'uiActive': 60, 'hundredDaysKwh': 'get', 'timeZone': -5, 'demNextFetchTime': 1690347600000}
2023-08-28 07:56:50 [D] 10011f93a2 <= Local3 | 192.168.1.192:8081 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'on', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 122.07, 'current': 0} | 466
2023-08-28 08:01:51 [D] 10011f93a2 UIID 0032 | {'version': 8, 'only_device': {'ota': 'success'}, 'sledOnline': 'off', 'fwVersion': '3.5.0', 'rssi': -63, 'init': 1, 'alarmType': 'pcv', 'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'on', 'pulse': 'off', 'pulseWidth': 500, 'power': '7.95', 'voltage': '123.34', 'current': '0.25', 'oneKwh': 'stop', 'uiActive': 60, 'hundredDaysKwh': 'get', 'timeZone': -5, 'demNextFetchTime': 1690347600000}
2023-08-28 08:01:52 [D] 10011f93a2 <= Local3 | 192.168.1.192:8081 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'on', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 122.07, 'current': 0} | 466
... <some information removed>
2023-08-28 08:48:01 [D] 10011f93a2 <= Local3 | 192.168.1.192:8081 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'on', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 108.83, 'voltage': 124.38, 'current': 0.99} | 515
2023-08-28 08:48:51 [D] 10011f93a2 <= Local3 | 192.168.1.192:8081 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'on', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 108.53, 'voltage': 124.25, 'current': 0.99} | 516
2023-08-28 08:49:31 [D] 10011f93a2 <= Local3 | 192.168.1.192:8081 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'on', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 111.22, 'voltage': 124.25, 'current': 1.01} | 517
2023-08-28 08:49:35 [D] 10011f93a2 <= Local3 | 192.168.1.192:8081 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'on', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 109.21, 'voltage': 124.25, 'current': 1.01} | 518
2023-08-28 08:49:37 [D] 10011f93a2 <= Local3 | 192.168.1.192:8081 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'on', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 107.65, 'voltage': 124.25, 'current': 0.98} | 519
2023-08-28 08:49:41 [D] 10011f93a2 <= Local3 | 192.168.1.192:8081 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'on', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 107.35, 'voltage': 124.42, 'current': 0.98} | 520
2023-08-28 08:50:21 [D] 10011f93a2 <= Local3 | 192.168.1.192:8081 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'on', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 105.19, 'voltage': 124.25, 'current': 0.96} | 521
2023-08-28 08:50:31 [D] 10011f93a2 <= Local3 | 192.168.1.192:8081 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'on', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 105.25, 'voltage': 124.25, 'current': 0.97} | 522
2023-08-28 08:51:21 [D] 10011f93a2 <= Local3 | 192.168.1.192:8081 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'on', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 104.02, 'voltage': 124.25, 'current': 0.96} | 523
2023-08-28 08:51:35 [D] 10011f93a2 <= Local3 | 192.168.1.192:8081 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'on', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 103.83, 'voltage': 124.01, 'current': 0.96} | 524
2023-08-28 09:15:10 [D] 10011f93a2 <= Local3 | 192.168.1.192:8081 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'on', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 103.83, 'voltage': 124.01, 'current': 0.96} | 524
2023-08-28 09:27:12 [D] 10011f93a2 <= Local3 | 192.168.1.192:8081 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'on', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 103.83, 'voltage': 124.01, 'current': 0.96} | 524
2023-08-28 09:28:01 [D] 10011f93a2 <= Local3 | 192.168.1.192:8081 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'on', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 125.44, 'current': 0} | 525
2023-08-28 09:28:51 [D] 10011f93a2 <= Local3 | 192.168.1.192:8081 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'on', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 125.38, 'current': 0} | 526
2023-08-28 09:29:35 [D] 10011f93a2 <= Local3 | 192.168.1.192:8081 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'on', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 125.55, 'current': 0} | 527
2023-08-28 09:29:41 [D] 10011f93a2 <= Local3 | 192.168.1.192:8081 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'on', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 125.13, 'current': 0} | 528
2023-08-28 09:30:31 [D] 10011f93a2 <= Local3 | 192.168.1.192:8081 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'on', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 125.34, 'current': 0} | 529
2023-08-28 09:31:21 [D] 10011f93a2 <= Local3 | 192.168.1.192:8081 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'on', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 125.29, 'current': 0} | 530
2023-08-28 09:31:35 [D] 10011f93a2 <= Local3 | 192.168.1.192:8081 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'on', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 124.8, 'current': 0} | 531
2023-08-28 09:32:05 [D] 10011f93a2 <= Local3 | 192.168.1.192:8081 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'on', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 8.18, 'voltage': 124.97, 'current': 0.23} | 532
2023-08-28 09:32:07 [D] 10011f93a2 <= Local3 | 192.168.1.192:8081 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'on', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 8.11, 'voltage': 125.13, 'current': 0.26} | 533
2023-08-28 09:32:11 [D] 10011f93a2 <= Local3 | 192.168.1.192:8081 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'on', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 8.24, 'voltage': 125.13, 'current': 0.26} | 534
2023-08-28 09:32:15 [D] 10011f93a2 <= Local3 | 192.168.1.192:8081 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'on', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 8.26, 'voltage': 124.97, 'current': 0.04} | 535
2023-08-28 09:32:19 [D] 10011f93a2 <= Local3 | 192.168.1.192:8081 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'on', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 125.01, 'current': 0} | 536
2023-08-28 09:32:53 [D] 10011f93a2 <= Local3 | 192.168.1.192:8081 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'on', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 8.24, 'voltage': 125.21, 'current': 0.1} | 537
2023-08-28 09:32:55 [D] 10011f93a2 <= Local3 | 192.168.1.192:8081 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'on', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 8.18, 'voltage': 125.05, 'current': 0.26} | 538
2023-08-28 09:32:59 [D] 10011f93a2 <= Local3 | 192.168.1.192:8081 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'on', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 8.1, 'voltage': 124.8, 'current': 0.18} | 539
2023-08-28 09:33:01 [D] 10011f93a2 <= Local3 | 192.168.1.192:8081 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'on', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 8.1, 'voltage': 124.97, 'current': 0.04} | 540
2023-08-28 09:33:07 [D] 10011f93a2 <= Local3 | 192.168.1.192:8081 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'on', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 3.04, 'voltage': 124.97, 'current': 0.02} | 541
2023-08-28 09:33:35 [D] 10011f93a2 <= Local3 | 192.168.1.192:8081 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'on', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 124.8, 'current': 0} | 542
2023-08-28 09:40:33 [D] 10011f93a2 <= Local3 | 192.168.1.192:8081 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'on', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 131.18, 'voltage': 124.01, 'current': 1.14} | 543
2023-08-28 09:40:49 [D] 10011f93a2 <= Local3 | 192.168.1.192:8081 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'on', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 126.71, 'voltage': 123.89, 'current': 1.11} | 544
2023-08-28 09:40:51 [D] 10011f93a2 <= Local3 | 192.168.1.192:8081 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'on', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 130.75, 'voltage': 123.92, 'current': 1.14} | 545
2023-08-28 09:40:55 [D] 10011f93a2 <= Local3 | 192.168.1.192:8081 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'on', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 126.28, 'voltage': 123.85, 'current': 1.11} | 546
2023-08-28 09:41:13 [D] 10011f93a2 <= Local3 | 192.168.1.192:8081 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'on', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 124.22, 'voltage': 123.92, 'current': 1.1} | 547
2023-08-28 09:41:23 [D] 10011f93a2 <= Local3 | 192.168.1.192:8081 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'on', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 122.96, 'voltage': 123.92, 'current': 1.1} | 548
2023-08-28 09:41:31 [D] 10011f93a2 <= Local3 | 192.168.1.192:8081 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'on', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 120.47, 'voltage': 123.84, 'current': 1.08} | 549
2023-08-28 09:41:35 [D] 10011f93a2 <= Local3 | 192.168.1.192:8081 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'on', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 120.24, 'voltage': 123.71, 'current': 1.08} | 550
2023-08-28 09:41:39 [D] 10011f93a2 <= Local3 | 192.168.1.192:8081 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'on', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 117.72, 'voltage': 123.85, 'current': 1.06} | 551
2023-08-28 09:41:53 [D] 10011f93a2 <= Local3 | 192.168.1.192:8081 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'on', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 115.97, 'voltage': 123.88, 'current': 1.04} | 552

Integration diagnostics:

{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2023.8.4",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.11.4",
    "docker": true,
    "arch": "aarch64",
    "timezone": "America/New_York",
    "os_name": "Linux",
    "os_version": "6.1.21-v8",
    "supervisor": "2023.08.1",
    "host_os": "Home Assistant OS 10.5",
    "docker_version": "23.0.6",
    "chassis": "embedded",
    "run_as_root": true
  },
  "custom_components": {
    "alexa_media": {
      "version": "4.6.5",
      "requirements": [
        "alexapy==1.26.8",
        "packaging>=20.3",
        "wrapt>=1.12.1"
      ]
    },
    "watchman": {
      "version": "0.5.1",
      "requirements": [
        "prettytable==3.0.0"
      ]
    },
    "sonoff": {
      "version": "3.5.2",
      "requirements": [
        "pycryptodome>=3.6.6"
      ]
    },
    "unifics": {
      "version": "0.2.3",
      "requirements": [
        "pyunifi@git+https://github.com/finish06/pyunifi.git#egg=pyunifi"
      ]
    },
    "pyscript": {
      "version": "1.5.0",
      "requirements": [
        "croniter==1.3.8",
        "watchdog==2.3.1"
      ]
    },
    "thermal_comfort": {
      "version": "2.1.1",
      "requirements": []
    },
    "mail_and_packages": {
      "version": "0.3.17",
      "requirements": [
        "beautifulsoup4",
        "Pillow>=9.0"
      ]
    },
    "browser_mod": {
      "version": "2.3.0",
      "requirements": []
    },
    "satellitetracker": {
      "version": "0.0.8",
      "requirements": [
        "n2yoasync==0.0.6"
      ]
    },
    "epson_projector": {
      "version": "1.0.0",
      "requirements": [
        "pypjlink2==1.2.1"
      ]
    },
    "hacs": {
      "version": "1.32.1",
      "requirements": [
        "aiogithubapi>=22.10.1"
      ]
    },
    "resmed_myair": {
      "version": "0.1.11",
      "requirements": [
        "beautifulsoup4",
        "PyJWT"
      ]
    }
  },
  "integration_manifest": {
    "domain": "sonoff",
    "name": "Sonoff",
    "config_flow": true,
    "documentation": "https://github.com/AlexxIT/SonoffLAN",
    "issue_tracker": "/api/sonoff/7bc3c010-c6d0-49c9-bf1e-62c631e96049",
    "codeowners": [
      "@AlexxIT"
    ],
    "dependencies": [
      "http",
      "zeroconf"
    ],
    "requirements": [
      "pycryptodome>=3.6.6"
    ],
    "version": "3.5.2",
    "iot_class": "local_push",
    "is_built_in": false
  },
  "data": {
    "version": "2ad1cd7",
    "cloud_auth": false,
    "config": null,
    "options": {
      "mode": "auto",
      "debug": true
    },
    "errors": [],
    "devices": {
      "1001490f5f": {
        "uiid": 32,
        "params": {
          "bindInfos": "***",
          "version": 8,
          "demNextFetchTime": 1673067600000,
          "only_device": {
            "ota": "success"
          },
          "hundredDaysKwh": "get",
          "sledOnline": "on",
          "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": "off",
          "pulse": "off",
          "pulseWidth": 500,
          "power": "0.00",
          "voltage": "123.54",
          "current": "0.00",
          "oneKwh": "stop",
          "uiActive": 7200,
          "timeZone": -5
        },
        "model": "S31TPB(US)",
        "online": false,
        "local": null,
        "localtype": null,
        "host": null
      },
      "100149151d": {
        "uiid": 32,
        "params": {
          "bindInfos": "***",
          "version": 8,
          "only_device": {
            "ota": "success"
          },
          "sledOnline": "off",
          "ssid": "***",
          "bssid": "***",
          "fwVersion": "3.5.0",
          "staMac": "***",
          "rssi": -70,
          "init": 1,
          "alarmType": "pcv",
          "alarmVValue": [
            -1,
            -1
          ],
          "alarmCValue": [
            -1,
            -1
          ],
          "alarmPValue": [
            -1,
            -1
          ],
          "switch": "on",
          "startup": "off",
          "pulse": "off",
          "pulseWidth": 500,
          "power": "3.68",
          "voltage": "121.68",
          "current": "0.05",
          "oneKwh": "stop",
          "uiActive": 60,
          "timeZone": -5,
          "hundredDaysKwh": "get",
          "demNextFetchTime": 1690347600000
        },
        "model": "S31TPB(US)",
        "online": true,
        "local": true,
        "localtype": "enhanced_plug",
        "host": "192.168.1.213:8081"
      },
      "10012aa056": {
        "uiid": 32,
        "params": {
          "bindInfos": "***",
          "version": 8,
          "only_device": {
            "ota": "success"
          },
          "sledOnline": "off",
          "ssid": "***",
          "bssid": "***",
          "fwVersion": "3.5.0",
          "staMac": "***",
          "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": "121.53",
          "current": "0.00",
          "oneKwh": "stop",
          "uiActive": 60,
          "timeZone": -5,
          "hundredDaysKwh": "get",
          "demNextFetchTime": 1690347600000
        },
        "model": "S31TPB(US)",
        "online": true,
        "local": true,
        "localtype": "enhanced_plug",
        "host": "192.168.1.77:8081"
      },
      "10012aa04a": {
        "uiid": 32,
        "params": {
          "bindInfos": "***",
          "version": 8,
          "only_device": {
            "ota": "success"
          },
          "sledOnline": "off",
          "ssid": "***",
          "bssid": "***",
          "fwVersion": "3.5.0",
          "staMac": "***",
          "rssi": -60,
          "init": 1,
          "alarmType": "pcv",
          "alarmVValue": [
            -1,
            -1
          ],
          "alarmCValue": [
            -1,
            -1
          ],
          "alarmPValue": [
            -1,
            -1
          ],
          "switch": "off",
          "startup": "on",
          "pulse": "off",
          "pulseWidth": 500,
          "power": "0.00",
          "voltage": "121.07",
          "current": "0.00",
          "oneKwh": "stop",
          "uiActive": 60,
          "hundredDaysKwh": "get",
          "timeZone": -5,
          "demNextFetchTime": 1690347600000
        },
        "model": "S31TPB(US)",
        "online": true,
        "local": true,
        "localtype": "enhanced_plug",
        "host": "192.168.1.15:8081"
      },
      "10011f93a2": {
        "uiid": 32,
        "params": {
          "bindInfos": "***",
          "version": 8,
          "only_device": {
            "ota": "success"
          },
          "sledOnline": "off",
          "ssid": "***",
          "bssid": "***",
          "fwVersion": "3.5.0",
          "staMac": "***",
          "rssi": -63,
          "init": 1,
          "alarmType": "pcv",
          "alarmVValue": [
            -1,
            -1
          ],
          "alarmCValue": [
            -1,
            -1
          ],
          "alarmPValue": [
            -1,
            -1
          ],
          "switch": "on",
          "startup": "on",
          "pulse": "off",
          "pulseWidth": 500,
          "power": "7.95",
          "voltage": "123.34",
          "current": "0.25",
          "oneKwh": "stop",
          "uiActive": 60,
          "hundredDaysKwh": "get",
          "timeZone": -5,
          "demNextFetchTime": 1690347600000
        },
        "model": "S31TPB(US)",
        "online": true,
        "local": true,
        "localtype": "enhanced_plug",
        "host": "192.168.1.192:8081"
      },
      "10011f9864": {
        "uiid": 32,
        "params": {
          "bindInfos": "***",
          "version": 8,
          "only_device": {
            "ota": "success"
          },
          "sledOnline": "off",
          "ssid": "***",
          "bssid": "***",
          "fwVersion": "3.5.0",
          "staMac": "***",
          "rssi": -55,
          "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": "121.94",
          "current": "0.00",
          "oneKwh": "stop",
          "uiActive": 60,
          "hundredDaysKwh": "get",
          "timeZone": -5,
          "demNextFetchTime": 1690347600000
        },
        "model": "S31TPB(US)",
        "online": true,
        "local": true,
        "localtype": "enhanced_plug",
        "host": "192.168.1.187:8081"
      }
    }
  }
}
`

JSON file in config/.storage/sonoff:
`{
  "version": 1,
  "minor_version": 1,
  "key": "sonoff/********@gmail.com.json",
  "data": [
    {
      "name": "Family Room Christmas Tree ",
      "deviceid": "1001490f5f",
      "apikey": "ec4942c6-2ce4-4a96-9e05-9d2c6d72f3b9",
      "extra": {
        "uiid": 32,
        "description": "20210830018",
        "brandId": "5c4c1aee3a7d24c7100be054",
        "apmac": "d0:27:02:92:1c:0f",
        "mac": "d0:27:02:92:1c:0e",
        "ui": "功率检测插座过载告警",
        "modelInfo": "5c700f8dcc248c47441fd23a",
        "model": "PSC-B67-GL",
        "manufacturer": "深圳松诺技术有限公司",
        "chipid": "009F9340"
      },
      "brandName": "SONOFF",
      "brandLogo": "https://us-ota.coolkit.cc/logo/q62PevoglDNmwUJ9oPE7kRrpt1nL1CoA.png",
      "showBrand": true,
      "productModel": "S31TPB(US)",
      "tags": {
        "m_f3b9_dark": "on"
      },
      "devConfig": {
        "timerCount": "16/28"
      },
      "settings": {
        "opsNotify": 0,
        "opsHistory": 1,
        "alarmNotify": 1,
        "wxAlarmNotify": 0,
        "wxOpsNotify": 0,
        "wxDoorbellNotify": 0,
        "appDoorbellNotify": 1
      },
      "devGroups": [],
      "family": {
        "familyid": "607cb7b37b73b10008335034",
        "index": -5,
        "members": []
      },
      "shareTo": [],
      "devicekey": "f479e9d7-539b-442b-be99-284a8520f715",
      "online": false,
      "params": {
        "bindInfos": {},
        "version": 8,
        "demNextFetchTime": 1673067600000,
        "only_device": {
          "ota": "success"
        },
        "hundredDaysKwh": "get",
        "sledOnline": "on",
        "ssid": "********",
        "bssid": "d0:21:f9:dd:cb:16",
        "fwVersion": "3.5.0",
        "staMac": "E8:DB:84:9F:93:40",
        "rssi": -69,
        "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": "123.54",
        "current": "0.00",
        "oneKwh": "stop",
        "uiActive": 7200,
        "timeZone": -5
      },
      "isSupportGroup": false,
      "isSupportedOnMP": true,
      "isSupportChannelSplit": false,
      "deviceFeature": {}
    },
    {
      "name": "Microwave",
      "deviceid": "100149151d",
      "apikey": "ec4942c6-2ce4-4a96-9e05-9d2c6d72f3b9",
      "extra": {
        "uiid": 32,
        "description": "20210830018",
        "brandId": "5c4c1aee3a7d24c7100be054",
        "apmac": "d0:27:02:92:27:8b",
        "mac": "d0:27:02:92:27:8a",
        "ui": "功率检测插座过载告警",
        "modelInfo": "5c700f8dcc248c47441fd23a",
        "model": "PSC-B67-GL",
        "manufacturer": "深圳松诺技术有限公司",
        "chipid": "009F76A3",
        "staMac": "E8:DB:84:9F:76:A3"
      },
      "brandName": "SONOFF",
      "brandLogo": "https://us-ota.coolkit.cc/logo/q62PevoglDNmwUJ9oPE7kRrpt1nL1CoA.png",
      "showBrand": true,
      "productModel": "S31TPB(US)",
      "tags": {
        "m_f3b9_dark": "on"
      },
      "devConfig": {
        "timerCount": "16/28"
      },
      "settings": {
        "opsNotify": 0,
        "opsHistory": 1,
        "alarmNotify": 1,
        "wxAlarmNotify": 0,
        "wxOpsNotify": 0,
        "wxDoorbellNotify": 0,
        "appDoorbellNotify": 1
      },
      "devGroups": [],
      "family": {
        "familyid": "607cb7b37b73b10008335034",
        "index": -4,
        "members": []
      },
      "shareTo": [],
      "devicekey": "32a188c9-6d61-48e6-a0f9-23b29405e3f4",
      "online": true,
      "params": {
        "bindInfos": {},
        "version": 8,
        "only_device": {
          "ota": "success"
        },
        "sledOnline": "off",
        "ssid": "********",
        "bssid": "d0:21:f9:dd:cb:16",
        "fwVersion": "3.5.0",
        "staMac": "E8:DB:84:9F:76:A3",
        "rssi": -70,
        "init": 1,
        "alarmType": "pcv",
        "alarmVValue": [
          -1,
          -1
        ],
        "alarmCValue": [
          -1,
          -1
        ],
        "alarmPValue": [
          -1,
          -1
        ],
        "switch": "on",
        "startup": "off",
        "pulse": "off",
        "pulseWidth": 500,
        "power": "3.68",
        "voltage": "121.68",
        "current": "0.05",
        "oneKwh": "stop",
        "uiActive": 60,
        "timeZone": -5,
        "hundredDaysKwh": "get",
        "demNextFetchTime": 1690347600000
      },
      "isSupportGroup": false,
      "isSupportedOnMP": true,
      "isSupportChannelSplit": false,
      "deviceFeature": {}
    },
    {
      "name": "Washer",
      "deviceid": "10012aa056",
      "apikey": "ec4942c6-2ce4-4a96-9e05-9d2c6d72f3b9",
      "extra": {
        "uiid": 32,
        "description": "20210203006",
        "brandId": "5c4c1aee3a7d24c7100be054",
        "apmac": "d0:27:02:55:3d:fd",
        "mac": "d0:27:02:55:3d:fc",
        "ui": "功率检测插座过载告警",
        "modelInfo": "5c700f8dcc248c47441fd23a",
        "model": "PSC-B67-GL",
        "manufacturer": "深圳松诺技术有限公司",
        "chipid": "00A9755B",
        "staMac": "48:3F:DA:A9:75:5B"
      },
      "brandName": "SONOFF",
      "brandLogo": "https://us-ota.coolkit.cc/logo/q62PevoglDNmwUJ9oPE7kRrpt1nL1CoA.png",
      "showBrand": true,
      "productModel": "S31TPB(US)",
      "tags": {
        "m_f3b9_dark": "on"
      },
      "devConfig": {
        "timerCount": "16/28"
      },
      "settings": {
        "opsNotify": 0,
        "opsHistory": 1,
        "alarmNotify": 1,
        "wxAlarmNotify": 0,
        "wxOpsNotify": 0,
        "wxDoorbellNotify": 0,
        "appDoorbellNotify": 1
      },
      "devGroups": [],
      "family": {
        "familyid": "607cb7b37b73b10008335034",
        "index": -3,
        "members": []
      },
      "shareTo": [],
      "devicekey": "4abeafd9-1af2-4ad0-b128-0742fe96d26a",
      "online": true,
      "params": {
        "bindInfos": {},
        "version": 8,
        "only_device": {
          "ota": "success"
        },
        "sledOnline": "off",
        "ssid": "********",
        "bssid": "d0:21:f9:dd:cb:16",
        "fwVersion": "3.5.0",
        "staMac": "48:3F:DA:A9:75:5B",
        "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": "121.53",
        "current": "0.00",
        "oneKwh": "stop",
        "uiActive": 60,
        "timeZone": -5,
        "hundredDaysKwh": "get",
        "demNextFetchTime": 1690347600000
      },
      "isSupportGroup": false,
      "isSupportedOnMP": true,
      "isSupportChannelSplit": false,
      "deviceFeature": {}
    },
    {
      "name": "Family Room AV",
      "deviceid": "10012aa04a",
      "apikey": "ec4942c6-2ce4-4a96-9e05-9d2c6d72f3b9",
      "extra": {
        "uiid": 32,
        "description": "20210203006",
        "brandId": "5c4c1aee3a7d24c7100be054",
        "apmac": "d0:27:02:55:3d:e5",
        "mac": "d0:27:02:55:3d:e4",
        "ui": "功率检测插座过载告警",
        "modelInfo": "5c700f8dcc248c47441fd23a",
        "model": "PSC-B67-GL",
        "manufacturer": "深圳松诺技术有限公司",
        "chipid": "00F380A5",
        "staMac": "F4:CF:A2:F3:80:A5"
      },
      "brandName": "SONOFF",
      "brandLogo": "https://us-ota.coolkit.cc/logo/q62PevoglDNmwUJ9oPE7kRrpt1nL1CoA.png",
      "showBrand": true,
      "productModel": "S31TPB(US)",
      "tags": {
        "m_f3b9_dark": "on"
      },
      "devConfig": {
        "timerCount": "16/28"
      },
      "settings": {
        "opsNotify": 0,
        "opsHistory": 1,
        "alarmNotify": 1,
        "wxAlarmNotify": 0,
        "wxOpsNotify": 0,
        "wxDoorbellNotify": 0,
        "appDoorbellNotify": 1
      },
      "devGroups": [],
      "family": {
        "familyid": "607cb7b37b73b10008335034",
        "index": -2
      },
      "shareTo": [],
      "devicekey": "76991b10-09fb-4997-822e-5430515efc60",
      "online": true,
      "params": {
        "bindInfos": {},
        "version": 8,
        "only_device": {
          "ota": "success"
        },
        "sledOnline": "off",
        "ssid": "********",
        "bssid": "d0:21:f9:dd:cb:16",
        "fwVersion": "3.5.0",
        "staMac": "F4:CF:A2:F3:80:A5",
        "rssi": -60,
        "init": 1,
        "alarmType": "pcv",
        "alarmVValue": [
          -1,
          -1
        ],
        "alarmCValue": [
          -1,
          -1
        ],
        "alarmPValue": [
          -1,
          -1
        ],
        "switch": "off",
        "startup": "on",
        "pulse": "off",
        "pulseWidth": 500,
        "power": "0.00",
        "voltage": "121.07",
        "current": "0.00",
        "oneKwh": "stop",
        "uiActive": 60,
        "hundredDaysKwh": "get",
        "timeZone": -5,
        "demNextFetchTime": 1690347600000
      },
      "isSupportGroup": false,
      "isSupportedOnMP": true,
      "isSupportChannelSplit": false,
      "deviceFeature": {}
    },
    {
      "name": "Refrigerator ",
      "deviceid": "10011f93a2",
      "apikey": "ec4942c6-2ce4-4a96-9e05-9d2c6d72f3b9",
      "extra": {
        "uiid": 32,
        "description": "20201215015",
        "brandId": "5c4c1aee3a7d24c7100be054",
        "apmac": "d0:27:02:3f:24:95",
        "mac": "d0:27:02:3f:24:94",
        "ui": "功率检测插座过载告警",
        "modelInfo": "5c700f8dcc248c47441fd23a",
        "model": "PSC-B67-GL",
        "manufacturer": "深圳松诺技术有限公司",
        "chipid": "009E4E60",
        "staMac": "84:CC:A8:9E:4E:60"
      },
      "brandName": "SONOFF",
      "brandLogo": "https://us-ota.coolkit.cc/logo/q62PevoglDNmwUJ9oPE7kRrpt1nL1CoA.png",
      "showBrand": true,
      "productModel": "S31TPB(US)",
      "tags": {
        "m_f3b9_dark": "on"
      },
      "devConfig": {
        "timerCount": "16/28"
      },
      "settings": {
        "opsNotify": 0,
        "opsHistory": 1,
        "alarmNotify": 1,
        "wxAlarmNotify": 0,
        "wxOpsNotify": 0,
        "wxDoorbellNotify": 0,
        "appDoorbellNotify": 1
      },
      "devGroups": [],
      "family": {
        "familyid": "607cb7b37b73b10008335034",
        "index": -1
      },
      "shareTo": [],
      "devicekey": "c193cb2b-85f7-4dee-8138-a58d060dd89f",
      "online": true,
      "params": {
        "bindInfos": {},
        "version": 8,
        "only_device": {
          "ota": "success"
        },
        "sledOnline": "off",
        "ssid": "********",
        "bssid": "d0:21:f9:dd:cb:16",
        "fwVersion": "3.5.0",
        "staMac": "84:CC:A8:9E:4E:60",
        "rssi": -63,
        "init": 1,
        "alarmType": "pcv",
        "alarmVValue": [
          -1,
          -1
        ],
        "alarmCValue": [
          -1,
          -1
        ],
        "alarmPValue": [
          -1,
          -1
        ],
        "switch": "on",
        "startup": "on",
        "pulse": "off",
        "pulseWidth": 500,
        "power": "7.95",
        "voltage": "123.34",
        "current": "0.25",
        "oneKwh": "stop",
        "uiActive": 60,
        "hundredDaysKwh": "get",
        "timeZone": -5,
        "demNextFetchTime": 1690347600000
      },
      "isSupportGroup": false,
      "isSupportedOnMP": true,
      "isSupportChannelSplit": false,
      "deviceFeature": {}
    },
    {
      "name": "Treadmill ",
      "deviceid": "10011f9864",
      "apikey": "ec4942c6-2ce4-4a96-9e05-9d2c6d72f3b9",
      "extra": {
        "uiid": 32,
        "description": "20201215015",
        "brandId": "5c4c1aee3a7d24c7100be054",
        "apmac": "d0:27:02:3f:2e:19",
        "mac": "d0:27:02:3f:2e:18",
        "ui": "功率检测插座过载告警",
        "modelInfo": "5c700f8dcc248c47441fd23a",
        "model": "PSC-B67-GL",
        "manufacturer": "深圳松诺技术有限公司",
        "chipid": "009E4BB2",
        "staMac": "84:CC:A8:9E:4B:B2"
      },
      "brandName": "SONOFF",
      "brandLogo": "https://us-ota.coolkit.cc/logo/q62PevoglDNmwUJ9oPE7kRrpt1nL1CoA.png",
      "showBrand": true,
      "productModel": "S31TPB(US)",
      "tags": {
        "m_f3b9_dark": "on"
      },
      "devConfig": {
        "timerCount": "16/28"
      },
      "settings": {
        "opsNotify": 0,
        "opsHistory": 1,
        "alarmNotify": 1,
        "wxAlarmNotify": 0,
        "wxOpsNotify": 0,
        "wxDoorbellNotify": 0,
        "appDoorbellNotify": 1
      },
      "devGroups": [],
      "family": {
        "familyid": "607cb7b37b73b10008335034",
        "index": 0
      },
      "shareTo": [],
      "devicekey": "4d212c27-4365-4470-a72f-8494f7b962cb",
      "online": true,
      "params": {
        "bindInfos": {},
        "version": 8,
        "only_device": {
          "ota": "success"
        },
        "sledOnline": "off",
        "ssid": "********",
        "bssid": "00:00:00:00:00:00",
        "fwVersion": "3.5.0",
        "staMac": "84:CC:A8:9E:4B:B2",
        "rssi": -55,
        "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": "121.94",
        "current": "0.00",
        "oneKwh": "stop",
        "uiActive": 60,
        "hundredDaysKwh": "get",
        "timeZone": -5,
        "demNextFetchTime": 1690347600000
      },
      "isSupportGroup": false,
      "isSupportedOnMP": true,
      "isSupportChannelSplit": false,
      "deviceFeature": {}
    }
  ]
}
PiousJunkets commented 1 year ago

Finally get it back to work after these steps:

  1. Delete sonoff integration.
  2. Delete sonoff files in .storage folder.
  3. Add sonoff integration.
  4. Restart
gd5gd9394 commented 1 year ago

Finally get it back to work after these steps:

  1. Delete sonoff integration.
  2. Delete sonoff files in .storage folder.
  3. Add sonoff integration.
  4. Restart

Thanks! That works.

sascha432 commented 1 year ago

Check

https://github.com/AlexxIT/SonoffLAN/issues/1219#issuecomment-1732845101

The solution with the app was posted a couple times, but that is why the app causes trouble.

AlexxIT commented 9 months ago

Many models of Sonoff power devices DON'T send power by default. You need to ASK these devices to update the power. This can ONLY be done through a cloud-based request. The mobile app does it. And the integration does it. When you allow it.

@jkfranks9 you don't have cloud connection. So it's not surprising. @kvn-inbox same problem @JDJuergenD same @kingwap99 same

AlexxIT commented 9 months ago

@MikeTe some problem with WiFi

jlopez77 commented 9 months ago

For whatever reason, sometimes the SonOFF cloud refuses to accept the connections from the integration. This was the problem when I commented this thread. Some time later, everything went back to normal.

El mié, 14 feb 2024 a las 15:39, Alex X @.***>) escribió:

@MikeTe https://github.com/MikeTe some problem with WiFi

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

AlexxIT commented 9 months ago

Well. I still haven't received a diagnosis from the author of the issue. SPM devices must support local data update. For your information:

https://github.com/AlexxIT/SonoffLAN/blob/dc4291abb295dd088fa4c07ee37a7dafddba5a5f/custom_components/sonoff/core/ewelink/__init__.py#L322-L343