listen_event and then the special HA event. please check the docs
i would however use an input_boolean.
set it to off on default in HA, and to on when the groups are made.
when HA restarts, the boolean changes state to off, so the callback gets triggered ands sets it to on again.
Thanks for the reply, the error came from the log on home assistant. Iâve copied and pasted an example of the error from home-assistant.log below:
2020-01-17 07:41:58 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.139915952104016] extra keys not allowed @ data['0']
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 134, in handle_call_service
connection.context(msg),
File "/usr/src/homeassistant/homeassistant/core.py", line 1204, in async_call
processed_data = handler.schema(service_data)
File "/usr/local/lib/python3.7/site-packages/voluptuous/schema_builder.py", line 272, in __call__
return self._compiled([], data)
File "/usr/local/lib/python3.7/site-packages/voluptuous/schema_builder.py", line 594, in validate_dict
return base_validate(path, iteritems(data), out)
File "/usr/local/lib/python3.7/site-packages/voluptuous/schema_builder.py", line 432, in validate_mapping
raise er.MultipleInvalid(errors)
voluptuous.error.MultipleInvalid: extra keys not allowed @ data['0']
Is there a line before this? Canât really help without seeing what component itâs coming from. Voluptuous is the config validator, so itâs most likely a bad config.
2020-01-17 07:41:56 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform alexa_media is taking over 10 seconds.
UPDATE: I think I may have pinpointed the issues. duplicate template platform reference in sensors file that isnât picked up in config check. Just rebooting now testing.
Signal messenger works well so far, able to send a notification with an image attached.
note the attachment key threw an error extra keys not allowed @ data['attachment'] when following the documentation signal messenger.
It works for me by putting this in the automation this way instead:
action:
- data:
data:
attachment: "/config/www/images/myimage.png"
message: "There's somebody at the door!"
service: notify.signal
It seems it must be in the /config/ directory for HA to see it? Didnât work for me using /tmp/
Really appreciate this addition, been wanting this as feature and itâs now here and it works well.
making two scripts like above fixed all my all_* problems once they have been turned into a script, create an automation which runs both scripts on homeassistant start.
I see. The forum post contains the blog post, posted by âsystemâ. I did not know I had any reason to think this post would be different from whatâs posted on https://www.home-assistant.io/blog/
So I made the (imo reasonable) assumption that the âblogâ post in this forum was a verbatim copy of the web site blog post. Apparently that assumption was wrong.
Then, Iâd like to comment that I think this discrepancy is a problem instead.