Howto: Fix Ecowitt Integration when it lost the WiFi config

Due to a blackout my Ecowitt weather station lost it’s WiFi configuration and setup for the Ecowitt HA integration.

Of course I could simply readd it as a new device, but I really wanted to continue using the already configured one. However, for that I needed the appropriate API endpoint to configure in the “WS View” app. This seems not to be shown anywhere in the GUI. So here is how to find it:

Log into your home assistant OS and go to the hidden ~/homeassistant/.storage folder. Type less core.config_entries. This displays the contents. Type /ecowitt, this will jump to the configured ecowitt device, scroll a bit up and you should see a webhook_id. My entry looks like this:

{
        "created_at": "1970-01-01T00:00:00+00:00",
        "data": {
          "webhook_id": "1ac1edbcdd367af1d56fc7ee4e7fcb35"
        },
        "disabled_by": null,
        "domain": "ecowitt",
        "entry_id": "34abf6a7afe27a236ec83d301d1f441e",
        "minor_version": 1,
        "modified_at": "1970-01-01T00:00:00+00:00",
        "options": {},
        "pref_disable_new_entities": false,
        "pref_disable_polling": false,
        "source": "user",
        "title": "Ecowitt",
        "unique_id": null,
        "version": 1
      },

Now you can configure your station in the WS View App using the following data:

Customized: Enable
Protocol Type Same As: Ecowitt
Server IP: <your home assistant IP>
Path: /api/webhook/<your webhook_id from above>
Port: 8123
Upload Interval: 60

After a minute your home assistant device should receive data again.

Hope this helps someone in the future.

1 Like