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

If you disable sensors through Home Assistant they come back after reload #82

Open
skynet01 opened this issue Nov 20, 2023 · 4 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@skynet01
Copy link

Love this integration, I monitor around 30 things with it. I know the integration creates a binary_sensor and a regular sensor for each monitor. I don't need a normal sensor, so I disable them, but they all come back after a day or so. I think it's tied to Uptime Kuma itself reloading and not an integration reload.

Thank you for looking into this

@meichthys
Copy link
Owner

I'll have to take a closer look, but I think this is expected since the entities are re-created each time HA polls UptimeKuma. It was designed this way so you wouldn't have to manually add sensors to Homeassistant after updating UptimeKuma with a new monitor.

@skynet01
Copy link
Author

Ah makes sense, maybe there can be an option to not create the sensor entities at all? :)

@meichthys
Copy link
Owner

I meant to say that the sensors and binary_sensors are re-created each time, but yes, I could see some people preferring just the binary_sensors. You can file that as a separate issue.

This current issue about sensors not staying hidden may be able to be worked around by first checking if a hidden entity exists with the same id, if so, don't re-create it, but i'm just speculating here. I'd have to take a closer look at it (or maybe someone else would be willing to?).

@meichthys meichthys added help wanted Extra attention is needed good first issue Good for newcomers labels Nov 20, 2023
@skynet01
Copy link
Author

Gotcha, ill make another request :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants