Read the statement by Michael Teeuw here.
MMM-AutoDimmer
-
https://github.com/Fifteen15Studios/MMM-AutoDimmer
I made this module because my MM is in my living room, and at night it’s really bright. I found a module that would dim at sunset and brighten at sunrise, but I wanted more control than that. So I forked it and started modifying it.
With MMM-AutoDimmer, you can set schedules with a time to dim, a time to brighten, and how much to dim. You can have multiple schedules so that, for example, it dims at night and it also dims while you’re at work.
The latest version also can react to notifications. I use this in conjunction with a module for HomeAssistant. In my case, I have a schedule that is active 24/7, but only when it receives a notification that my phone is not connected to my home wi-fi. HomeAssistant knows when my phone is connected to my home wi-fi and sends a notification stating whether or not I’m connected. If I’m not connected, the schedule enables and it dims fully (essentially turning off the monitor) to save energy while I’m not home. When I reconnect to wi-fi, that schedule is disabled and it is bright again.
The Home Assistant module can be found here: https://github.com/Fifteen15Studios/MMM-homeassistant-sensors
(It’s also linked on the GitHub page for MMM-AutoDimmer) -
Hi,
Thanks for creating this, I’ve installed it and while it dims and brightens, it doesn’t do it at the times I set-up in config.js
{ module: 'MMM-AutoDimmer', position: 'fullscreen_above', header: '', // Don't change anything above this line config: { schedules: [ {}, // default schedule - 8pm to 7am daily { // will dim to default level of 0.9, from 8am to 5pm, Mon-Fri days: ["Monday","Tuesday","Wednesday","Thursday","Friday"], dimTime: 2330, brightTime: 730 // defaults are used for values that are not explicitly set } ] } },
Sorry, I don’t know what time it is actually dimming, the monitor is in my office but is it possible it’s taking the times from another Time Zone? I’m in CET.
Best regards
-
@lif It looks like you have the default schedule as well as your own schedule. That means that it’s going to dim from 8pm-7am (20:00-07:00) every day (which is the default schedule) and your schedule is setting it to also dim from 11:30pm-7:30am (23:30-7:30) Mon-Fri.
Since these schedules overlap, it’s going to be dim from 8pm-7:30am (20:00-07:30) Mon-Fri and 8pm-7am (20:00-7:00) Sat and Sun
If you only want your schedule, simply remove this line:
{}, // default schedule - 8pm to 7am daily
-
Thank you very much for your reply, I’ll see if that works later tonight.
Best regards
-
I’m hoping you may be able to help me also. Based on your response to @lif I removed the default schedule which helped with making sure my screen brightens at the correct time. I also tried to add in later times for the weekend when my family tends to sleep in, but it is still brightening at the weekday times. I’ve included my config below. Of note, the default times in the MMM-AutoDimmer.js file have been set to match my Saturday and Sunday times and the screen is still brightening too early.
module: 'MMM-AutoDimmer', position: 'fullscreen_above', header: '', // Don't change anything above this line config: { schedules: [ { days: ["Sunday","Saturday"], dimTime:2000, brightTime:700 }, { days: ["Monday","Tuesday","Wednesday","Thursday","Friday"], dimTime: 1930, brightTime: 0530 // defaults are used for values that are not explicitly set }
-
@Como is it brightening early on just Saturday, or both Saturday and Sunday?
My guess is that the Friday schedule is going from Friday night to Saturday morning, which means it would brighten early on Saturday. Then the Saturday and Sunday schedules go into Sunday morning and Monday morning. So you may want to change the days on the schedules to go from Sunday - Thursday, and Friday - Saturday and see if that helps.
-
@Fifteen15Studios great thought on the Friday schedule carrying over. I’ve adjusted tat. It seemed to brighten both weekend mornings, but my kiddos did have me up early and distracted, so I will have to test it more. Thanks for the suggestion!