Ecowitt: broken after disabling then re-adding

I’ve posted this as a GitHub Issue, but maybe it’d be useful to also seek discussion here…

I needed to briefly take down my Ecowitt weather station (turns out a spider was blocking the rain sensor). And so as to not collect garbage data from the various sensors, I disabled the device in HA, assuming I would then be able to enable it afterward.

But after clearing the spider & cleaning things, I found the Ecowitt integration was no longer appearing in the list of active integrations, even if searched for in the active integrations view. So I then re-added the Ecowitt integration, which generated a new tokenized URL for my GW1200B to send metrics to.

I now have two Ecowitt devices. One has zero entities, and the other has the usual (for my setup) 27 entities. But none of those entities are receiving data from the Ecowitt gateway.

I might go to a forum for tips on working this out, but this situation seems like unexpected behavior with the Ecowitt integration. I could attempt deleting the ecowitt device that lacks any entities, but I’m not confident that will preserve the historical data HA has already collected from my weather station.

With no other path available, I’ve given in & deleted both Ecowitt devices from HA, and re-added it. I’m again seeing weather sensor data flowing in to HA. And the historical data collected is now only available in the Influx instance I’ve got HA exporting everything to. At least I can see that historical data in HA’s Grafana. Less than ideal, but it’ll have to do.