-
Notifications
You must be signed in to change notification settings - Fork 21
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
Implement dynamic ignore_items + service calls #162
base: main
Are you sure you want to change the base?
Conversation
I'm not sure if this is something that should be part of Watchman. I've this situation with my RV which occasionally obviously is away from home, and thus from HomeAssistant. For my entities that are in the RV, I use "python_script.set_state" to set their state as "away" when the RV is not at home. That excludes them from watchman reports when their unavailability is obvious. It also shows their state in dashboards clearly as something that is anticipated under such conditions. |
Externally changing an entities state could have nasty side effects that should ideally be avoided, and would require a user to alter the state for each of these entities. Looking at my setup there could be hundreds of entities offline at any given time which would make altering all those states unfeasible. On the other hand, a single call to |
Do you have a suggested solution to show their states on dashboards as something that is expected, under those condititions ? |
Hi @RoboMagus, thanks for the PR. I believe this task can be simplified with a service that just overwrites the content of the Please note that the format of I haven't merged these changes into the main branch yet, doing so will definitely cause conflicts with your PRs. I apologize for the inconvenience. |
The 0.6.4 is tested and ready to publish, but I'm struggling with hassfest validation flow bug Upd: apparently, failed hassfest validation does not prevent release to publish to HACS, 0.4.6-beta.0 is out! 🎉 |
This adds an additional
ignore_items
list that is dynamically populated by calling newly added serviceswatchman.add_ignored_items
andwatchman.remove_ignored_items
. This would enable users to build automations that change what entities should be ignored depending on various external conditions.Potentially a solution for #100.
Not sure if this is the best approach to get dynamic filtering support implemented though, so feel free to brainstorm / suggest improvements!
Potential improvements:
ignore_items
list so this info can be taken into account when populating the dynamic list.