• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

MMM-AutoDimmer

Scheduled Pinned Locked Moved System
7 Posts 3 Posters 1.4k Views 4 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    Fifteen15Studios
    last edited by Fifteen15Studios Apr 19, 2023, 7:20 PM Apr 19, 2023, 6:28 PM

    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)

    L 1 Reply Last reply Jan 18, 2024, 8:01 PM Reply Quote 3
    • L Offline
      lif @Fifteen15Studios
      last edited by sdetweil Jan 18, 2024, 8:14 PM Jan 18, 2024, 8:01 PM

      @Fifteen15Studios

      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

      F 1 Reply Last reply Jan 18, 2024, 10:07 PM Reply Quote 0
      • F Offline
        Fifteen15Studios @lif
        last edited by Jan 18, 2024, 10:07 PM

        @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
        
        L 1 Reply Last reply Jan 19, 2024, 9:54 AM Reply Quote 0
        • L Offline
          lif @Fifteen15Studios
          last edited by Jan 19, 2024, 9:54 AM

          @Fifteen15Studios

          Thank you very much for your reply, I’ll see if that works later tonight.

          Best regards

          1 Reply Last reply Reply Quote 0
          • C Offline
            Como
            last edited by Feb 10, 2024, 12:52 PM

            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
                  }
            
            F 1 Reply Last reply Feb 10, 2024, 2:15 PM Reply Quote 0
            • F Offline
              Fifteen15Studios @Como
              last edited by Feb 10, 2024, 2:15 PM

              @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.

              C 1 Reply Last reply Feb 14, 2024, 3:48 AM Reply Quote 0
              • C Offline
                Como @Fifteen15Studios
                last edited by Feb 14, 2024, 3:48 AM

                @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!

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post
                Enjoying MagicMirror? Please consider a donation!
                MagicMirror created by Michael Teeuw.
                Forum managed by Sam, technical setup by Karsten.
                This forum is using NodeBB as its core | Contributors
                Contact | Privacy Policy