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

Feature: Auto-Dim in the evening #67

Open
BrookeDot opened this issue Nov 22, 2023 · 5 comments
Open

Feature: Auto-Dim in the evening #67

BrookeDot opened this issue Nov 22, 2023 · 5 comments
Labels
enhancement New feature or request

Comments

@BrookeDot
Copy link

One of my favorite features of my Tidbyt is that is has features to:

  • Dim in the evening
  • Display a dim clock (opposed to cycling apps) in the evening.

I would like to enable such a feature for my Obegraensad. I've been thinking about the best way to implement this for a while and am not thinking a "Plugin" make sense as I'd want to set the brightness in the loop.

Currently I am thinking of adding a few new constants for MIN_BRIGHTNESS, DIM_TIME, ON_TIME. I also thought of getting the sunset time based on the GPS coordinates which would also be fairly straightforward but feels a bit "over engineered" to me as setting a fixed time allows more control. Maybe that's a V2 option to allow SUNSET to be defined within the auto-dimming setting.

Things do get slightly more complicated with the web app component of this allowing brightness to be set. I'm wondering it it makes sense to offer a checkbox for "auto dim" in the web app which disables the brightness or if we can just recalculate the "steps" to MIN_BRIGHTNESS when the brightness level changes.

I mean as I type this, I was originally thinking the screen would slowly dim over time. However, the simplest approach would just be to dim to a certain level at a given time.

In short, what I am saying/asking is if this feature would be useful for others and if so if they have thoughts on the best approach before I start to tinker.

Related: #66

@jekkos
Copy link
Contributor

jekkos commented Nov 23, 2023

I installed home assistant two weekends ago and I'm quite fond of it now. Most of the triggers you describe are already implemented there. If the matrix can be exposed as an entity then a platform like that can make automations like this in a couple of clicks. To me that seems less work while it would also create other possibilities.

But I agree that dimming it at night would be a nice feature.

@grzegorztomasiak
Copy link

One of my favorite features of my Tidbyt is that is has features to:
Wow I did not know about Tidbyt, Im gonna order few! thanks man.

@jekkos
Copy link
Contributor

jekkos commented Nov 27, 2023

Wow I did not know about Tidbyt, Im gonna order few! thanks man.

I have now found this one below
https://blakadder.com/ulanzi-pixel-clock/

its a lot cheaper and esp32 already installed. You can run pixelit software on this it makes it very nice to use

@kohlsalem
Copy link
Contributor

Hmm, i could have added here instead of making a new issue: #74

I think a light sensor is the best way to handle the dimming.

@MauiKano
Copy link

I did add a PIR sensor. If a person is in its range, the LED panel is switched to maximum brightness. After a configurable time a timer event triggers a ISR that reduces the brightness to a minimum (or could completely dim). To me, that works even better than just dimming in the evening. You find my mods on my fork of the code .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants