question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature request: Option for automatic off only

See original GitHub issue

I have quite a few lights in the house where I currently have timers that turn the lights off if there is no one in the room. I have no interest in automatically turning them on when someone enters the room, but I would like to be able to turn them off after a period of time if someone “forgets” to.

I’m not sure if the best way to do this would be to have separate control_lights and control_lights_off features, or if there should be main_lights and main_lights_off config options. I like the latter gives more flexibility, but it would also require that there be an option for “None” in main_lights instead of the current default of “all”.

Having the ability to just turn lights off when the presence detector goes off would let me retire quite a bit of manual code I have running in my ISY.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
sjthespiancommented, Jul 3, 2021

I need to run a couple more tests, but I think this is going to work. I have it reliably turning lights off in my home office, I just need to make sure that isn’t turning them on after dark tonight.

1reaction
danielbrunt57commented, Mar 25, 2021

After re-reading synapselabs.io posts bring homeassistant areas to life with magic areas and doing some testing here, I believe the existing integration will work for your needs…

Magic Areas will automatically turn off all light, climate and media_player entities in that area when presence is changed to off. This ensures you’ll never let anything running when the room is not being used.

On disable state, Magic Areas won’t turn any lights on, but will still turn them off if the area presence state goes to off.

The area will turn off area lights whenever presence is cleared regardless of whether night: is true or false. As long as night: is never true, it will not turn on the lights when presence is detected.
So just specify a valid entity ID to disable automatic light control [night_entity] and set its Entity state to disable automatic light control to a value that will never be true. I.e. rather than on|off enter something like never. Or use a new entity that you may never set to on and specify its state for true as on. As long as the state of the night_entity never matches the specified state string, automatic lighting will never turn the lights on but will turn them off when presence is cleared.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Feature request: option to disable certain rules #902 - GitHub
In Feature request: hide warnings/errors if they will be auto-fixed #267, the list of rules to disable is determined by this plugin alone....
Read more >
Feature Request: Option to turn off auto-lock - Fitbit Community
Turning auto-lock off means that the device will not go to sleep. It uses more battery, but you wont have to unlock the...
Read more >
[Feature Request] Turn of auto-space after prediction
[Feature Request] Turn of auto-space after prediction ... Just implement an easy option to shut off this autospaces that are annoying for ...
Read more >
Topics tagged feature-request - Hue Essentials Community
App crashing when trying to create 2 timezones with different button press behavior · Scenes, Effects, Entertainment · feature-request. 1 ; Auto turn...
Read more >
Feature Request: Auto-fill My Day - Microsoft Tech Community
When I first started using this app, I assumed that setting the due date would automatically transfer it into the "My Day" section...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found