Git Product home page Git Product logo

night-mode's Introduction

Night Mode

hacs_badge Buy Me A Coffee

Lowers the default brightness of lights at night.

Installation

This app is best installed using HACS, so that you can easily track and download updates.

Alternatively, you can download the nightmode directory from inside the apps directory here to your local apps directory, then add the configuration to enable the nightmode module.

How it works

You will need to create an entity called input_boolean.night_mode. When this input_boolean is turned on, whether manually or by another automation you create, night mode will be activated for the lights you define in apps.yaml. Any lights that are on will dim to the level you have specified in apps.yaml. If a light is turned on while night mode is on, that light will dim to the night mode brightness automatically.

If night mode hasn't already been turned off manually or by another automation, it will be turned off automatically at sunrise. The app will attempt to store the previous daytime brightness of any lights turned on at night and restore that level during the day. There is one known issue with this, as the daytime values are not stored in a persistent fashion and therefore won't persist in the event the app or Home Assistant are restarted. However, improvements to this functionality are on the roadmap.

App configuration

night_mode:
  module: nightmode
  class: NightMode
  light: light.kitchen_sink,light.kitchen_table,light.stairs
  night_brightness: 3
key optional type default description
module False string nightmode
class False string NightMode
light True string A comma-delimited list of entities you want to automatically control the default brightness of during night mode.
night_brighness True number from 1-255 The default brightness of the lights listed above during night mode.

Issues/Feature Requests

Please log any issues or feature requests in this GitHub repository for me to review.

night-mode's People

Contributors

apop880 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

remycrochon

night-mode's Issues

Feature Request: Set a default brightness for day time

I have a light that I want to full brightness during the day, and dim at night. For some reason, once its been turned on at night it always seems to use the dim setting when I turn it on during the day.

I'd like a brightness level that always gets used during the day, so not using the 'saved' brightness for a day value but always using a preset value.

Free selection of night-mode input

It would be nice if the night-mode input can be selected freely, so there is no hard requirement for it to be called "night_mode". I already have a night-mode function I use extensively (switching of outside lights and so on) so it would be nice not to have to add another input for this.

Disable automatich switching off at sunrise

I control night-mode with a light sensor outside in combination with the state of my alarm system, so I would prefer to be able to disable the automatic switching back to day mode on sunrise as my automation takes care of that and it may be later than the "official" sunrise.

wont work

Hi,

i did install the app thru hacs.
i have created a "input_boolean.night_mode"
and changed appdaemon/apps/apps.yaml to
night_mode: module: nightmode class: NightMode light: light.0xec1bbdfffe7f3274_light,light.0x0017880100dff179_light night_brightness: 3

But if i put "input_boolean.night_mode" to on nothing happens.

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.