Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spamming HA with entities #441

Open
1 task done
jchristianj opened this issue Jul 14, 2024 · 14 comments
Open
1 task done

Spamming HA with entities #441

jchristianj opened this issue Jul 14, 2024 · 14 comments

Comments

@jchristianj
Copy link

jchristianj commented Jul 14, 2024

What happened?

Each time the integration is reloaded, a new entitiy for each zone with suffix _n is created.

How to reproduce

Reload integration
config_entry-smart_irrigation-c34d6b3034b69cc97400485090710263.json

Relevant log output

No response

Which version are you running?

v2024.7.5

Diagnostics file

  • I have attached a diagnostics file

Additional information

No response

@jchristianj jchristianj added the bug Something isn't working label Jul 14, 2024
@mistergyle
Copy link

duplicates #372

@jeroenterheerdt
Copy link
Owner

Duplicate of #372

@jeroenterheerdt jeroenterheerdt marked this as a duplicate of #372 Jul 16, 2024
@jeroenterheerdt jeroenterheerdt added awaiting user verification and removed bug Something isn't working labels Jul 19, 2024
@jeroenterheerdt
Copy link
Owner

uninstall, reinstall should fix this.

@jchristianj
Copy link
Author

Unfortunately not. Completely removed the device, removed the integration, removed the HACS integration, rebooted, started from scratch with v2024.7.6, needed to configure everything (zones, modules, sensor group, weather API) new, but it still produces the *_n entities upon each reload.

@jeroenterheerdt jeroenterheerdt added bug Something isn't working and removed awaiting user verification labels Jul 19, 2024
@jeroenterheerdt
Copy link
Owner

OK, thanks. I will need to do some more digging then on why this happens. Thanks.

@jeroenterheerdt
Copy link
Owner

I tried, I tried, and I tried again but cannot reproduce this on any environment I have :(

@lukasz-burak
Copy link

I do have the same issue, entities just duplicate every integration refresh.
image

@MonsterEnergy-wtf
Copy link

Me2.
3 zones, 57 Entities. More to come 😁

@jeroenterheerdt
Copy link
Owner

jeroenterheerdt commented Aug 10, 2024

I see two potential issues that might be causing it. The add this sensor activity gets called twice per zone and somehow the name generator adds the extra N all the time. The weird part is I didn't change anything in this area recently. Are you seeing the original zone and zones with _N added? Or just zone_Ns?

@jeroenterheerdt
Copy link
Owner

Come to think of it, was it working correctly for you before? If so, what version worked normally?

@MonsterEnergy-wtf
Copy link

MonsterEnergy-wtf commented Aug 10, 2024

I saw the regular one without the extension _n and a lot of same with the extension.
I endet up by removing the smart irrigation device ( not the integration) and added it again. The settings were kept and now everything seems to be fine. For now.

Not sure if this helps, but I played around with the experimental "Continuous updates for sensors" before I faced this issue.
After my testing I realized that the multiple entities were created. Maybe this is an side effect of the experimental function?

@jeroenterheerdt
Copy link
Owner

OK, maybe thanks for letting me know you found a solution. The others in this thread, can you let me know if the above helps for you as well?

@jchristianj
Copy link
Author

Sorry, for me it is still not working and each reload of the integration doubles up my entities. I followed the steps to remove the smart irrigation device (which removes the integration as well) and re-adding it, with a HA restart in between. Unfortunately, all my settings were not kept and I had to reconfigure the integration, starting with the OWM Api Key and re-configuring all zones and modules.

@mistergyle
Copy link

Same here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants