Notify
The notify integration in Home Assistant sends messages to people. One of the things you can build with it is a notify group: a single action that forwards whatever you send it to a list of other notify actions, so one call reaches everybody.
Spook raises a repair when a notify group can no longer reach all of its members.
notify:, the one whose members are action names:notify:
- platform: group
name: everyone
services:
- action: phone
- action: tablet
Repairs
Spook looks through your notify groups for members that no longer exist, and tells you in the repairs dashboard. The repair names the group and what is missing from it.
These groups live in YAML, so fixing one means editing your configuration. Spook looks again once Home Assistant has the change, and takes the repair away by itself. New to repairs? Follow Fix your first repair.
Unknown group members
A notify group forwards to a notify action that does not exist anymore, usually because a phone was replaced or an integration removed. Messages sent to the group still reach everyone else, but not that member. You get no error.
Unknown group members
A notify group forwards to a notify action that does not exist anymore, usually because a phone was replaced or an integration removed. Messages sent to the group still reach everyone else, but not that member. You get no error.
How to fix it: Open your configuration, find the notify group the repair names, and correct or remove the missing entries in its services: list. Then restart Home Assistant so it reads the change. The repair disappears by itself once it is fixed.
Every member of a notify group is the name of another notify action, so phone in the configuration means the notify.phone action. Spook looks at the members of every legacy YAML notify group. When Home Assistant does not have one of them, it raises a repair that names the group and the missing actions.
The group keeps working, which is the problem. It starts its members as background tasks and waits on them with asyncio.wait, which does not re-raise. So the group action reports success to whatever called it, no matter how many members failed.
The failure is not lost entirely. Nobody reads the task result, so the event loop eventually reports it as a stray Task exception was never retrieved. That arrives whenever the task happens to be collected, and names no group. It reads like a bug, not like something you configured.
Spook looks again whenever an integration loads, and whenever an action is added or removed.
Use cases
What people use this for:
- Replacing a phone, and with it the notify action it was set up under. Every group that still names the old one keeps sending into nothing.
- Removing a notify integration you no longer use. The groups that forwarded to it do not tell you they lost a member.
Missing something here?
An action, an entity or a repair this integration should have? Say so. Stuck, or found a bug? There is help.
Media player
Spook adds actions that turn the volume of a media player up or down by exactly the step you give, fade it over minutes or hours, play an announcement at a volume of its own and put the volume back after, turn a media player on or off for a while, step it to its next or previous source or sound mode, and skip forward or back by a number of seconds.
Number
Spook adds actions to the number integration that step a number up or down by any amount, jump it to its minimum or maximum, or change the unit it is shown in.
