-
I have all of my areas configured basically the same--the lights come on when occupied or extended, and the sleep lights come on during sleep. However, my living room lights seem to be on every morning when I come downstairs (even though they are turned off at night during sleep properly), and tend to stay on all day unless I manually turn them off. I thought maybe it was because I was also using the "playing" state to determine occupancy and one of my media players was misbehaving, but I removed that option so it only uses "on" and "open" states and the lights are still on all the time. During troubleshooting, I also completely removed the dark state and accented state entities so that the logic is simpler, but the issue still persists. Are there common causes for that behavior to occur? I don't have any other automations or external controls turning the lights on so I think it has to be MA, but I'm having trouble determining the reason. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Hmmm this is very weird. What could be happening is that one of the presence sensors is either on all the time or flapping, keeping the area occupied. What the area occupancy binary sensor history looks like? It's been on all the time? If you see the attributes of that Also, when this happens, are the lights on with the area occupied or clear? |
Beta Was this translation helpful? Give feedback.
-
Ah, that does seem related. The binary sensor every once in a while resets itself to "on" but never turns off, it's just solid on. It's using the same type of Aqara motion sensor that most of my other rooms have, although I have a LOT of media players and other sensors in the room that are also being taken into account with that binary sensor so one of them may be misbehaving |
Beta Was this translation helpful? Give feedback.
-
Aha! I created a binary sensor, perhaps counter-intuitively, to indicate when I am NOT watching TV, for light automation use, but didn't think about it until now that it's using that binary sensor as a presense sensor, so anytime I am not watching TV, there is presence in the room. I'm going to exclude that sensor and I am betting that'll fix things. Thanks for pointing me in the right direction! |
Beta Was this translation helpful? Give feedback.
Hey Ben,
Sorry for the delay on getting back to you. This week has been incredibly crazy!
Hmm. So the area tracks entities over entity state change callbacks from Home Assistant. As a safe-measure, in case one of those callbacks are missed somehow, all entities are checked on
update_interval
. Might be that one of those state change events from HA didn't reached out MA. When you say "should no longer", does it mean the sensor's entity in Home Assistant wasoff
and it was still showing in the area as anactive_sensor
?