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.75k stars 417 forks source link

Sonoff L1 LED strip unavailable #1450

Closed acmeGR closed 4 months ago

acmeGR commented 4 months ago

What I've tried so far:

  1. Checked my configuration.yaml and removed: sonoff: username: !secret sonoff_usr password: !secret sonoff_psw reload: always
  2. Verified there are no device_class: light entries in customize.yaml.
  3. Verified my Sonoff version and the status of my devices:
    • Version: 3.7.3
    • Cloud devices online: 0 / 8
    • Local devices online: 4 / 4

Relevant logs: The only relevant line in the debug logs was: 2024-07-19 11:46:42.591 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] 1000f8abe3 UIID 0059 | {'bindInfos': {}, 'version': 8, 'only_device': {'ota': 'success'}, 'sledOnline': 'on', 'ssid': 'hidden', 'bssid': 'hidden', 'switch': 'off', 'light_type': 1, 'colorR': 255, 'colorG': 63, 'colorB': 0, 'bright': 100, 'mode': 1, 'speed': 100, 'sensitive': 10, 'rssi': -71, 'fwVersion': '3.4.3', 'staMac': 'hidden'}

Diagnostics: Here are my diagnostics with sensitive information hidden:

All devices:

{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2024.7.2",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.12.4",
    "docker": true,
    "arch": "x86_64",
    "timezone": "Europe/Athens",
    "os_name": "Linux",
    "os_version": "6.6.33-haos",
    "supervisor": "2024.06.2",
    "host_os": "Home Assistant OS 12.4",
    "docker_version": "26.1.4",
    "chassis": "embedded",
    "run_as_root": true
  },
  "custom_components": {
    "tuya_local": {
      "documentation": "https://github.com/make-all/tuya-local",
      "version": "2024.7.0",
      "requirements": [
        "tinytuya==1.15.0",
        "tuya-device-sharing-sdk>=0.1.9,<=0.2.99"
      ]
    },
    "watchman": {
      "documentation": "https://github.com/dummylabs/thewatchman",
      "version": "0.6.3",
      "requirements": [
        "prettytable==3.10.0"
      ]
    },
    "frigate": {
      "documentation": "https://github.com/blakeblackshear/frigate",
      "version": "5.2.0",
      "requirements": [
        "pytz"
      ]
    },
    "hacs": {
      "documentation": "https://hacs.xyz/docs/configuration/start",
      "version": "1.34.0",
      "requirements": [
        "aiogithubapi>=22.10.1"
      ]
    },
    "browser_mod": {
      "documentation": "https://github.com/thomasloven/hass-browser_mod/blob/master/README.md",
      "version": "2.3.0",
      "requirements": []
    },
    "toyota": {
      "documentation": "https://github.com/DurgNomis-drol/ha_toyota",
      "version": "2.0.3",
      "requirements": [
        "mytoyota==2.1.1",
        "arrow"
      ]
    },
    "presence_simulation": {
      "documentation": "https://github.com/slashback100/presence_simulation",
      "version": "4.9",
      "requirements": []
    },
    "spotcast": {
      "documentation": "https://github.com/fondberg/spotcast",
      "version": "v3.6.30",
      "requirements": []
    },
    "smartthinq_sensors": {
      "documentation": "https://github.com/ollo69/ha-smartthinq-sensors",
      "version": "0.39.2",
      "requirements": [
        "pycountry>=23.12.11",
        "xmltodict>=0.13.0",
        "charset_normalizer>=3.2.0"
      ]
    },
    "braviatv_psk": {
      "documentation": "https://github.com/custom-components/media_player.braviatv_psk",
      "version": "0.4.2",
      "requirements": [
        "pySonyBraviaPSK==0.2.4"
      ]
    },
    "scheduler": {
      "documentation": "https://github.com/nielsfaber/scheduler-component",
      "version": "v0.0.0",
      "requirements": []
    },
    "xiaomi_cloud_map_extractor": {
      "documentation": "https://github.com/PiotrMachowski/Home-Assistant-custom-components-Xiaomi-Cloud-Map-Extractor",
      "version": "v2.2.0",
      "requirements": [
        "pillow",
        "pybase64",
        "python-miio",
        "requests",
        "pycryptodome"
      ]
    },
    "sonoff": {
      "documentation": "https://github.com/AlexxIT/SonoffLAN",
      "version": "3.7.3",
      "requirements": [
        "pycryptodome>=3.6.6"
      ]
    },
    "average": {
      "documentation": "https://github.com/Limych/ha-average",
      "version": "2.3.4",
      "requirements": []
    }
  },
  "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.7.3",
    "is_built_in": false
  },
  "setup_times": {
    "null": {
      "setup": 9.486998897045851e-05
    },
    "9285498fe27a57139f691eba6b56add1": {
      "wait_import_platforms": -0.0002177170099457726,
      "wait_base_component": -5.747310398990521,
      "config_entry_setup": 9.084938726999098
    }
  },
  "data": {
    "version": "77493b9",
    "cloud_auth": false,
    "config": null,
    "options": {
      "mode": "auto",
      "debug": false
    },
    "errors": [],
    "devices": {
      "10013f38e0": {
        "uiid": 34,
        "params": {
          "bindInfos": "***",
          "version": 8,
          "only_device": {
            "ota": "success"
          },
          "sledOnline": "off",
          "ssid": "***",
          "bssid": "***",
          "init": 1,
          "fwVersion": "3.5.0",
          "staMac": "***",
          "rssi": -55,
          "switches": [
            {
              "switch": "off",
              "outlet": 0
            },
            {
              "switch": "off",
              "outlet": 1
            },
            {
              "switch": "off",
              "outlet": 2
            },
            {
              "switch": "off",
              "outlet": 3
            }
          ],
          "configure": [
            {
              "startup": "on",
              "outlet": 0
            },
            {
              "startup": "off",
              "outlet": 1
            },
            {
              "startup": "stay",
              "outlet": 2
            },
            {
              "startup": "stay",
              "outlet": 3
            }
          ]
        },
        "model": "iFan04",
        "online": true,
        "local": true,
        "localtype": "fan_light",
        "host": "192.168.20.116:8081"
      },
      "10012c652b": {
        "uiid": 77,
        "params": {
          "bindInfos": "***",
          "version": 8,
          "switches": [
            {
              "switch": "on",
              "outlet": 0
            },
            {
              "switch": "off",
              "outlet": 1
            },
            {
              "switch": "off",
              "outlet": 2
            },
            {
              "switch": "off",
              "outlet": 3
            }
          ],
          "configure": [
            {
              "startup": "on",
              "outlet": 0
            },
            {
              "startup": "off",
              "outlet": 1
            },
            {
              "startup": "off",
              "outlet": 2
            },
            {
              "startup": "off",
              "outlet": 3
            }
          ],
          "pulses": [
            {
              "pulse": "off",
              "width": 1000,
              "outlet": 0
            },
            {
              "pulse": "off",
              "width": 1000,
              "outlet": 1
            },
            {
              "pulse": "off",
              "width": 1000,
              "outlet": 2
            },
            {
              "pulse": "off",
              "width": 1000,
              "outlet": 3
            }
          ],
          "senMode": {
            "enabled": 0,
            "dTime": 10,
            "tUnit": "s",
            "outlets": [
              0,
              1,
              2,
              3
            ],
            "effectives": [
              {
                "outlet": 0,
                "enabled": 0,
                "days": [
                  0,
                  1,
                  2,
                  3,
                  4,
                  5,
                  6
                ],
                "effIndex": [
                  {
                    "index": 0,
                    "enabled": 1,
                    "from": "00:00",
                    "to": "23:59"
                  },
                  {
                    "index": 1,
                    "enabled": 0,
                    "from": "00:00",
                    "to": "23:59"
                  }
                ]
              },
              {
                "outlet": 1,
                "enabled": 0,
                "days": [
                  0,
                  1,
                  2,
                  3,
                  4,
                  5,
                  6
                ],
                "effIndex": [
                  {
                    "index": 0,
                    "enabled": 1,
                    "from": "00:00",
                    "to": "23:59"
                  },
                  {
                    "index": 1,
                    "enabled": 0,
                    "from": "00:00",
                    "to": "23:59"
                  }
                ]
              },
              {
                "outlet": 2,
                "enabled": 0,
                "days": [
                  0,
                  1,
                  2,
                  3,
                  4,
                  5,
                  6
                ],
                "effIndex": [
                  {
                    "index": 0,
                    "enabled": 1,
                    "from": "00:00",
                    "to": "23:59"
                  },
                  {
                    "index": 1,
                    "enabled": 0,
                    "from": "00:00",
                    "to": "23:59"
                  }
                ]
              },
              {
                "outlet": 3,
                "enabled": 0,
                "days": [
                  0,
                  1,
                  2,
                  3,
                  4,
                  5,
                  6
                ],
                "effIndex": [
                  {
                    "index": 0,
                    "enabled": 1,
                    "from": "00:00",
                    "to": "23:59"
                  },
                  {
                    "index": 1,
                    "enabled": 0,
                    "from": "00:00",
                    "to": "23:59"
                  }
                ]
              }
            ]
          },
          "savMode": {
            "enabled": 0,
            "dTime": 1,
            "tUnit": "m",
            "outlets": [
              0,
              1,
              2,
              3
            ]
          },
          "alertMode": {
            "enabled": 0
          },
          "lock": 0,
          "sledOnline": "on",
          "staMac": "***",
          "rssi": -75,
          "fwVersion": "3.7.1",
          "selfApikey": "123"
        },
        "model": "Micro",
        "online": false,
        "local": null,
        "localtype": null,
        "host": null
      },
      "1000f8abe3": {
        "uiid": 59,
        "params": {
          "bindInfos": "***",
          "version": 8,
          "only_device": {
            "ota": "success"
          },
          "sledOnline": "on",
          "ssid": "***",
          "bssid": "***",
          "switch": "off",
          "light_type": 1,
          "colorR": 255,
          "colorG": 63,
          "colorB": 0,
          "bright": 100,
          "mode": 1,
          "speed": 100,
          "sensitive": 10,
          "rssi": -71,
          "fwVersion": "3.4.3",
          "staMac": "***"
        },
        "model": "L1",
        "online": false,
        "local": null,
        "localtype": null,
        "host": null
      },
      "100073a1e8": {
        "uiid": 4,
        "params": {
          "init": 1,
          "rssi": -60,
          "staMac": "***",
          "pulseWidth": 0,
          "switches": [
            {
              "switch": "off",
              "outlet": 0
            },
            {
              "switch": "off",
              "outlet": 1
            },
            {
              "switch": "off",
              "outlet": 2
            },
            {
              "switch": "off",
              "outlet": 3
            }
          ],
          "pulse": "off",
          "fwVersion": "3.5.1",
          "configure": [
            {
              "startup": "off",
              "outlet": 0
            },
            {
              "startup": "off",
              "outlet": 1
            },
            {
              "startup": "off",
              "outlet": 2
            },
            {
              "startup": "off",
              "outlet": 3
            }
          ],
          "version": 8,
          "sledOnline": "on",
          "lock": 0,
          "pulses": [
            {
              "pulse": "off",
              "width": 1000,
              "outlet": 0
            },
            {
              "pulse": "off",
              "width": 1000,
              "outlet": 1
            },
            {
              "pulse": "off",
              "width": 1000,
              "outlet": 2
            },
            {
              "pulse": "off",
              "width": 1000,
              "outlet": 3
            }
          ],
          "only_device": {
            "ota": "success"
          },
          "ssid": "***",
          "bssid": "***"
        },
        "model": "4CH Pro",
        "online": false,
        "local": true,
        "localtype": "strip",
        "host": "192.168.20.40:8081"
      },
      "1000a26522": {
        "uiid": 1,
        "params": {
          "version": 8,
          "sledOnline": "on",
          "switch": "off",
          "fwVersion": "3.5.1",
          "rssi": -57,
          "staMac": "***",
          "startup": "off",
          "init": 1,
          "pulse": "off",
          "pulseWidth": 500,
          "only_device": {
            "ota": "success"
          },
          "ssid": "***",
          "bssid": "***"
        },
        "model": "S55R1",
        "online": false,
        "local": null,
        "localtype": null,
        "host": null
      },
      "1000b1ed0f": {
        "uiid": 34,
        "params": {
          "version": 8,
          "sledOnline": "off",
          "init": 1,
          "fwVersion": "3.5.0",
          "staMac": "***",
          "rssi": -61,
          "switches": [
            {
              "switch": "off",
              "outlet": 0
            },
            {
              "switch": "on",
              "outlet": 1
            },
            {
              "switch": "off",
              "outlet": 2
            },
            {
              "switch": "off",
              "outlet": 3
            }
          ],
          "configure": [
            {
              "startup": "on",
              "outlet": 0
            },
            {
              "startup": "stay",
              "outlet": 1
            },
            {
              "startup": "stay",
              "outlet": 2
            },
            {
              "startup": "stay",
              "outlet": 3
            }
          ],
          "only_device": {
            "ota": "success"
          },
          "ssid": "***",
          "bssid": "***"
        },
        "model": "iFan03",
        "online": true,
        "local": true,
        "localtype": "fan_light",
        "host": "192.168.20.115:8081"
      },
      "100004759a": {
        "uiid": 14,
        "params": {
          "rssi": -63,
          "startup": "stay",
          "fwVersion": "3.4.0",
          "switch": "off",
          "version": 8,
          "sledOnline": "on",
          "staMac": "***",
          "init": 1,
          "pulse": "off",
          "pulseWidth": 500
        },
        "model": "Sonoff",
        "online": false,
        "local": null,
        "localtype": null,
        "host": null
      },
      "a630015040": {
        "uiid": 87,
        "params": {
          "partnerDevice": {
            "ezVedioSerial": "EWLK-111739-LXDFH",
            "partnerInfo": [
              {
                "thirdPartyDeviceId": "EWLK-111739-LXDFH",
                "chipid": "ΧΧΧΧΧΧΧΧΧΧ",
                "model": "GK-200MP2C",
                "vendor": "GK-200MP2C",
                "addType": 1
              }
            ],
            "p2pPasswd": "ΧΧΧΧΧΧΧΧΧΧ"
          },
          "romVersion": "41220220712",
          "version": 7,
          "rssi": -44,
          "fwVersion": "41220220712",
          "infraredSetting": 0,
          "timeZone": 3
        },
        "model": "GK-200MP2C",
        "online": true,
        "local": null,
        "localtype": null,
        "host": null
      }
    }
  }
}

L1 device diagnostics:

{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2024.7.2",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.12.4",
    "docker": true,
    "arch": "x86_64",
    "timezone": "Europe/Athens",
    "os_name": "Linux",
    "os_version": "6.6.33-haos",
    "supervisor": "2024.06.2",
    "host_os": "Home Assistant OS 12.4",
    "docker_version": "26.1.4",
    "chassis": "embedded",
    "run_as_root": true
  },
  "custom_components": {
    "tuya_local": {
      "documentation": "https://github.com/make-all/tuya-local",
      "version": "2024.7.0",
      "requirements": [
        "tinytuya==1.15.0",
        "tuya-device-sharing-sdk>=0.1.9,<=0.2.99"
      ]
    },
    "watchman": {
      "documentation": "https://github.com/dummylabs/thewatchman",
      "version": "0.6.3",
      "requirements": [
        "prettytable==3.10.0"
      ]
    },
    "frigate": {
      "documentation": "https://github.com/blakeblackshear/frigate",
      "version": "5.2.0",
      "requirements": [
        "pytz"
      ]
    },
    "hacs": {
      "documentation": "https://hacs.xyz/docs/configuration/start",
      "version": "1.34.0",
      "requirements": [
        "aiogithubapi>=22.10.1"
      ]
    },
    "browser_mod": {
      "documentation": "https://github.com/thomasloven/hass-browser_mod/blob/master/README.md",
      "version": "2.3.0",
      "requirements": []
    },
    "toyota": {
      "documentation": "https://github.com/DurgNomis-drol/ha_toyota",
      "version": "2.0.3",
      "requirements": [
        "mytoyota==2.1.1",
        "arrow"
      ]
    },
    "presence_simulation": {
      "documentation": "https://github.com/slashback100/presence_simulation",
      "version": "4.9",
      "requirements": []
    },
    "spotcast": {
      "documentation": "https://github.com/fondberg/spotcast",
      "version": "v3.6.30",
      "requirements": []
    },
    "smartthinq_sensors": {
      "documentation": "https://github.com/ollo69/ha-smartthinq-sensors",
      "version": "0.39.2",
      "requirements": [
        "pycountry>=23.12.11",
        "xmltodict>=0.13.0",
        "charset_normalizer>=3.2.0"
      ]
    },
    "braviatv_psk": {
      "documentation": "https://github.com/custom-components/media_player.braviatv_psk",
      "version": "0.4.2",
      "requirements": [
        "pySonyBraviaPSK==0.2.4"
      ]
    },
    "scheduler": {
      "documentation": "https://github.com/nielsfaber/scheduler-component",
      "version": "v0.0.0",
      "requirements": []
    },
    "xiaomi_cloud_map_extractor": {
      "documentation": "https://github.com/PiotrMachowski/Home-Assistant-custom-components-Xiaomi-Cloud-Map-Extractor",
      "version": "v2.2.0",
      "requirements": [
        "pillow",
        "pybase64",
        "python-miio",
        "requests",
        "pycryptodome"
      ]
    },
    "sonoff": {
      "documentation": "https://github.com/AlexxIT/SonoffLAN",
      "version": "3.7.3",
      "requirements": [
        "pycryptodome>=3.6.6"
      ]
    },
    "average": {
      "documentation": "https://github.com/Limych/ha-average",
      "version": "2.3.4",
      "requirements": []
    }
  },
  "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.7.3",
    "is_built_in": false
  },
  "setup_times": {
    "null": {
      "setup": 9.486998897045851e-05
    },
    "9285498fe27a57139f691eba6b56add1": {
      "wait_import_platforms": -0.0002177170099457726,
      "wait_base_component": -5.747310398990521,
      "config_entry_setup": 9.084938726999098
    }
  },
  "data": {
    "version": "77493b9",
    "cloud_auth": false,
    "config": null,
    "options": {
      "mode": "auto",
      "debug": false
    },
    "errors": [],
    "device": {
      "uiid": 59,
      "params": {
        "bindInfos": "***",
        "version": 8,
        "only_device": {
          "ota": "success"
        },
        "sledOnline": "on",
        "ssid": "***",
        "bssid": "***",
        "switch": "off",
        "light_type": 1,
        "colorR": 255,
        "colorG": 63,
        "colorB": 0,
        "bright": 100,
        "mode": 1,
        "speed": 100,
        "sensitive": 10,
        "rssi": -71,
        "fwVersion": "3.4.3",
        "staMac": "***"
      },
      "model": "L1",
      "online": false,
      "local": null,
      "localtype": null,
      "host": null,
      "deviceid": "1000f8abe3"
    }
  }
}
AlexxIT commented 4 months ago

"cloud_auth": false - you not connected to cloud. I don't know why. L1 is only cloud device

acmeGR commented 4 months ago

I was sure it was something right in front of me that I just could not see. The credentials are from a second account on my wife's phone where I share my devices. She changed the password...😂 All is good now. Thank you @AlexxIT!