Replies: 1 comment 8 replies
-
Hello. The event that is highlighted on that entity is the one that the entity listens for, but does not contain all events. The event highlighted on the example is only fired when retrieving saving sessions and there's a session that hasn't been seen before in the available events array. When events are triggers, you can't "test" the automation because the event trigger data will be empty. If you join the session outside of HA before HA has a chance to update the data then the event will never fire as it will go straight into the joined events array. As for the automation itself, it's based on one I use that is configured via yaml rather than through the UI. Ive just merged a PR from another user that updates these to be more UI friendly so they can be pasted in. Below is mine, which is a variation of what's in the docs and triggered yesterday. Notify channels event is my own custom event.
|
Beta Was this translation helpful? Give feedback.
-
Firstly this is just a brilliant integration.
I'm trying to use this example https://github.com/BottlecapDave/HomeAssistant-OctopusEnergy/blob/main/_docs/services.md#automation-example-1 to Join a saving event automatically.
It doesn't work and I wonder if the events and structure of the attributes has changed, or the entity is not persistent. I am on the latest version of the integration.
First issue is the Automation YAML is not properly formatted/structured. When I correct that, HA complains about the event data.
Looking at the events available, all I have in the Events is
octopus_energy_all_octoplus_saving_sessions
and in the States,event.octopus_energy_a_xxxxxxx_octoplus_saving_session_events
which has an array (empty as I've already joined) ofavailable_events
. Should this be the array that is accessed?However, I could be completely wrong as I don't really understand events (yet).
Beta Was this translation helpful? Give feedback.
All reactions