Giter VIP home page Giter VIP logo

Comments (9)

popy2k14 avatar popy2k14 commented on September 3, 2024 1

thx for looking into it.
As state i am using a workaround now, so take your time :-)

from esphomatrixv2.

popy2k14 avatar popy2k14 commented on September 3, 2024 1

@andrewjswan @lubeda Tested your new PR (tag: 2024.4.1) and it's working as expected.
closing this now thx

from esphomatrixv2.

andrewjswan avatar andrewjswan commented on September 3, 2024

Wait a minute until the lifetime is over and "on_empty_queue" is not triggered.

Night mode simply skips this screen and does not take it into account and does not count its lifetime, but since it is there, then the queue is not empty. According to the log, it looks like this screen is not allowed for night mode, so it just quickly spins into emptiness.

from esphomatrixv2.

popy2k14 avatar popy2k14 commented on September 3, 2024

Got you.
So a new trigger like "on_empty_queue_night_mode" would be a solution?

If i do not take this into account my screen will be empty in night mode.

With such a new trigger, i can react an fill thje queue again.

from esphomatrixv2.

andrewjswan avatar andrewjswan commented on September 3, 2024

So a new trigger like "on_empty_queue_night_mode" would be a solution?

It seems to me that it is superfluous, we need to find where to view the queue and assess whether it is over or not. I'll try, but I don't promise.

from esphomatrixv2.

andrewjswan avatar andrewjswan commented on September 3, 2024

It looks like I found the reason, but I'm not sure.

from esphomatrixv2.

popy2k14 avatar popy2k14 commented on September 3, 2024

The night mode loop and missing "on_empty_queue" trigger is sadly not working with your fix.

But please set the initial brightness not to 255 (= full blast)!
You have set both to 255, so it will dim down from full blast rather than dim up (which i think is better, especially when you have the clock in your sleeping room :-)

So please set it to

    uint8_t brightness_ = 0;
    uint8_t target_brightness_;

PS.: target_brightness_ will be initialized from the pathon CONF variable, so no need to set.
But when you want to be sure they are initialized also when there is an python CONF parsing change,
please set it to:

    uint8_t brightness_ = 0;
    uint8_t target_brightness_ = 0;

thx

from esphomatrixv2.

andrewjswan avatar andrewjswan commented on September 3, 2024

The night mode loop and missing "on_empty_queue" trigger is sadly not working with your fix.

Any log?

from esphomatrixv2.

andrewjswan avatar andrewjswan commented on September 3, 2024

PR updated ...

from esphomatrixv2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.