I want to use two ST Presence Sensors (with battery hack), put one in each of two vehicles that I drive and show me away or present regardless of which vehicle I drive that day. I am currently using two of these sensors, one of which I have to move between my two vehicles.We use these to set HSM when wife and I leave or arrive. She drives the same vehicle all the time so I have a sensor with battery hack in her vehicle that stays there. I think I need to create a Virtual Presence Sensor and some how tie it all together in a Rule, I'm just not smart enough to make it happen. Any help will be greatly appreciated.
I like that. Thanks!
Why not just use your phone as the presence sensor? No need to tie them together. Then you can setup a rule something like:
Trigger:
mobile2 OR mobile2 change
Action:
if (mobile1 AND mobile2) are departed - set HSM to away
elseIf (mobile1 OR mobile2) are arrived - set HSM to home
endIf
I tried that for a while. Wasnāt reliable and was brutal on phone battery. The ST presence has been 100% reliable for 6 months now. With geo turned off in HE app it uses 1-2% battery
That's a great point. I didn't experience the battery drain on my iPhone, but I did (and do) have some detection reliability issues. The rule above, without a virtual device, should still work with the ST presence sensors.
Here's what I want to do, just not sure how to set it up in RM:
If either (not both) of Presence Sensor 1 or 2 are present/away then set Virtual Presence Sensor to that status. I would then use the Virtual Presence Sensor to trigger my HSM.
This is my suggestion, others may chime in. As was said on Monday - KISS. To keep it simple, a virtual device is not needed (Jimmy and Bostonian MM and physical presence sensors):
If you also use "Arm Present" additional logic may be needed but this is simple if you just use Arm and Disarm.
But I donāt want āALLā I want either to set present or away. I want to place a Sensor in each of two vehicles that I drive on different occasions. Thatās the issue I have currently. Wifeās stays in her vehicle. I have been moving my sensor between my two vehicles. I ordered a 3rd sensor to prevent having to move mine around. Hope this makes sense.
Ah! Got it now. Sorry for the misunderstanding. I would think the app sensor is the right solution here, but you still can achieve what you are doing with two physical sensors and no virtual sensors. (BostonianMM is my wife's sensor and both Jimmy and JimmyLocative refer to my sensors).
Don't get me wrong, nothing wrong with using virtual sensors and I use them for other things. You will achieve the same result. It's just more complicated.
The key thing is the two presence sensors for me are inside of parenthesis and setup as an OR logic test while comparing that result against my wife's presence sensor.
@tgrant48 I'm sorry. I looked again at the rule I posted and it would not work for your use. It should be something like:
If all are present> virtual device present
Else-If any are not present> virtual device not present
I think you need to get rid of that first 'NOT' in the ELSE-IF. ( Not not present would be the same as present)
Not even sure how I got that in there but taking it out made it work perfectly! Thanks!