travisghansen / hass-pfsense

pfSense integration with Home Assistant
189 stars 27 forks source link

Duplicate Device Added After Upgrade and old entities stop working #99

Open jstride opened 2 years ago

jstride commented 2 years ago

image

After upgrading a dupliate entry is added (the location is blank compared to the original) and all entitiies are duplicated with _2 at the end. The original entities are no longer reported.

travisghansen commented 2 years ago

From what version to what version? Did you happen to reinstall pfsense?

jstride commented 2 years ago

I'm on v0.5.7 - upgrade was from the last minor version as I upgrade regularly. Only thing that has changed AFAIK is I rebooted the router and connected it to new switch via DAC rather than fibre module so one of the primary interfaces will have had a different speed.

I did delete, restart HASS, then re-add the router a week ago but that didn't create a duplicate at the time, the duplicate has appeared since the reboot of the router.

travisghansen commented 2 years ago

I’m wondering if the netgate id of the device changed. That unique id is used by the integration and if it changes then that would explain new entities.

Can you just remove the integration and re-add to make them all reappear without any duplicates?

jstride commented 2 years ago

Yes, removing and re-adding does remove the duplicate. I had done this previously when a duplicate had occurred.

This has resolved the issue, but still don't understand the cause. Will keep an eye our for if it happens again. As an FYI 0.57->0.58 was offered so I did the plugin upgrade after removing the integrations and before re-adding.


From: Travis Glenn Hansen @.> Sent: Monday, 15 August 2022 22:30 To: travisghansen/hass-pfsense @.> Cc: Jake Stride @.>; Author @.> Subject: Re: [travisghansen/hass-pfsense] Duplicate Device Added After Upgrade and old entities stop working (Issue #99)

I’m wondering if the netgate id of the device changed. That unique id is used by the integration and if it changes then that would explain new entities.

Can you just remove the integration and re-add to make them all reappear without any duplicates?

— Reply to this email directly, view it on GitHubhttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ftravisghansen%2Fhass-pfsense%2Fissues%2F99%23issuecomment-1215079108&data=05%7C01%7C%7Cfd676c1407ff46556b6908da7ecaa5ef%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637961706069527671%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=SUIBzxg2ijaSYU0%2F2kitaHhhYNvEbmepnzs62t97ADo%3D&reserved=0, or unsubscribehttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAALOWBXAIJB47JE2G5UWDUTVZJH6XANCNFSM56O3EEKA&data=05%7C01%7C%7Cfd676c1407ff46556b6908da7ecaa5ef%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637961706069527671%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=ElDF9iG0CDVb0QbbWOaHkWBMsLS1OF3YswRGkvDVL04%3D&reserved=0. You are receiving this because you authored the thread.Message ID: @.***>

travisghansen commented 2 years ago

Yeah, make note of your netgate device id and let's observe if it changes in the future.