Replies: 1 comment 2 replies
-
So, if I understood that correctly you want to achieve:
I think you can achieve this via a stoptimer and a variable. On not_home states always start the timer and then set a flow variable like presence_grace_period = true. If the timer expires run your going away flow and set the variable to false. For home states you can use a switch node to check the variable state -> if it's true stop the timer and set it to false, if it's false run your coming home flow. At least that's what I'm imagining in my head right now, there may be more elegant ways. :) There is nothing native in room-assistant to handle this particular use case, but it is something worth thinking about for the future since it is likely a somewhat common scenario. |
Beta Was this translation helpful? Give feedback.
-
Hi all,
I have a Samsung S10 and a rather simple Home Assistant/Room Assistant automation that turns my entrance lights on when I get home and turns the hall light off when I leave. The automation works great other than one hiccup: there are occasions when the hall lights turn off (or on) randomly when I am home (off, roughly 10 seconds, on/vice versa), most notably when my phone is on a wireless charger and of course when I'm trying to sleep!! My guess is that the charger is affecting the BT signal causing Room Assistant to "think" I'm not home. I have played with the RSSI strength but that doesn't seem to solve the issue. I live in a condo, HA is running on a RPi 4 and the wireless charger in the kitchen about 10 feet away from the RPi with almost direct LOS (Line Of Sight). Anyone else run into this issue?
A solution I'm thinking of is using Node Red to run a timer in parallel with the lights turning on (or off) where if the timer is running (say 5 minutes) so that if the state changes within that 5 minutes, the timer is reset. Once I leave the house, the timer will expire and the 'not_home' state will be published to the lights, thus turning them off. Still mucking around with this. I'm not sure how to make the lights turn on right away but be "blocked" if the timer is running.
Thanks for any help here :)
Beta Was this translation helpful? Give feedback.
All reactions