-
Notifications
You must be signed in to change notification settings - Fork 0
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
Warnings should be visible before they actually start #21
Comments
Hi, that's not a bug but I understand what you mean. The alert starts at 2PM today (see The warning details are there because they are already available but the status is not active as the warning starts at 2PM. You are not the first one to be surprised by the behavior, I'll consider adding a sensor "next warning starts in" showing when is the next warning starting. This way, people can create automation based on that. |
I also noticed that the API of the IRM times out several times per day. When this happens, the integration cannot refresh the data and Home Assistant shows the sensors as 'unavailable' until a successful refresh. Those API timeouts may explain why you don't always get the camera hint. To check if this the API timing out, you can open the logs of your Home Assistant (Settings > System > Logs) and look for those messages:
When this happens, all the sensors of the integration go 'unavailable' for about 7 minutes (the polling interval). I'll check if I can improve the integration to handle the timeouts when I have some time. |
I created a separate issue to track the timeouts issue. I keep this issue to track the main question here: the warning not being shown ahead of time but only when it is truly active. To investigate:
|
The changes related to the warnings have been merged into main. I tested the feature with unit tests but I'll wait until a real warning comes to see it in action before releasing it. |
hi,
I am on the latest version, I am in Belgium, in Liège, where, for the moment, there is a yellow alert in the wind, but the alert sensor always tells me "secure"
Is there anything to change or modify or is it a bug?
there is indeed alert, so why tell me “secure”??
The text was updated successfully, but these errors were encountered: