AlexxIT / SonoffLAN

Control Sonoff Devices with eWeLink (original) firmware over LAN and/or Cloud from Home Assistant
https://github.com/AlexxIT/Blog
MIT License
2.67k stars 414 forks source link

Device firmware version differs in integration and eWelink app #1111

Closed heidricha closed 1 year ago

heidricha commented 1 year ago

After I upgraded the device fw in the eWelink app, the integration device data still shows the old one, after several configuration reload.

image

eWeLink already shows firmware version 3.6.0

The whole device diag data:

{
  "home_assistant": {
    "installation_type": "Home Assistant Container",
    "version": "2023.2.0",
    "dev": false,
    "hassio": false,
    "virtualenv": false,
    "python_version": "3.10.7",
    "docker": true,
    "arch": "aarch64",
    "timezone": "Europe/Budapest",
    "os_name": "Linux",
    "os_version": "5.10.78-7-osmc",
    "run_as_root": true
  },
  "custom_components": {
    "awesome_thermostat": {
      "version": "1.0.0",
      "requirements": []
    },
    "gismeteo": {
      "version": "2.5.1",
      "requirements": []
    },
    "average": {
      "version": "2.3.0",
      "requirements": []
    },
    "abalin_nameday": {
      "version": "0.0.4",
      "requirements": [
        "abalin_nameday==0.0.4"
      ]
    },
    "scheduler": {
      "version": "v0.0.0",
      "requirements": []
    },
    "hacs": {
      "version": "1.30.1",
      "requirements": [
        "aiogithubapi>=22.10.1"
      ]
    },
    "radioactivity_hu": {
      "version": "0.3.2",
      "requirements": []
    },
    "simple_thermostat": {
      "version": "1.0.2",
      "requirements": []
    },
    "pollen_hu": {
      "version": "0.0.6",
      "requirements": []
    },
    "thermal_comfort": {
      "version": "2.1.0",
      "requirements": []
    },
    "remote_homeassistant": {
      "version": "3.6",
      "requirements": []
    },
    "sonoff": {
      "version": "3.4.0",
      "requirements": [
        "pycryptodome>=3.6.6"
      ]
    }
  },
  "integration_manifest": {
    "domain": "sonoff",
    "name": "Sonoff",
    "config_flow": true,
    "documentation": "https://github.com/AlexxIT/SonoffLAN",
    "issue_tracker": "/api/sonoff/df1d0157-b50e-4364-82a2-a8d60f78e599",
    "codeowners": [
      "@AlexxIT"
    ],
    "dependencies": [
      "http",
      "zeroconf"
    ],
    "requirements": [
      "pycryptodome>=3.6.6"
    ],
    "version": "3.4.0",
    "iot_class": "local_push",
    "is_built_in": false
  },
  "data": {
    "version": "5406fa7",
    "cloud_auth": false,
    "config": {
      "username": "***",
      "password": "***",
      "reload": "always"
    },
    "options": {
      "mode": "local",
      "debug": true
    },
    "errors": [],
    "devices": {
      "10015aae9b": {
        "uiid": 4,
        "params": {
          "bindInfos": "***",
          "version": 8,
          "only_device": {
            "ota": "success"
          },
          "sledOnline": "on",
          "ssid": "***",
          "bssid": "***",
          "fwVersion": "3.5.1",
          "staMac": "***",
          "rssi": -56,
          "init": 1,
          "lock": 0,
          "configure": [
            {
              "startup": "stay",
              "outlet": 0
            },
            {
              "startup": "stay",
              "outlet": 1
            },
            {
              "startup": "stay",
              "outlet": 2
            },
            {
              "startup": "stay",
              "outlet": 3
            }
          ],
          "pulses": [
            {
              "pulse": "off",
              "width": 1000,
              "outlet": 0
            },
            {
              "pulse": "off",
              "width": 1000,
              "outlet": 1
            },
            {
              "pulse": "off",
              "width": 1000,
              "outlet": 2
            },
            {
              "pulse": "off",
              "width": 1000,
              "outlet": 3
            }
          ],
          "switches": [
            {
              "switch": "off",
              "outlet": 0
            },
            {
              "switch": "off",
              "outlet": 1
            },
            {
              "switch": "off",
              "outlet": 2
            },
            {
              "switch": "off",
              "outlet": 3
            }
          ]
        },
        "model": "4CHR3",
        "online": true,
        "localtype": "strip",
        "host": "192.168.2.59:8081"
      },
      "10015bc32f": {
        "uiid": 4,
        "params": {
          "bindInfos": "***",
          "version": 8,
          "only_device": {
            "ota": "success"
          },
          "sledOnline": "on",
          "ssid": "***",
          "bssid": "***",
          "fwVersion": "3.5.1",
          "staMac": "***",
          "rssi": -57,
          "init": 1,
          "lock": 0,
          "configure": [
            {
              "startup": "stay",
              "outlet": 0
            },
            {
              "startup": "stay",
              "outlet": 1
            },
            {
              "startup": "stay",
              "outlet": 2
            },
            {
              "startup": "stay",
              "outlet": 3
            }
          ],
          "pulses": [
            {
              "pulse": "off",
              "width": 1000,
              "outlet": 0
            },
            {
              "pulse": "off",
              "width": 1000,
              "outlet": 1
            },
            {
              "pulse": "off",
              "width": 1000,
              "outlet": 2
            },
            {
              "pulse": "off",
              "width": 1000,
              "outlet": 3
            }
          ],
          "switches": [
            {
              "switch": "off",
              "outlet": 0
            },
            {
              "switch": "off",
              "outlet": 1
            },
            {
              "switch": "off",
              "outlet": 2
            },
            {
              "switch": "on",
              "outlet": 3
            }
          ]
        },
        "model": "4CHPROR3",
        "online": true,
        "localtype": "strip",
        "host": "192.168.2.50:8081"
      }
    }
  }
}
heidricha commented 1 year ago

How to refresh the device data? I found no information in the README, but the device data is outdated. Looks like integration doesn't even try to refresh them. How to do that?

heidricha commented 1 year ago

I "deleted" the integration, and restarted tHA. For some reason, the integration didn't really get deleted but reloaded the device configuration. Now the firmware data is up-to-date.