Removing disconnected Mysenors from States Page

I’ve been gradually connecting more of Mysensors to HA, generally with good success. however I have noticed that during my testing that once I disconnect a sensor it still continues to appear along the top of the States page? I was assuming that they would automatically disappear as and when I disconnected them??

So mys question is it possible to remove them from the States page manually, as it is very confusing to see disconnected as well as connect Mysensors still being displayed there??

I answered same question time ago here :wink:
Basically you’ll need to edit de .json file (with HA stopped), and remove those disconnected sensors.

Thanks @danichispa sorry I didn’t search the forum very well, I guessed it must be something like that, I assume because they are set to be persistent?

Where about will I find the mysensors.json file?

I guess it will be at the same location as your configuration.yaml.
Haven’t you set up the location when configuring mysensors? If not I think it will be mysensors.json