Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Sonoff Sensors do not update in home asisitant. #1509

Open
basakmurat2005 opened this issue Oct 19, 2024 · 114 comments
Open

Sonoff Sensors do not update in home asisitant. #1509

basakmurat2005 opened this issue Oct 19, 2024 · 114 comments
Labels
bug Something isn't working

Comments

@basakmurat2005
Copy link

basakmurat2005 commented Oct 19, 2024

Hello, for the last two days my SONOFF sensors have been staying in their last state after starting homeassistance. If they sensed something, it seemed like they continued to sense it. This situation improves after starting homeassistance, but it remains the same afterwards. But in the logbook it works great. but the automations are not working.

Ekran Resmi 2024-10-19 14 01 16
Logbook

Log.pdf

@barisonal
Copy link

Yes, it’s the same here. When I restart the integration, it starts working again but stops after a while.

@barisonal
Copy link

By the way, I have switched to the eWeLink (Original) Add-on instead of Sonoff for now, but I prefer to use the Sonoff integration. I will be following this issue up and switching back to Sonoff when the problem is solved.

@basakmurat2005
Copy link
Author

By the way, I have switched to the eWeLink (Original) Add-on instead of Sonoff for now, but I prefer to use the Sonoff integration. I will be following this issue up and switching back to Sonoff when the problem is solved.

şu an çalışıyor mu sizin ki

@barisonal
Copy link

By the way, I have switched to the eWeLink (Original) Add-on instead of Sonoff for now, but I prefer to use the Sonoff integration. I will be following this issue up and switching back to Sonoff when the problem is solved.

şu an çalışıyor mu sizin ki

TR: Dediğim gibi, Sonoff yerine eWeLink Add-on kurarak çalıştırdım ama her restartta tüm sensörlerin state'leri değişiyor, eğer otomasyon kurduysanız hepsi tetikleniyor. Şimdilik işimi görüyor ama Sonoff kullanmayı tercih ederim.

EN: As I said, I started using the eWeLink Add-on, and it works, but not well. All the sensors’ states are triggered after each restart, and the automations are run. I prefer to use the Sonoff integration.

@basakmurat2005
Copy link
Author

basakmurat2005 commented Oct 19, 2024

Ekran Resmi 2024-10-19 14 46 26
Ekran Resmi 2024-10-19 14 46 40

Now I changed the configuration to cloud. (It was at AUTO). Now everything is working

@indhran-mahathevan
Copy link

Yes, it’s the same here. When I restart the integration, it starts working again but stops after a while.

I have the same issue. Setting it cloud didn't help.. reverts to stagnant state after sometime

@AlexxIT AlexxIT added the question Further information is requested label Oct 19, 2024
@AlexxIT
Copy link
Owner

AlexxIT commented Oct 19, 2024

@basakmurat2005
Copy link
Author

https://github.com/AlexxIT/SonoffLAN?tab=readme-ov-file#issues

could you please tell us what to do?

@iridyum
Copy link

iridyum commented Oct 20, 2024

I've been experiencing the same issue for the past two days. Despite trying several solutions, including completely removing and reinstalling the integration, the problem persists. I even attempted the following YAML automation to force an update of the values, but without success.

- id: 'sonoff_temperature_forced_update'
  alias: Sonoff Temperature Forced Update
  trigger:
    - platform: time_pattern
      minutes: '/1'
      seconds: 30
  action:
    - service: homeassistant.update_entity
      target:
        entity_id: sensor.sonoff_a4b001333f_temperature

Here is my diagnostics:

{
  "home_assistant": {
    "installation_type": "Home Assistant Supervised",
    "version": "2024.10.3",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.12.4",
    "docker": true,
    "arch": "x86_64",
    "timezone": "Europe/Istanbul",
    "os_name": "Linux",
    "os_version": "6.1.0-25-amd64",
    "supervisor": "2024.10.2",
    "host_os": "Debian GNU/Linux 12 (bookworm)",
    "docker_version": "27.3.1",
    "chassis": "laptop",
    "run_as_root": true
  },
  "custom_components": {
    "openrgb": {
      "documentation": "https://github.com/koying/openrgb_ha",
      "version": "2.3",
      "requirements": [
        "openrgb-python==0.2.10"
      ]
    },
    "smart_thermostat": {
      "documentation": "https://github.com/ScratMan/HASmartThermostat",
      "version": "2024.6.1",
      "requirements": []
    },
    "virtual": {
      "documentation": "https://github.com/twrecked/hass-virtual/blob/master/README.md",
      "version": "0.8.0.1",
      "requirements": []
    },
    "versatile_thermostat": {
      "documentation": "https://github.com/jmcollin78/versatile_thermostat",
      "version": "6.3.0",
      "requirements": []
    },
    "xiaomi_miot": {
      "documentation": "https://github.com/al-one/hass-xiaomi-miot",
      "version": "0.7.20",
      "requirements": [
        "construct>=2.10.68",
        "python-miio>=0.5.12",
        "micloud>=0.5"
      ]
    },
    "dwd": {
      "documentation": "https://github.com/hg1337/homeassistant-dwd#readme",
      "version": "2024.9.0",
      "requirements": [
        "defusedxml==0.7.1"
      ]
    },
    "hacs": {
      "documentation": "https://hacs.xyz/docs/configuration/start",
      "version": "2.0.1",
      "requirements": [
        "aiogithubapi>=22.10.1"
      ]
    },
    "zenggemesh": {
      "documentation": "https://github.com/SleepyNinja0o/home-assistant-zengge",
      "version": "0.1.1",
      "requirements": [
        "pycryptodome>=3.17",
        "cryptography"
      ]
    },
    "dreame_vacuum": {
      "documentation": "https://github.com/Tasshack/dreame-vacuum",
      "version": "v1.0.4",
      "requirements": [
        "pillow",
        "numpy",
        "pybase64",
        "requests",
        "pycryptodome",
        "python-miio",
        "py-mini-racer",
        "tzlocal",
        "paho-mqtt"
      ]
    },
    "sonoff": {
      "documentation": "https://github.com/AlexxIT/SonoffLAN",
      "version": "3.8.1",
      "requirements": [
        "pycryptodome>=3.6.6"
      ]
    },
    "apparent_temperature": {
      "documentation": "https://github.com/Limych/ha-apparent-temperature",
      "version": "1.1.1",
      "requirements": [
        "pip>=21.3.1"
      ]
    }
  },
  "integration_manifest": {
    "domain": "sonoff",
    "name": "Sonoff",
    "codeowners": [
      "AlexxIT"
    ],
    "config_flow": true,
    "dependencies": [
      "http",
      "zeroconf"
    ],
    "documentation": "https://github.com/AlexxIT/SonoffLAN",
    "iot_class": "local_push",
    "issue_tracker": "https://github.com/AlexxIT/SonoffLAN/issues",
    "requirements": [
      "pycryptodome>=3.6.6"
    ],
    "version": "3.8.1",
    "is_built_in": false
  },
  "setup_times": {
    "null": {
      "setup": 0.00011195382103323936
    },
    "01JAK1TRYW3G9V720EF2TPGQ6G": {
      "wait_import_platforms": -9.721401147544384e-05,
      "wait_base_component": -0.005892415996640921,
      "config_entry_setup": 7.056326744845137
    }
  },
  "data": {
    "version": "ffa7e22",
    "cloud_auth": true,
    "config": {
      "username": "***",
      "password": "***",
      "force_update": [
        "power",
        "temperature",
        "humidity",
        "motion",
        "sensor",
        "switch"
      ],
      "scan_interval": "00:00:30"
    },
    "options": {
      "mode": "cloud",
      "debug": false
    },
    "errors": [],
    "devices": {
      "ac0c00149d": {
        "uiid": 20008,
        "params": {
          "bindInfos": "***",
          "uniqueID": "2ebb4b368e104db405cbfaec7c7de961",
          "parentid": "abfc0009b5",
          "switch": "off"
        },
        "model": "NON-OTA-GL(20008)",
        "online": true,
        "local": null,
        "localtype": null,
        "host": null
      },
      "ac0c00149c": {
        "uiid": 20008,
        "params": {
          "bindInfos": "***",
          "uniqueID": "215a6d7ab4df8fee0fc5fd080406ea8b",
          "parentid": "abfc0009b5",
          "switch": "off",
          "colorMode": "cct",
          "cctBrightness": 31,
          "colorTemp": 37
        },
        "model": "NON-OTA-GL(20008)",
        "online": true,
        "local": null,
        "localtype": null,
        "host": null
      },
      "abfc0009b5": {
        "uiid": 20000,
        "params": {
          "partnerDevice": {
            "ezVedioSerial": "9594dd4b-bede-4d13-8a9b-907eb65d6367"
          },
          "subDevices": [
            {
              "deviceid": "ac0c00149c"
            },
            {
              "deviceid": "ac0c00149d"
            }
          ]
        },
        "model": "NON-OTA-GL(20000)",
        "online": false,
        "local": null,
        "localtype": null,
        "host": null
      },
      "a4b001710c": {
        "uiid": 3026,
        "params": {
          "bindInfos": "***",
          "subDevId": "a633a12f004b12003026",
          "parentid": "10020bb3c0",
          "battery": 100,
          "trigTime": "1727643153000",
          "supportPowConfig": 1,
          "lock": 0,
          "subDevRssiSetting": {
            "active": 60,
            "duration": 5
          },
          "subDevRssi": -56
        },
        "model": "ZIGBEE_DOOR_AND_WINDOW_SENSOR",
        "online": false,
        "local": null,
        "localtype": null,
        "host": null
      },
      "10020bb3c0": {
        "uiid": 168,
        "params": {
          "bindInfos": "***",
          "version": 8,
          "sledOnline": "on",
          "staMac": "***",
          "rssi": -29,
          "zled": "on",
          "buzzerAlarm": {
            "mode": "stop"
          },
          "hostVersion": "2.0.0",
          "coordinatorVersion": "2.7.19",
          "subDevMaxNum": 128,
          "currentChannel": 11,
          "fwVersion": "2.0.0",
          "subDevices": [
            {
              "subDevId": "a633a12f004b12003026",
              "deviceid": "a4b001710c",
              "uiid": "3026",
              "index": 0
            }
          ],
          "timeZone": 3,
          "addSubDevState": "off",
          "addDevTime": 180,
          "localScenesLists": [],
          "localScenesTimeStamp": "1728409072488",
          "localScenes_0": {
            "action": "del"
          },
          "localScenes_1": {
            "action": "del"
          },
          "localScenes_2": {
            "action": "del"
          },
          "only_device": {
            "ota": "success",
            "ota_fail_reason": 0
          },
          "resetCode": 1,
          "directDevNum": 1,
          "routerDevNum": 1,
          "nvPanID": 41418,
          "panID": 41418
        },
        "model": "ZBBridge-P",
        "online": true,
        "local": null,
        "localtype": null,
        "host": null
      },
      "100166b425": {
        "uiid": 14,
        "params": {
          "bindInfos": "***",
          "version": 8,
          "only_device": {
            "ota": "success"
          },
          "sledOnline": "on",
          "ssid": "***",
          "bssid": "***",
          "switch": "off",
          "fwVersion": "3.5.1",
          "rssi": -58,
          "staMac": "***",
          "startup": "off",
          "init": 1,
          "pulse": "off",
          "pulseWidth": 500
        },
        "model": "SV",
        "online": false,
        "local": null,
        "localtype": null,
        "host": null
      },
      "a4b0016c4b": {
        "uiid": 7004,
        "params": {
          "bindInfos": "***",
          "subDevId": "57300ffefff410347004",
          "parentid": "10020bb138",
          "fwVersion": "1.0.14",
          "switch": "off",
          "subDevRssi": -62,
          "subDevRssiSetting": {
            "active": 60,
            "duration": 5
          }
        },
        "model": "ZBMINIL2",
        "online": true,
        "local": null,
        "localtype": null,
        "host": null
      },
      "a4b0016c30": {
        "uiid": 2026,
        "params": {
          "bindInfos": "***",
          "subDevId": "8a6ca32f004b12002026",
          "parentid": "10020bb138",
          "subDevRssi": -75,
          "battery": 100,
          "trigTime": "1729372659000",
          "supportPowConfig": 1,
          "motion": 0,
          "subDevRssiSetting": {
            "active": 60,
            "duration": 5
          }
        },
        "model": "ZIGBEE_MOBILE_SENSOR",
        "online": true,
        "local": null,
        "localtype": null,
        "host": null
      },
      "a4b0013346": {
        "uiid": 3026,
        "params": {
          "bindInfos": "***",
          "subDevId": "f90d3329004b12003026",
          "parentid": "10020bb138",
          "subDevRssi": 127,
          "battery": 100,
          "trigTime": "1729341312000",
          "supportPowConfig": 1,
          "lock": 0,
          "subDevRssiSetting": {
            "active": 60,
            "duration": 5
          }
        },
        "model": "ZIGBEE_DOOR_AND_WINDOW_SENSOR",
        "online": true,
        "local": null,
        "localtype": null,
        "host": null
      },
      "a4b001333f": {
        "uiid": 7014,
        "params": {
          "bindInfos": "***",
          "subDevId": "047535feff1227847014",
          "parentid": "10020bb138",
          "timeZone": 3,
          "battery": 100,
          "trigTime": "1729372131000",
          "supportPowConfig": 1,
          "temperature": "2400",
          "tempComfortStatus": 0,
          "fwVersion": "1.0.9",
          "humidity": "5000",
          "humiComfortStatus": 0,
          "subDevRssi": -59,
          "tempUnit": 0,
          "tempComfortLower": "1900",
          "tempComfortUpper": "2700",
          "humiComfortLower": "4000",
          "humiComfortUpper": "6000",
          "subDevRssiSetting": {
            "active": 60,
            "duration": 5
          }
        },
        "model": "SNZB-02D",
        "online": true,
        "local": null,
        "localtype": null,
        "host": null
      },
      "100166bb64": {
        "uiid": 14,
        "params": {
          "bindInfos": "***",
          "version": 8,
          "only_device": {
            "ota": "success"
          },
          "sledOnline": "on",
          "ssid": "***",
          "bssid": "***",
          "switch": "off",
          "fwVersion": "3.7.6",
          "rssi": -57,
          "staMac": "***",
          "startup": "off",
          "init": 1,
          "pulse": "off",
          "pulseWidth": 500,
          "rstReason": 0,
          "exccause": 0,
          "epc1": 0,
          "epc2": 0,
          "epc3": 0,
          "excvaddr": 0,
          "depc": 0,
          "longOffline": 1
        },
        "model": "SV",
        "online": true,
        "local": null,
        "localtype": null,
        "host": null
      },
      "10020bb138": {
        "uiid": 168,
        "params": {
          "bindInfos": "***",
          "version": 8,
          "sledOnline": "on",
          "staMac": "***",
          "rssi": -58,
          "zled": "on",
          "buzzerAlarm": {
            "mode": "stop"
          },
          "hostVersion": "2.1.0",
          "coordinatorVersion": "2.7.19",
          "subDevMaxNum": 128,
          "currentChannel": 20,
          "fwVersion": "2.1.0",
          "subDevices": [
            {
              "subDevId": "047535feff1227847014",
              "deviceid": "a4b001333f",
              "uiid": "7014",
              "index": 0
            },
            {
              "subDevId": "f90d3329004b12003026",
              "deviceid": "a4b0013346",
              "uiid": "3026",
              "index": 0
            },
            {
              "subDevId": "8a6ca32f004b12002026",
              "deviceid": "a4b0016c30",
              "uiid": "2026",
              "index": 0
            },
            {
              "subDevId": "57300ffefff410347004",
              "deviceid": "a4b0016c4b",
              "uiid": "7004",
              "index": 0
            }
          ],
          "timeZone": 3,
          "addSubDevState": "off",
          "addDevTime": 180,
          "localScenesLists": [
            "localScenes_0",
            "localScenes_1"
          ],
          "localScenesTimeStamp": "1726959600647",
          "localScenes_0": {
            "sceneId": "65f395d08a71805079bb36c7",
            "action": "add",
            "operations": [
              {
                "buzzerAlarm": {
                  "test": false,
                  "mode": "keep",
                  "volume": 100,
                  "duration": 300
                },
                "deviceid": "10020bb138"
              },
              {
                "deviceid": "a4b0016c4b",
                "switch": "on"
              }
            ],
            "triggers": [
              {
                "deviceid": "a4b0013346",
                "lock": 1
              }
            ],
            "effectSection": {
              "days": [
                0,
                1,
                2,
                3,
                4
              ],
              "from": "23:00",
              "to": "03:30"
            },
            "triggersRelation": "or"
          },
          "localScenes_1": {
            "sceneId": "66e61077c0de4243ce933d73",
            "action": "add",
            "operations": [
              {
                "buzzerAlarm": {
                  "test": false,
                  "mode": "keep",
                  "volume": 100,
                  "duration": 300
                },
                "deviceid": "10020bb138"
              },
              {
                "deviceid": "a4b0016c4b",
                "switch": "on"
              }
            ],
            "triggers": [
              {
                "deviceid": "a4b0013346",
                "lock": 1
              }
            ],
            "effectSection": {
              "days": [
                5,
                6
              ],
              "from": "23:00",
              "to": "05:30"
            },
            "triggersRelation": "or"
          },
          "localScenes_2": {
            "action": "del"
          },
          "only_device": {
            "ota": "success",
            "ota_fail_reason": 0
          },
          "cmd": "getChannelInfo",
          "resetCode": 3,
          "directDevNum": 4,
          "routerDevNum": 1,
          "nvPanID": 50816,
          "panID": 50816,
          "localScenes_3": {
            "action": "del"
          },
          "gatewayBindRelations": [],
          "ssid": "***",
          "bssid": "***"
        },
        "model": "ZBBridge-P",
        "online": true,
        "local": null,
        "localtype": null,
        "host": null
      }
    }
  }
}
{
  "home_assistant": {
    "installation_type": "Home Assistant Supervised",
    "version": "2024.10.3",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.12.4",
    "docker": true,
    "arch": "x86_64",
    "timezone": "Europe/Istanbul",
    "os_name": "Linux",
    "os_version": "6.1.0-25-amd64",
    "supervisor": "2024.10.2",
    "host_os": "Debian GNU/Linux 12 (bookworm)",
    "docker_version": "27.3.1",
    "chassis": "laptop",
    "run_as_root": true
  },
  "custom_components": {
    "openrgb": {
      "documentation": "https://github.com/koying/openrgb_ha",
      "version": "2.3",
      "requirements": [
        "openrgb-python==0.2.10"
      ]
    },
    "smart_thermostat": {
      "documentation": "https://github.com/ScratMan/HASmartThermostat",
      "version": "2024.6.1",
      "requirements": []
    },
    "virtual": {
      "documentation": "https://github.com/twrecked/hass-virtual/blob/master/README.md",
      "version": "0.8.0.1",
      "requirements": []
    },
    "versatile_thermostat": {
      "documentation": "https://github.com/jmcollin78/versatile_thermostat",
      "version": "6.3.0",
      "requirements": []
    },
    "xiaomi_miot": {
      "documentation": "https://github.com/al-one/hass-xiaomi-miot",
      "version": "0.7.20",
      "requirements": [
        "construct>=2.10.68",
        "python-miio>=0.5.12",
        "micloud>=0.5"
      ]
    },
    "dwd": {
      "documentation": "https://github.com/hg1337/homeassistant-dwd#readme",
      "version": "2024.9.0",
      "requirements": [
        "defusedxml==0.7.1"
      ]
    },
    "hacs": {
      "documentation": "https://hacs.xyz/docs/configuration/start",
      "version": "2.0.1",
      "requirements": [
        "aiogithubapi>=22.10.1"
      ]
    },
    "zenggemesh": {
      "documentation": "https://github.com/SleepyNinja0o/home-assistant-zengge",
      "version": "0.1.1",
      "requirements": [
        "pycryptodome>=3.17",
        "cryptography"
      ]
    },
    "dreame_vacuum": {
      "documentation": "https://github.com/Tasshack/dreame-vacuum",
      "version": "v1.0.4",
      "requirements": [
        "pillow",
        "numpy",
        "pybase64",
        "requests",
        "pycryptodome",
        "python-miio",
        "py-mini-racer",
        "tzlocal",
        "paho-mqtt"
      ]
    },
    "sonoff": {
      "documentation": "https://github.com/AlexxIT/SonoffLAN",
      "version": "3.8.1",
      "requirements": [
        "pycryptodome>=3.6.6"
      ]
    },
    "apparent_temperature": {
      "documentation": "https://github.com/Limych/ha-apparent-temperature",
      "version": "1.1.1",
      "requirements": [
        "pip>=21.3.1"
      ]
    }
  },
  "integration_manifest": {
    "domain": "sonoff",
    "name": "Sonoff",
    "codeowners": [
      "AlexxIT"
    ],
    "config_flow": true,
    "dependencies": [
      "http",
      "zeroconf"
    ],
    "documentation": "https://github.com/AlexxIT/SonoffLAN",
    "iot_class": "local_push",
    "issue_tracker": "https://github.com/AlexxIT/SonoffLAN/issues",
    "requirements": [
      "pycryptodome>=3.6.6"
    ],
    "version": "3.8.1",
    "is_built_in": false
  },
  "setup_times": {
    "null": {
      "setup": 0.00011195382103323936
    },
    "01JAK1TRYW3G9V720EF2TPGQ6G": {
      "wait_import_platforms": -9.721401147544384e-05,
      "wait_base_component": -0.005892415996640921,
      "config_entry_setup": 7.056326744845137
    }
  },
  "data": {
    "version": "ffa7e22",
    "cloud_auth": true,
    "config": {
      "username": "***",
      "password": "***",
      "force_update": [
        "power",
        "temperature",
        "humidity",
        "motion",
        "sensor",
        "switch"
      ],
      "scan_interval": "00:00:30"
    },
    "options": {
      "mode": "cloud",
      "debug": false
    },
    "errors": [],
    "device": {
      "uiid": 7014,
      "params": {
        "bindInfos": "***",
        "subDevId": "047535feff1227847014",
        "parentid": "10020bb138",
        "timeZone": 3,
        "battery": 100,
        "trigTime": "1729372131000",
        "supportPowConfig": 1,
        "temperature": "2400",
        "tempComfortStatus": 0,
        "fwVersion": "1.0.9",
        "humidity": "5000",
        "humiComfortStatus": 0,
        "subDevRssi": -59,
        "tempUnit": 0,
        "tempComfortLower": "1900",
        "tempComfortUpper": "2700",
        "humiComfortLower": "4000",
        "humiComfortUpper": "6000",
        "subDevRssiSetting": {
          "active": 60,
          "duration": 5
        }
      },
      "model": "SNZB-02D",
      "online": true,
      "local": null,
      "localtype": null,
      "host": null,
      "deviceid": "a4b001333f"
    }
  }
}

@msameeh
Copy link

msameeh commented Oct 20, 2024

Same issue, haven't been able to figure out anything specific from the logs. Even with debugging mode. Also switching cloud/local only doesn't help!

@EboBH83
Copy link

EboBH83 commented Oct 20, 2024

Same scenario. Cloud mode only fixes it for a short while.
Thanks for your effort @AlexxIT

@AlexxIT
Copy link
Owner

AlexxIT commented Oct 20, 2024

@basakmurat2005 @iridyum I don't see anything important in your info. You need to turn on the debug logs and examine them.

@iridyum
Copy link

iridyum commented Oct 20, 2024

@AlexxIT After disabling and re-enabling the integration, all sensors are updated. However, no further updates occur until the integration is restarted again. The eWeLink app itself works without any issues.

The motion sensor functions for 2-3 minutes after each restart.

I have enabled debugging, and here are the log entries containing the "sonoff" keyword:

2024-10-20 19:21:35.793 DEBUG (MainThread) [custom_components.sonoff.core.ewelink.cloud] CLOUD change state old=True, new=None
2024-10-20 19:25:26.512 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] a4b0013346 <= Cloud3 | {'battery': 100, 'trigTime': '1729424108000', 'supportPowConfig': 1} | None
2024-10-20 19:25:55.660 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] 10020bb138 <= Cloud3 | {'gatewayBindRelations': []} | None
2024-10-20 19:27:01.615 DEBUG (MainThread) [custom_components.sonoff.core.ewelink.cloud] CLOUD change state old=True, new=True

One thing I’ve noticed is that many people experiencing this particular issue are from Turkey, myself included. It might be related to eWeLink’s regional settings or server configurations.

@AlexxIT
Copy link
Owner

AlexxIT commented Oct 20, 2024

Let's collect the model identifiers that works and that don't works.
Looks like this issue similar to #1510

  • UIID 0174 Sonoff R5 (6-key remote) - works fine (bluetooth device)
  • UIID 7002 SNZB-03P - don't (zigbee device)

What about if you downgrade to v3.8.0?

@AlexxIT AlexxIT added bug Something isn't working and removed question Further information is requested labels Oct 20, 2024
@EboBH83
Copy link

EboBH83 commented Oct 20, 2024

What about if you downgrade to v3.8.0?
Tried it just now to no avail.

@AlexxIT
Copy link
Owner

AlexxIT commented Oct 20, 2024

It's important to get feedback (about v3.8.0) from other users as well.

Unfortunately, I only use simple WiFi relays from Sonoff. Can't test the problem myself.

@iridyum
Copy link

iridyum commented Oct 20, 2024

v3.8.0

Let's collect the model identifiers that works and that don't works. Looks like this issue similar to #1510

  • UIID 0174 Sonoff R5 (6-key remote) - works fine (bluetooth device)
  • UIID 7002 SNZB-03P - don't (zigbee device)

What about if you downgrade to v3.8.0?

Unfortunately, downgrading to v3.8.0 doesn't make any difference for me either.

@AlexxIT
Copy link
Owner

AlexxIT commented Oct 20, 2024

Looks like something has been changed in the cloud.

@ademalidurmus
Copy link

I have some sonoff devices and they are not updating on HA. I'm restarting ever hour the sonoff integration to resolve this problem temporary

@Softwaremaker
Copy link

Softwaremaker commented Oct 20, 2024

One thing I’ve noticed is that many people experiencing this particular issue are from Turkey, myself included. It might be related to eWeLink’s regional settings or server configurations.

Not true. From Singapore.
Different country. Same problem :(

Oh BTW, I am on v3.4.0 and it is the same so I think v3.8.0 will not work either.

@msameeh
Copy link

msameeh commented Oct 21, 2024

Here are sonoff debug logs for my devices. Seems like cloud is returning "None" state after some time. Do note that I even reloaded the add-on several times, which fixes the issue for a brief period.

2024-10-20 20:17:13.568 DEBUG (MainThread) [custom_components.sonoff.core.ewelink.cloud] CLOUD change state old=True, new=None
2024-10-20 20:17:14.080 DEBUG (MainThread) [custom_components.sonoff] 10 devices loaded from Cloud
2024-10-20 20:17:14.089 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] 10012cd3c0 UIID 0102 | {'bindInfos': {'alexa': ['540347d3-23fd-4fff-bab0-f67531ec981a_26ca1996a20e8bd63617ab272d4eeede1d2d8e32']}, 'switch': 'off', 'battery': 2.804, 'fwVersion': '1000.2.925', 'type': 4, 'chipID': 'd0270259a4d0', 'mac': 'd0270259a4d0', 'rssi': -79, 'lastUpdateTime': '2024-10-20T15:11:12.386Z', 'actionTime': '2024-10-20T14:59:29.365Z'}
2024-10-20 20:17:14.090 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] a4b00177cb UIID 7004 | {'bindInfos': {'alexa': ['540347d3-23fd-4fff-bab0-f67531ec981a_26ca1996a20e8bd63617ab272d4eeede1d2d8e32']}, 'subDevId': '2af709feffb6c67c7004', 'parentid': '10022be679', 'fwVersion': '1.0.14', 'subDevRssi': -74, 'switch': 'off', 'subDevRssiSetting': {'active': 60, 'duration': 5}}
2024-10-20 20:17:14.092 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] a4b00177be UIID 7004 | {'bindInfos': {'alexa': ['540347d3-23fd-4fff-bab0-f67531ec981a_26ca1996a20e8bd63617ab272d4eeede1d2d8e32']}, 'subDevId': '864a1bfeffa7db287004', 'parentid': '10022be679', 'fwVersion': '1.0.14', 'switch': 'on', 'subDevRssi': -69, 'subDevRssiSetting': {'active': 60, 'duration': 5}}
2024-10-20 20:17:14.093 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] a4b00177a5 UIID 7004 | {'bindInfos': {'alexa': ['540347d3-23fd-4fff-bab0-f67531ec981a_26ca1996a20e8bd63617ab272d4eeede1d2d8e32']}, 'subDevId': 'd060e9feffdec7b07004', 'parentid': '10022be679', 'fwVersion': '1.0.14', 'switch': 'off', 'subDevRssi': -64, 'subDevRssiSetting': {'active': 60, 'duration': 5}}
2024-10-20 20:17:14.094 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] a4b00177a1 UIID 7004 | {'bindInfos': {'alexa': ['540347d3-23fd-4fff-bab0-f67531ec981a_26ca1996a20e8bd63617ab272d4eeede1d2d8e32']}, 'subDevId': '6bb00afeffb6c67c7004', 'parentid': '10022be679', 'fwVersion': '1.0.14', 'switch': 'off', 'subDevRssi': -74, 'subDevRssiSetting': {'active': 60, 'duration': 5}}
2024-10-20 20:17:14.095 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] a4b0017671 UIID 2026 | {'bindInfos': {'alexa': ['540347d3-23fd-4fff-bab0-f67531ec981a_26ca1996a20e8bd63617ab272d4eeede1d2d8e32']}, 'subDevId': '56bbaa2f004b12002026', 'parentid': '10022be679', 'subDevRssi': -70, 'battery': 100, 'trigTime': '1729435128000', 'supportPowConfig': 1, 'motion': 0, 'subDevRssiSetting': {'active': 60, 'duration': 5}}
2024-10-20 20:17:14.097 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] a4b001766e UIID 7004 | {'bindInfos': {'alexa': ['540347d3-23fd-4fff-bab0-f67531ec981a_26ca1996a20e8bd63617ab272d4eeede1d2d8e32']}, 'subDevId': 'b4b2b8fefff6ef0c7004', 'parentid': '10022be679', 'fwVersion': '1.0.14', 'subDevRssi': -81, 'switch': 'on', 'subDevRssiSetting': {'active': 60, 'duration': 5}}
2024-10-20 20:17:14.098 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] a4b0017548 UIID 7014 | {'bindInfos': {'alexa': ['540347d3-23fd-4fff-bab0-f67531ec981a_26ca1996a20e8bd63617ab272d4eeede1d2d8e32']}, 'subDevId': 'cb82d9feff5fae0c7014', 'parentid': '10022be679', 'fwVersion': '2.1.0', 'battery': 100, 'trigTime': '1729437429000', 'supportPowConfig': 1, 'subDevRssi': -65, 'tempUnit': 0, 'tempComfortLower': '1900', 'tempComfortUpper': '2700', 'humiComfortLower': '4000', 'humiComfortUpper': '6000', 'temperature': '2990', 'tempComfortStatus': 2, 'timeZone': 5, 'humidity': '7320', 'humiComfortStatus': 2, 'subDevRssiSetting': {'active': 60, 'duration': 5}, 'key': 0}
2024-10-20 20:17:14.099 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] 10022be679 UIID 0168 | {'bindInfos': {'alexa': ['540347d3-23fd-4fff-bab0-f67531ec981a_26ca1996a20e8bd63617ab272d4eeede1d2d8e32']}, 'version': 8, 'sledOnline': 'on', 'staMac': 'C82E18572150', 'rssi': -7, 'zled': 'on', 'buzzerAlarm': {'mode': 'stop'}, 'hostVersion': '2.1.0', 'coordinatorVersion': '2.7.19', 'subDevMaxNum': 128, 'currentChannel': 11, 'fwVersion': '2.1.0', 'subDevices': [{'subDevId': 'cb82d9feff5fae0c7014', 'deviceid': 'a4b0017548', 'uiid': '7014', 'index': 0}, {'subDevId': 'b4b2b8fefff6ef0c7004', 'deviceid': 'a4b001766e', 'uiid': '7004', 'index': 0}, {'subDevId': '56bbaa2f004b12002026', 'deviceid': 'a4b0017671', 'uiid': '2026', 'index': 0}, {'subDevId': '6bb00afeffb6c67c7004', 'deviceid': 'a4b00177a1', 'uiid': '7004', 'index': 0}, {'subDevId': 'd060e9feffdec7b07004', 'deviceid': 'a4b00177a5', 'uiid': '7004', 'index': 0}, {'subDevId': '864a1bfeffa7db287004', 'deviceid': 'a4b00177be', 'uiid': '7004', 'index': 0}, {'subDevId': '2af709feffb6c67c7004', 'deviceid': 'a4b00177cb', 'uiid': '7004', 'index': 0}], 'timeZone': 5, 'only_device': {'ota': 'success', 'ota_fail_reason': 0}, 'resetCode': 1, 'cmd': 'getChannelInfo', 'panID': 26604, 'directDevNum': 6, 'routerDevNum': 1, 'addSubDevState': 'off', 'addDevTime': 180, 'nvPanID': 26604, 'gatewayBindRelations': [], 'ssid': 'Protium_IoT', 'bssid': '2A:23:51:6E:12:35'}
2024-10-20 20:17:14.101 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] 10012bb173 UIID 0104 | {'bindInfos': {'alexa': ['540347d3-23fd-4fff-bab0-f67531ec981a_26ca1996a20e8bd63617ab272d4eeede1d2d8e32']}, 'version': 7, 'switch': 'off', 'ltype': 'white', 'white': {'br': 2, 'ct': 0}, 'fwVersion': '1.3.5', 'sequence': '123456789', 'selfApikey': ''}
2024-10-20 20:17:14.103 DEBUG (MainThread) [custom_components.sonoff] AUTO mode start
2024-10-20 20:17:14.271 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] 10022be679 <= Local3 | 192.168.68.69:8081 | {'sledOnline': 'on', 'staMac': 'C82E18572150', 'rssi': -62} | 1
2024-10-20 20:17:14.273 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] 10022be679 <= Local3 | 192.168.68.69:8081 | {'sledOnline': 'on', 'staMac': 'C82E18572150', 'rssi': -62} | 1
2024-10-20 20:17:15.179 DEBUG (MainThread) [custom_components.sonoff.core.ewelink.cloud] CLOUD change state old=None, new=True
2024-10-20 20:17:15.180 DEBUG (MainThread) [custom_components.sonoff] Add 21 entities
2024-10-20 20:18:15.364 DEBUG (MainThread) [custom_components.sonoff.core.ewelink.local] 10022be679 => Local4 | 192.168.68.69:8081 | {'switch': 'off', 'subDevId': 'a4b001766e'} <= {'sequence': '1729437495218', 'seq': 2, 'error': 400, 'encrypt': True}
2024-10-20 20:18:15.364 DEBUG (MainThread) [custom_components.sonoff.core.ewelink.cloud] a4b001766e => Cloud4 | {'switch': 'off'} | 1729437495218
2024-10-20 20:18:15.653 DEBUG (MainThread) [custom_components.sonoff.core.ewelink.cloud] a4b001766e => Cloud4 | 1729437495653
2024-10-20 20:18:15.705 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] a4b001766e <= Cloud3 | {'bindInfos': {'alexa': ['540347d3-23fd-4fff-bab0-f67531ec981a_26ca1996a20e8bd63617ab272d4eeede1d2d8e32']}, 'subDevId': 'b4b2b8fefff6ef0c7004', 'parentid': '10022be679', 'fwVersion': '1.0.14', 'subDevRssi': -81, 'switch': 'off', 'subDevRssiSetting': {'active': 60, 'duration': 5}} | 1729437495653
2024-10-20 20:18:15.853 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] a4b001766e <= Cloud3 | {'switch': 'off'} | None
2024-10-20 20:21:27.988 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] 10022be679 <= Cloud3 | {'gatewayBindRelations': []} | None
2024-10-20 20:24:58.173 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] a4b00177a5 <= Cloud3 | {'online': False} | None
2024-10-20 20:26:32.312 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] 10022be679 <= Cloud3 | {'directDevNum': 5, 'routerDevNum': 1} | None
2024-10-20 20:30:55.409 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] a4b00177be <= Cloud3 | {'online': True} | None
2024-10-20 20:30:58.709 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] a4b00177be <= Cloud3 | {'switch': 'on'} | None
2024-10-20 20:32:14.977 DEBUG (MainThread) [custom_components.sonoff.core.ewelink.cloud] CLOUD change state old=True, new=True
2024-10-20 20:32:59.926 DEBUG (MainThread) [custom_components.sonoff.core.ewelink.cloud] CLOUD change state old=True, new=None
2024-10-20 20:33:00.268 DEBUG (MainThread) [custom_components.sonoff] 10 devices loaded from Cloud
2024-10-20 20:33:00.273 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] 10012cd3c0 UIID 0102 | {'bindInfos': {'alexa': ['540347d3-23fd-4fff-bab0-f67531ec981a_26ca1996a20e8bd63617ab272d4eeede1d2d8e32']}, 'switch': 'off', 'battery': 2.804, 'fwVersion': '1000.2.925', 'type': 4, 'chipID': 'd0270259a4d0', 'mac': 'd0270259a4d0', 'rssi': -79, 'lastUpdateTime': '2024-10-20T15:11:12.386Z', 'actionTime': '2024-10-20T14:59:29.365Z'}
2024-10-20 20:33:00.273 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] a4b00177cb UIID 7004 | {'bindInfos': {'alexa': ['540347d3-23fd-4fff-bab0-f67531ec981a_26ca1996a20e8bd63617ab272d4eeede1d2d8e32']}, 'subDevId': '2af709feffb6c67c7004', 'parentid': '10022be679', 'fwVersion': '1.0.14', 'subDevRssi': -74, 'switch': 'off', 'subDevRssiSetting': {'active': 60, 'duration': 5}}
2024-10-20 20:33:00.274 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] a4b00177be UIID 7004 | {'bindInfos': {'alexa': ['540347d3-23fd-4fff-bab0-f67531ec981a_26ca1996a20e8bd63617ab272d4eeede1d2d8e32']}, 'subDevId': '864a1bfeffa7db287004', 'parentid': '10022be679', 'fwVersion': '1.0.14', 'switch': 'on', 'subDevRssi': -69, 'subDevRssiSetting': {'active': 60, 'duration': 5}}
2024-10-20 20:33:00.274 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] a4b00177a5 UIID 7004 | {'bindInfos': {'alexa': ['540347d3-23fd-4fff-bab0-f67531ec981a_26ca1996a20e8bd63617ab272d4eeede1d2d8e32']}, 'subDevId': 'd060e9feffdec7b07004', 'parentid': '10022be679', 'fwVersion': '1.0.14', 'switch': 'off', 'subDevRssi': -64, 'subDevRssiSetting': {'active': 60, 'duration': 5}}
2024-10-20 20:33:00.274 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] a4b00177a1 UIID 7004 | {'bindInfos': {'alexa': ['540347d3-23fd-4fff-bab0-f67531ec981a_26ca1996a20e8bd63617ab272d4eeede1d2d8e32']}, 'subDevId': '6bb00afeffb6c67c7004', 'parentid': '10022be679', 'fwVersion': '1.0.14', 'switch': 'off', 'subDevRssi': -74, 'subDevRssiSetting': {'active': 60, 'duration': 5}}
2024-10-20 20:33:00.274 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] a4b0017671 UIID 2026 | {'bindInfos': {'alexa': ['540347d3-23fd-4fff-bab0-f67531ec981a_26ca1996a20e8bd63617ab272d4eeede1d2d8e32']}, 'subDevId': '56bbaa2f004b12002026', 'parentid': '10022be679', 'subDevRssi': -70, 'battery': 100, 'trigTime': '1729435128000', 'supportPowConfig': 1, 'motion': 0, 'subDevRssiSetting': {'active': 60, 'duration': 5}}
2024-10-20 20:33:00.275 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] a4b001766e UIID 7004 | {'bindInfos': {'alexa': ['540347d3-23fd-4fff-bab0-f67531ec981a_26ca1996a20e8bd63617ab272d4eeede1d2d8e32']}, 'subDevId': 'b4b2b8fefff6ef0c7004', 'parentid': '10022be679', 'fwVersion': '1.0.14', 'subDevRssi': -81, 'switch': 'off', 'subDevRssiSetting': {'active': 60, 'duration': 5}}
2024-10-20 20:33:00.275 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] a4b0017548 UIID 7014 | {'bindInfos': {'alexa': ['540347d3-23fd-4fff-bab0-f67531ec981a_26ca1996a20e8bd63617ab272d4eeede1d2d8e32']}, 'subDevId': 'cb82d9feff5fae0c7014', 'parentid': '10022be679', 'fwVersion': '2.1.0', 'battery': 100, 'trigTime': '1729437429000', 'supportPowConfig': 1, 'subDevRssi': -65, 'tempUnit': 0, 'tempComfortLower': '1900', 'tempComfortUpper': '2700', 'humiComfortLower': '4000', 'humiComfortUpper': '6000', 'temperature': '2990', 'tempComfortStatus': 2, 'timeZone': 5, 'humidity': '7320', 'humiComfortStatus': 2, 'subDevRssiSetting': {'active': 60, 'duration': 5}, 'key': 0}
2024-10-20 20:33:00.275 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] 10022be679 UIID 0168 | {'bindInfos': {'alexa': ['540347d3-23fd-4fff-bab0-f67531ec981a_26ca1996a20e8bd63617ab272d4eeede1d2d8e32']}, 'version': 8, 'sledOnline': 'on', 'staMac': 'C82E18572150', 'rssi': -7, 'zled': 'on', 'buzzerAlarm': {'mode': 'stop'}, 'hostVersion': '2.1.0', 'coordinatorVersion': '2.7.19', 'subDevMaxNum': 128, 'currentChannel': 11, 'fwVersion': '2.1.0', 'subDevices': [{'subDevId': 'cb82d9feff5fae0c7014', 'deviceid': 'a4b0017548', 'uiid': '7014', 'index': 0}, {'subDevId': 'b4b2b8fefff6ef0c7004', 'deviceid': 'a4b001766e', 'uiid': '7004', 'index': 0}, {'subDevId': '56bbaa2f004b12002026', 'deviceid': 'a4b0017671', 'uiid': '2026', 'index': 0}, {'subDevId': '6bb00afeffb6c67c7004', 'deviceid': 'a4b00177a1', 'uiid': '7004', 'index': 0}, {'subDevId': 'd060e9feffdec7b07004', 'deviceid': 'a4b00177a5', 'uiid': '7004', 'index': 0}, {'subDevId': '864a1bfeffa7db287004', 'deviceid': 'a4b00177be', 'uiid': '7004', 'index': 0}, {'subDevId': '2af709feffb6c67c7004', 'deviceid': 'a4b00177cb', 'uiid': '7004', 'index': 0}], 'timeZone': 5, 'only_device': {'ota': 'success', 'ota_fail_reason': 0}, 'resetCode': 1, 'cmd': 'getChannelInfo', 'panID': 26604, 'directDevNum': 5, 'routerDevNum': 1, 'addSubDevState': 'off', 'addDevTime': 180, 'nvPanID': 26604, 'gatewayBindRelations': [], 'ssid': 'Protium_IoT', 'bssid': '2A:23:51:6E:12:35'}
2024-10-20 20:33:00.276 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] 10012bb173 UIID 0104 | {'bindInfos': {'alexa': ['540347d3-23fd-4fff-bab0-f67531ec981a_26ca1996a20e8bd63617ab272d4eeede1d2d8e32']}, 'version': 7, 'switch': 'off', 'ltype': 'white', 'white': {'br': 2, 'ct': 0}, 'fwVersion': '1.3.5', 'sequence': '123456789', 'selfApikey': ''}
2024-10-20 20:33:00.276 DEBUG (MainThread) [custom_components.sonoff] CLOUD mode start
2024-10-20 20:33:01.127 DEBUG (MainThread) [custom_components.sonoff.core.ewelink.cloud] CLOUD change state old=None, new=True
2024-10-20 20:33:01.129 DEBUG (MainThread) [custom_components.sonoff] Add 21 entities
2024-10-20 20:33:04.723 DEBUG (MainThread) [custom_components.sonoff.core.ewelink.cloud] CLOUD change state old=True, new=None
2024-10-20 20:33:04.849 DEBUG (MainThread) [custom_components.sonoff] 10 devices loaded from Cloud
2024-10-20 20:33:04.854 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] 10012cd3c0 UIID 0102 | {'bindInfos': {'alexa': ['540347d3-23fd-4fff-bab0-f67531ec981a_26ca1996a20e8bd63617ab272d4eeede1d2d8e32']}, 'switch': 'off', 'battery': 2.804, 'fwVersion': '1000.2.925', 'type': 4, 'chipID': 'd0270259a4d0', 'mac': 'd0270259a4d0', 'rssi': -79, 'lastUpdateTime': '2024-10-20T15:11:12.386Z', 'actionTime': '2024-10-20T14:59:29.365Z'}
2024-10-20 20:33:04.854 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] a4b00177cb UIID 7004 | {'bindInfos': {'alexa': ['540347d3-23fd-4fff-bab0-f67531ec981a_26ca1996a20e8bd63617ab272d4eeede1d2d8e32']}, 'subDevId': '2af709feffb6c67c7004', 'parentid': '10022be679', 'fwVersion': '1.0.14', 'subDevRssi': -74, 'switch': 'off', 'subDevRssiSetting': {'active': 60, 'duration': 5}}
2024-10-20 20:33:04.855 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] a4b00177be UIID 7004 | {'bindInfos': {'alexa': ['540347d3-23fd-4fff-bab0-f67531ec981a_26ca1996a20e8bd63617ab272d4eeede1d2d8e32']}, 'subDevId': '864a1bfeffa7db287004', 'parentid': '10022be679', 'fwVersion': '1.0.14', 'switch': 'on', 'subDevRssi': -69, 'subDevRssiSetting': {'active': 60, 'duration': 5}}
2024-10-20 20:33:04.855 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] a4b00177a5 UIID 7004 | {'bindInfos': {'alexa': ['540347d3-23fd-4fff-bab0-f67531ec981a_26ca1996a20e8bd63617ab272d4eeede1d2d8e32']}, 'subDevId': 'd060e9feffdec7b07004', 'parentid': '10022be679', 'fwVersion': '1.0.14', 'switch': 'off', 'subDevRssi': -64, 'subDevRssiSetting': {'active': 60, 'duration': 5}}
2024-10-20 20:33:04.855 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] a4b00177a1 UIID 7004 | {'bindInfos': {'alexa': ['540347d3-23fd-4fff-bab0-f67531ec981a_26ca1996a20e8bd63617ab272d4eeede1d2d8e32']}, 'subDevId': '6bb00afeffb6c67c7004', 'parentid': '10022be679', 'fwVersion': '1.0.14', 'switch': 'off', 'subDevRssi': -74, 'subDevRssiSetting': {'active': 60, 'duration': 5}}
2024-10-20 20:33:04.858 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] a4b0017671 UIID 2026 | {'bindInfos': {'alexa': ['540347d3-23fd-4fff-bab0-f67531ec981a_26ca1996a20e8bd63617ab272d4eeede1d2d8e32']}, 'subDevId': '56bbaa2f004b12002026', 'parentid': '10022be679', 'subDevRssi': -70, 'battery': 100, 'trigTime': '1729435128000', 'supportPowConfig': 1, 'motion': 0, 'subDevRssiSetting': {'active': 60, 'duration': 5}}
2024-10-20 20:33:04.859 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] a4b001766e UIID 7004 | {'bindInfos': {'alexa': ['540347d3-23fd-4fff-bab0-f67531ec981a_26ca1996a20e8bd63617ab272d4eeede1d2d8e32']}, 'subDevId': 'b4b2b8fefff6ef0c7004', 'parentid': '10022be679', 'fwVersion': '1.0.14', 'subDevRssi': -81, 'switch': 'off', 'subDevRssiSetting': {'active': 60, 'duration': 5}}
2024-10-20 20:33:04.864 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] a4b0017548 UIID 7014 | {'bindInfos': {'alexa': ['540347d3-23fd-4fff-bab0-f67531ec981a_26ca1996a20e8bd63617ab272d4eeede1d2d8e32']}, 'subDevId': 'cb82d9feff5fae0c7014', 'parentid': '10022be679', 'fwVersion': '2.1.0', 'battery': 100, 'trigTime': '1729437429000', 'supportPowConfig': 1, 'subDevRssi': -65, 'tempUnit': 0, 'tempComfortLower': '1900', 'tempComfortUpper': '2700', 'humiComfortLower': '4000', 'humiComfortUpper': '6000', 'temperature': '2990', 'tempComfortStatus': 2, 'timeZone': 5, 'humidity': '7320', 'humiComfortStatus': 2, 'subDevRssiSetting': {'active': 60, 'duration': 5}, 'key': 0}
2024-10-20 20:33:04.865 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] 10022be679 UIID 0168 | {'bindInfos': {'alexa': ['540347d3-23fd-4fff-bab0-f67531ec981a_26ca1996a20e8bd63617ab272d4eeede1d2d8e32']}, 'version': 8, 'sledOnline': 'on', 'staMac': 'C82E18572150', 'rssi': -7, 'zled': 'on', 'buzzerAlarm': {'mode': 'stop'}, 'hostVersion': '2.1.0', 'coordinatorVersion': '2.7.19', 'subDevMaxNum': 128, 'currentChannel': 11, 'fwVersion': '2.1.0', 'subDevices': [{'subDevId': 'cb82d9feff5fae0c7014', 'deviceid': 'a4b0017548', 'uiid': '7014', 'index': 0}, {'subDevId': 'b4b2b8fefff6ef0c7004', 'deviceid': 'a4b001766e', 'uiid': '7004', 'index': 0}, {'subDevId': '56bbaa2f004b12002026', 'deviceid': 'a4b0017671', 'uiid': '2026', 'index': 0}, {'subDevId': '6bb00afeffb6c67c7004', 'deviceid': 'a4b00177a1', 'uiid': '7004', 'index': 0}, {'subDevId': 'd060e9feffdec7b07004', 'deviceid': 'a4b00177a5', 'uiid': '7004', 'index': 0}, {'subDevId': '864a1bfeffa7db287004', 'deviceid': 'a4b00177be', 'uiid': '7004', 'index': 0}, {'subDevId': '2af709feffb6c67c7004', 'deviceid': 'a4b00177cb', 'uiid': '7004', 'index': 0}], 'timeZone': 5, 'only_device': {'ota': 'success', 'ota_fail_reason': 0}, 'resetCode': 1, 'cmd': 'getChannelInfo', 'panID': 26604, 'directDevNum': 5, 'routerDevNum': 1, 'addSubDevState': 'off', 'addDevTime': 180, 'nvPanID': 26604, 'gatewayBindRelations': [], 'ssid': 'Protium_IoT', 'bssid': '2A:23:51:6E:12:35'}
2024-10-20 20:33:04.865 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] 10012bb173 UIID 0104 | {'bindInfos': {'alexa': ['540347d3-23fd-4fff-bab0-f67531ec981a_26ca1996a20e8bd63617ab272d4eeede1d2d8e32']}, 'version': 7, 'switch': 'off', 'ltype': 'white', 'white': {'br': 2, 'ct': 0}, 'fwVersion': '1.3.5', 'sequence': '123456789', 'selfApikey': ''}
2024-10-20 20:33:04.866 DEBUG (MainThread) [custom_components.sonoff] CLOUD mode start
2024-10-20 20:33:05.178 DEBUG (MainThread) [custom_components.sonoff.core.ewelink.cloud] CLOUD change state old=None, new=True
2024-10-20 20:33:05.179 DEBUG (MainThread) [custom_components.sonoff] Add 21 entities
2024-10-20 20:36:19.917 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] a4b0017548 <= Cloud3 | {'battery': 100, 'trigTime': '1729437429000', 'supportPowConfig': 1} | None
2024-10-20 20:36:28.035 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] 10022be679 <= Cloud3 | {'gatewayBindRelations': []} | None
2024-10-20 20:36:33.329 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] a4b00177a5 <= Cloud3 | {'online': True} | None
2024-10-20 20:36:36.640 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] a4b00177a5 <= Cloud3 | {'switch': 'off'} | None

@clintferns2911
Copy link

I have some sonoff devices and they are not updating on HA. I'm restarting ever hour the sonoff integration to resolve this problem temporary
Can i please ask what integration your choosing to reload as I'm trying to do the same thing and can't figure out what to choose?

{C44CCA08-B27A-4725-8184-5D95CD401431}

@salihcaan
Copy link

I am having the same problem with my sensors, especially with sonoff r5 scene controller. Although this is a workaround, I am sharing my configurations:

Below is to reload the entity, put this in your configuration.yaml with the desired entity. The automation triggers every 2 minutes to refresh the entity, thus solving the problem of the unresponsiveness of the scene r5 controller:

automation sonoff_sensors_reload:
  trigger:
    - platform: time_pattern
      minutes: "/2"
  action:
    - service: input_boolean.turn_off
      entity_id: input_boolean.allow_kitchen_light_toggle
    - delay: "00:00:05"
    - service: homeassistant.update_entity
      target:
        entity_id: sensor.kitchen_r5
    - delay: "00:00:05"
    - service: input_boolean.turn_on
      entity_id: input_boolean.allow_kitchen_light_toggle
  mode: single

The input_boolean solves the problem of toggling the lights each time the automation triggers.

Below is my another automation to trigger the lights with sonoff r5 scene controller:

automation kitchen_r5_all_lights:
  alias: Toggle kitchen lights with a button press
  description: ''
  trigger:
    - platform: state
      entity_id: sensor.kitchen_r5
      to: 'button_6_single'
  condition:
    - condition: state
      entity_id: input_boolean.allow_kitchen_light_toggle
      state: 'on'
  action:
    - service: light.toggle
      target:
        entity_id: 
          - light.kitchen_counter_led
          - light.kitchen_coffee
          - light.kitchen_coffee_top
          - light.kitchen_table
          - light.kitchen_ceiling
  mode: single

@EboBH83
Copy link

EboBH83 commented Oct 21, 2024

I guess it's a problem on Sonoff's side, because I have the same issue with the official eWeLink add-on.

@salihcaan
Copy link

Sorry for messing up with my messages here, @EboBH83 are you having problems particularly with the sonoff r5 scene controllers (I know that other sensors also problematic)? AFAIK, the scene r5 controller is not supported with the official eWeLink add-on.

@Softwaremaker
Copy link

Softwaremaker commented Oct 21, 2024

This is my code to temporary "reload" the devices. Easier this way because every entity will take too much to write out. And it is not just the temperature. It is the button state, the humidity, etc.

This is working for me as a workaround.

alias: "DEV: TEMP Update Sonoff Devices"
description: ""
trigger:
  - platform: time_pattern
    minutes: "3"
condition: []
action:
  - service: homeassistant.reload_config_entry
    data: {}
    target:
      device_id:
        - 123456IHateItWhenThisHappens
        - 789000ThisShouldNotHaveHappened
mode: single

@EboBH83
Copy link

EboBH83 commented Oct 21, 2024

Sorry for messing up with my messages here, @EboBH83 are you having problems particularly with the sonoff r5 scene controllers (I know that other sensors also problematic)? AFAIK, the scene r5 controller is not supported with the official eWeLink add-on.

Oh, hey. I don't have the R5, sorry.

@EboBH83
Copy link

EboBH83 commented Oct 28, 2024

Good News. all is working this morning.10/28, well at least for me in the US.

I'm noticing that too, but I'll have to give it some time to be sure.

@myaksel
Copy link

myaksel commented Oct 28, 2024

Mine (dw2 wifi door sensor) started working properly again, too.

@AlexxIT
Copy link
Owner

AlexxIT commented Oct 28, 2024

I reached out to ewelink support this morning. It may be related.

@rafaelssp
Copy link

I also contacted ewelink support, in my case the status of the devices is having problems even in the app. If they provide me with any relevant answer I will share it.

@basakmurat2005
Copy link
Author

Hi friends, i am the one who opens this issue. Mine is working now too. I thank you all for the coopeartion.

@iridyum
Copy link

iridyum commented Oct 29, 2024

Mine is resolved automagically as well. Sonoff seems to have resolved the server issue, but I'm still approaching it cautiously and keeping an eye on things.

@shifuoogway
Copy link

Thanks AlexxIT and others for contacting ewelink. Looks like that did it. Working again in Australia. As I had a USB/TTL board on hand, finally bit the bullet to tasmotized my bridges (1 zbbridge 1 zbrouter) to localise the zigbee sensors. A bit of work, couple of small gotchas along the way but the ZHA integration is working well and should reduce downtime.

@myaksel
Copy link

myaksel commented Oct 29, 2024

Thanks AlexxIT and others for contacting ewelink. Looks like that did it. Working again in Australia. As I had a USB/TTL board on hand, finally bit the bullet to tasmotized my bridges (1 zbbridge 1 zbrouter) to localise the zigbee sensors. A bit of work, couple of small gotchas along the way but the ZHA integration is working well and should reduce downtime.

Just the same, this problem pushed me to do it finally and tasmotized the zbbridge :D

@shifuoogway
Copy link

Just the same, this problem pushed me to do it finally and tasmotized the zbbridge :D

Yep, that Sonoff service was the weakest part in the whole HA setup for my install. I'm going to retire the couple of DW2s in the system and from then on it'll finally be all local with SonoffLAN and ZHA.

@iridyum
Copy link

iridyum commented Oct 29, 2024

Motion sensor has stopped functioning again. SNZB-02D temperature - humidity sensor looks OK for now.

@itmask
Copy link

itmask commented Oct 29, 2024

Temperature sensors stopped updateing in HA for me as well couple of days ago. I am in Europe, in Estonia. Ewelink app is working correctly, data is updating there.

@AlexxIT
Copy link
Owner

AlexxIT commented Oct 29, 2024

I think problem solved. Probably EU issues related to internet problems.

@X-xxamin-X
Copy link

I am also having issues with temperature sensors ceasing to update in HA, it seemed to magically start working again yesterday, but this morning it stuck again...furthermore the workaround I set up (basically forcing a restart to the service every 3 minutes) stopped working as well. I'm in the US. It may have been coincidental, but I did update the bridge FW and it hasn't been working reliably since. Did any of the rest of you with issues using a bridge update to 2.1.0?

@Marcelo-Y
Copy link

Everything is fine here since yesterday.

Thank you guys!

@geoeng
Copy link

geoeng commented Nov 3, 2024

It's only updated for me if I have the ewelink app open on my phone. I'm in the U.S.

@madmagic007
Copy link

It's only updated for me if I have the ewelink app open on my phone. I'm in the U.S.

Im in EU and this happens to me exactly.
Without the app open, maybe 1 in 10 sensor updates are received. With the app open, its like 7/10

@sauzzza
Copy link

sauzzza commented Nov 4, 2024

It's happening again to me. Fresh HA install, stopped working after a couple hours

@rafaelssp
Copy link

It's been fixed here for a while, and now there seems to be a delay in some updates. This is bad. It seems like there is a way to do this on the local network without relying on the cloud. I'll learn more about this. Thanks.

@aferende
Copy link

aferende commented Nov 6, 2024

Hi everyone, I'm following this thread with interest as I have similar problems.
After several days of observations and log analysis I can say (at least in my case) that the problem is not related to the SonoffLan integration.

Introduction:
I have a Zigbee BridgePro hub with 10 Motion Sensors SNZB-03 and 10 SonOff ZBMINIL2 (without neutral).

After stabilizing my Zigbee network (far from Wifi frequencies), I'll tell you what happens to me.
Below is an example:

At 23.44.12 yesterday evening, one of the Motion Sensors (SNZB-03) correctly detected the movement but when I left the room the sensor remained in the "Detected" state all night.
image

This apparently seems to be a problem with the SonoffLan/Home Assistant integration, but the same issue is reported in eWeLink app logs (and I'm sure that there was no one in the room as it was late at night).
image

Then this morning, at 06:24:20, when I returned to the room, the motion sensor did not turn on the light via automation and this was because it was still in the "Detected" state. After 1 minute, however (with the room empty) it correctly returned to the "Not Detected" state. (because this morning the new Request made via API in the Cloud was successful)

In the Home Assistant logs, by chance, I find some "Cloud Errors" at 23.40.09 (just before the sensor failed to update).
image

image

image

My opinion is that these sensors communicate their state to the Cloud but obviously not continuously but only when there is a change between "Detected"/"Not Detected" state and viceversa. The Sonoff SNZB-03 in particular, cannot change state before 60 seconds.

So what happens if a sensor, when changing state, receives an error during the call to the Cloud? Simply the Cloud does not "accept" this change of state and the sensor remains in the same previous state until someone moves again in the room, forcing the sensor to change state and therefore communicate its new state to the Cloud.

This is obviously a problem because for a timeout call or
generic error of the Cloud server, our automations stop working and you risk leaving the light on all night.

Apparently even the Zigbee Bridge that acts as an intermediary, in case of an error in the Cloud call, does not retry the call and therefore leaves the sensor permanently in that state.

The problem here is architectural and that is to maintain the state only on a Cloud that is not 100% available.
The only real alternative is to make SonoffLAN work in "LAN Only" but unfortunately this sensor (SNZB-03) has not yet been implemented in LAN Only by @AlexxIT

I hope I have given a contribution to this Thread; I also attach the various original logs to help with debugging.
Andrea

Logs.zip

@shifuoogway
Copy link

Sonoff api missing state changes can be expected to happen on occasion given the complexity of the arrangement. Best case: sensor -> zigbee -> wifi -> router -> internet -> sonoff server -> internet -> router -> home assistant. Sensors require real time signalling which reduces the likelihood of buffering/retries being implemented. What's observed can sometimes be expected in a best efforts system. Increasing local signalling integrity and capacity can improve performance but there are still all those parts that cannot be controlled.

The recent problem was a bit different in that all sonoff wifi and zigbee sensors stopped updating, symptomatic of an api issue or change at sonoff.

The 60 sec delayed state change is by design to reduce battery use. Missed signalling is just lost. Unfortunately, it is what it is.

Localizing the sensors eliminates the uncontrollable elements in the chain. If you have sonoff gear then the only way ATM to do that is with Tasmota. After a week or so, my experience is one of improved zigbee networking with reliable and faster sensor updates.

@Natthachai-arm
Copy link

Thank You

@SyphonxZA
Copy link

Also seeing this, device power stats don't update and remain on the previous value and break all automations. My decision to flash as many smart devices as possible with ESPHome has been vindicated.

@User873902
Copy link

Did the same. (ESPHome)

@Stroumb
Copy link

Stroumb commented Dec 26, 2024

Hi All!

I was experience this issue as well but in my case with the DUAL R3 power metering values that stopped reporting.
Only when opening the device reading on the eWeLink app, the device I was "opening" restarted to report back.
All other similar devices were still not working/reporting/updating...

But I think I found the issue.

My setup for context:

iHost from Sonoff running Hass docker install

  • Core 2024.12.1
  • Frontend 20241127.6

Note: this build don't have the Supervisor menu available therefore I'm not using the "official" Sonoff integration.
I'm using the HACS Sonoff LAN integration (https://github.com/AlexxIT/SonoffLAN)

From my understanding this happens every time a new device is added to eWeLink account.

After adding to eWeLink account, it is necessary to restart the eWeLink Smart Home service in iHost in order to be added/displayed in iHost.
Also in HAss, it is also necessary to reload the HACS integration in order to retrieve from eWeLink account the newly added devices and update the device list on HAss.

For some reason, and at the moment of this writing, this action makes that all devices stop reporting/update state as supposed.
I believe this not only for DUAL R3, which is my case, but for all devices/sensors that need to report/update status change.

What I found is that the HAss needs to be completely restarted. Only reloading the integration does not help.

After restarting HAss, all DUAL R3 started to report correctly.

This routine got my stuff working again.
Hope this help you too!

@AlexxIT
Copy link
Owner

AlexxIT commented Dec 26, 2024

Maybe every time a new unknown device appears in the account - there is some bug.
Then the error should be visible in the logs and it can be made into a new issue to be fixed.

@Stroumb
Copy link

Stroumb commented Dec 26, 2024

Running this restart rotine is not an issue for me.
Already added more devices and no more problems with it.
For sure there is room for improvement, but this solution works just fine.
After all, if we want easy stuff, then HAss is not the way 😉

@AlexxIT
Copy link
Owner

AlexxIT commented Dec 27, 2024

I try to make the simplest solutions possible. What can be simpler than entering login/password in WebUI.
Especially compared to the decision to crack open and reflash all your devices to alternate firmware.

@Stroumb
Copy link

Stroumb commented Dec 27, 2024

AlexxIT,

For me it is super simple! Couldn't be easier!
Thanks for your effort and dedication 👌

@SyphonxZA
Copy link

Thank you @Stroumb, a restart of Home Assistant seems to have fixed the issue with stats not reporting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests