-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
[BUG] The on_empty_queue event did not work #93
Comments
This night a had a similar effect :-( |
The on_empty_queue event should not happen. The queue was not empty. There was a screen in the queue. |
That's understandable, what's not so clear is where the date and time disappeared to. |
They don't disappear. They are created with 10minutes of live. On my clock the date and time disappear after around 10 minutes but they reappear randomly. |
I see two possible ways for this.
A would favor number 1. |
Well, we basically have no screens that are permanent, since we already have at least two types of watches.
or to set the minimum starting set, which is immortal. |
What is the differenz between a permanent screen and a immortal one? |
Basically nothing, but we need to understand where the temporary screen is and where it is not, and when temporary can become permanent or vice versa. |
We could try replacing the |
How do we know which screen expired? |
Judging by the source code, the information about the screen is transmitted there, but we can not analyze it, just increase the life of the necessary screens, even by an hour, even by a day. |
Hi, My first implementation had a mandatory clock-screen, but some people wanted a normaly black-screen and only sometimes data to be displayed. If you always wan't a clock in your queue you can' add e.g.: on_empty_queue:
then:
- lambda: |-
id(rgb8x32).icon_clock("emptycal|day#1",1440,10,false); If you wan't a black screen you leave it empty. |
But if we have a weather screen running all the time even a life of a day will run out and the on_empty_screen should never be called. |
Besides the clock I don't understand the concept of permanent screens. For me, e.g. the wind speed is pushed with a lifetime of two minutes to the display by an automation that triggers on every state change. So the wind speed is "permanent" on the screen but totally controlled by home assistant. If you need something like a "motto of the day" set the lifetime to 24*60 minutes triggers by an automation on home assistant at 12p.m.. |
I have:
And weather and temperature from HA, trigger state changes, lifetime 30 min And a day, two days later, all I have is the weather on my screen. No clock or time |
I'd like to avoid that, it's an internal mechanism, I think HA is unnecessary. |
The problem can also happen without any "permanent" screens. Ad some point in time the clock screen dies. An if then any screen is in the queue the clock is gone. |
Judging by the discussion it's not a bug, but that's how the queue works. |
Bug report
Describe the bug
Yesterday started preparatory work to modify the source code to create Pull Request, flashed for the correct config
2023.9
, specified as in the documentation:Also from HA, the weather is constantly displayed on the screen. I.e. constant 3 screens,
clock
,date
,weather
(updated often because it is tied not only to the weather, but also to the temperature).But this morning, there was
only weather
on the screen, no clock or date. It seems that theon_empty_queue
event did not happen.Additional information
The text was updated successfully, but these errors were encountered: