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

Save alert state #49

Open
alexyao2015 opened this issue Jan 5, 2021 · 6 comments
Open

Save alert state #49

alexyao2015 opened this issue Jan 5, 2021 · 6 comments
Labels
bug Something isn't working confirmed We know what should be done to resolve the issue

Comments

@alexyao2015
Copy link
Member

Alerts are currently sent directly to HA and always returns none regardless of the actual state. Save a received state to the config or to memory for future retrieval.

@marcelveldt
Copy link
Collaborator

That is not true it actually looks for any active effect from HASS state.

Schermafbeelding 2021-01-05 om 09 33 15

@alexyao2015
Copy link
Member Author

I mean the "alert" item, not effects. It's calling "flash" in HA. I don't believe that's something that HA returns when you call effects, so I think the only way to do this is by saving it ourselves.

@marcelveldt
Copy link
Collaborator

You're right. Got to have some more coffee :-)

Does HA return an attribute containing the state of the "flash" if you set it ?
Actually now that I think of it. This is always a one-off thing.

Schermafbeelding 2021-01-05 om 09 38 34

@alexyao2015
Copy link
Member Author

It is supposed to return the value of the last alert that was called, even if the alert has already passed. Perhaps a config entry?

@marcelveldt
Copy link
Collaborator

I'd say save it to the light config entry indeed.

@alexyao2015 alexyao2015 added bug Something isn't working confirmed We know what should be done to resolve the issue labels Jan 8, 2021
@github-actions
Copy link
Contributor

Stale issue message

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working confirmed We know what should be done to resolve the issue
Projects
Status: In Progress
Development

No branches or pull requests

2 participants