Skip to content

Only enable light control when below minimum lux level #246

Answered by jseidl
bmcclure asked this question in Q&A
Discussion options

You must be logged in to vote

It seems like the best way around the lux level raising when the lights turn on is only checking that sensor when the lights are off, but I'm not sure if that's possible with MA currently.

You could use a template for that. Pseudo code would be something like

if lights on:
    return dark
else:
    return (lux < threshold)

But even then you might have other problems with other scenario configurations. I personally just deem individual dark state tracking to be something that requires a lot of work for little value.

What I do is short circuit by:

  • Does this room have windows / receive exterior light? (e.g. Bathrooms and pantry maybe be always dark).
    • If yes, use exterior light sensor
    • If…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by jseidl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants