SmartThings Community

[RELEASE] Enhanced Arrival Sensor - need to temporarily disable an arrival sensor? Now you can

dth_presence

(Warren) #21

I tweaked a few things to make the flow better and added some options to support that. v1.1 is up on GitHub.

Basically, the issue with all of this is that I haven’t found any way to change presence without triggering an event. That’s not so bad in itself but that complicates other things like when you want to disable and enable and the device has moved. At any rate, after a fair amount of tinkering, I decided that the best way to do this is to give an option to force the mode and then it will stay in that mode.

For disable, it stops responding to event changes after it is disabled and for enable it generates events as normal (same as original design). The new options, available for both disable and enable, are:

  • auto: this is the normal mode where the hub tries to reach the sensor and marks it as present or not present based on that. The behavior is that it will start looking as normal and will react as normal.
  • present: Forces the sensor to appear as being present even though it may not be
  • not present: Forces the sensor to appear as being not present even though it may not be

Combining these makes it simpler to get the desired behavior. For reference, I personally use “not present” on disable and “auto” on enable. Taking that as an example, the sensor would be away when it is disabled so as to not interfere with SHM events and modes when it is not being used. When it is enabled, it returns to the normal state as it starts to look but does not force it be present

The flow now seems more smooth as long as you can tolerate the forced mode change and what effects it has on SHM or other things that might key off of its presence.


( I hate Mondays) #22

I’m sorry, which updates?


(Borristhecat) #23

think this one :slight_smile:


( I hate Mondays) #24

Went up and read, will have to figure out what updates I was talking about :slight_smile: I guess I need to buy a new arrival sensor.


(Borristhecat) #25

Im sure they will give you one in the office :wink:


( I hate Mondays) #26

If I go ask for it, sure thing :slight_smile: do you know which version we’re talking about, they all look the same, any model number available please?


(Warren) #27

Here’s what’s above in the thread concerning the sensor:

Well no worries, at this point you can just use the DTH I customized. Posted above in the thread and on GitHub (https://github.com/LLWarrenP/ST-Arrival-Sensor-HA-Disable/blob/master/devicetypes/llwarrenp/arrival-sensor-ha-with-disable.src/arrival-sensor-ha-with-disable.groovy)

:slight_smile:


(Borristhecat) #28

Mines the F-ARR-UK-2 which should be the latest.
I just started using @LLwarrenP DH and it seems to work fine for what I needed (to be able to test them without removing the battery) and will know if it works tomorrow when my plasters come in without triggering the alarm :slight_smile:


(Robin) #29

Just installed a new fob (STS-PRS-251), no joy on @ady624’s handler which I’ve been ysing for years with my older fobs.

Works fine with the one from @LLwarrenP


(Borristhecat) #30

@LLwarrenP

I have it disabled but still get these constant logs is this correct?

[7d805212-7fcf-4216-81f0-a22eca95dfc2](https://graph-eu01-euwest1.api.smartthings.com/ide/logs#7d805212-7fcf-4216-81f0-a22eca95dfc2) 21:44:38: debug Sensor checked in 6.191 seconds ago

[7d805212-7fcf-4216-81f0-a22eca95dfc2](https://graph-eu01-euwest1.api.smartthings.com/ide/logs#7d805212-7fcf-4216-81f0-a22eca95dfc2) 21:44:38: debug Sensor checked in 6.191 seconds ago

[7d805212-7fcf-4216-81f0-a22eca95dfc2](https://graph-eu01-euwest1.api.smartthings.com/ide/logs#7d805212-7fcf-4216-81f0-a22eca95dfc2) 21:44:31: debug Creating battery event for voltage=2.6V: Guest battery is 100%

[7d805212-7fcf-4216-81f0-a22eca95dfc2](https://graph-eu01-euwest1.api.smartthings.com/ide/logs#7d805212-7fcf-4216-81f0-a22eca95dfc2) 21:44:31: debug Guest is disabled-present: not creating presence event

[7d805212-7fcf-4216-81f0-a22eca95dfc2](https://graph-eu01-euwest1.api.smartthings.com/ide/logs#7d805212-7fcf-4216-81f0-a22eca95dfc2) 21:44:31: debug Scheduling periodic timer

[7d805212-7fcf-4216-81f0-a22eca95dfc2](https://graph-eu01-euwest1.api.smartthings.com/ide/logs#7d805212-7fcf-4216-81f0-a22eca95dfc2) 21:44:31: debug Sensor is present

[7d805212-7fcf-4216-81f0-a22eca95dfc2](https://graph-eu01-euwest1.api.smartthings.com/ide/logs#7d805212-7fcf-4216-81f0-a22eca95dfc2) 21:44:11: debug Creating battery event for voltage=2.6V: Guest battery is 100%

[7d805212-7fcf-4216-81f0-a22eca95dfc2](https://graph-eu01-euwest1.api.smartthings.com/ide/logs#7d805212-7fcf-4216-81f0-a22eca95dfc2) 21:44:11: debug Guest is disabled-present: not creating presence event

[7d805212-7fcf-4216-81f0-a22eca95dfc2](https://graph-eu01-euwest1.api.smartthings.com/ide/logs#7d805212-7fcf-4216-81f0-a22eca95dfc2) 21:44:11: debug Scheduling periodic timer

[7d805212-7fcf-4216-81f0-a22eca95dfc2](https://graph-eu01-euwest1.api.smartthings.com/ide/logs#7d805212-7fcf-4216-81f0-a22eca95dfc2) 21:44:11: debug Sensor is present

[7d805212-7fcf-4216-81f0-a22eca95dfc2](https://graph-eu01-euwest1.api.smartthings.com/ide/logs#7d805212-7fcf-4216-81f0-a22eca95dfc2) 21:43:52: debug Creating battery event for voltage=2.6V: Guest battery is 100%

[7d805212-7fcf-4216-81f0-a22eca95dfc2](https://graph-eu01-euwest1.api.smartthings.com/ide/logs#7d805212-7fcf-4216-81f0-a22eca95dfc2) 21:43:52: debug Guest is disabled-present: not creating presence event

[7d805212-7fcf-4216-81f0-a22eca95dfc2](https://graph-eu01-euwest1.api.smartthings.com/ide/logs#7d805212-7fcf-4216-81f0-a22eca95dfc2) 21:43:51: debug Scheduling periodic timer

[7d805212-7fcf-4216-81f0-a22eca95dfc2](https://graph-eu01-euwest1.api.smartthings.com/ide/logs#7d805212-7fcf-4216-81f0-a22eca95dfc2) 21:43:51: debug Sensor is present

[7d805212-7fcf-4216-81f0-a22eca95dfc2](https://graph-eu01-euwest1.api.smartthings.com/ide/logs#7d805212-7fcf-4216-81f0-a22eca95dfc2) 21:43:32: debug Creating battery event for voltage=2.6V: Guest battery is 100%

(Warren) #31

Yes. Sadly this is the only way the unit reports anything…through a constant battery report. It’s a crap design that burns battery doing nothing else. We could disable that but then it would lose track of where it was when it’s disabled and that would mean it wouldn’t see the device until it comes and leaves.

If they had only put in a polling mode separate from the battery report…oh well.


(Borristhecat) #32

This was my worry, i will just have to remove its battery when its home then.


(Warren) #33

I think you should get at least 6 months out of the battery if it’s a fresh one (I’ve had not so fresh ones too, thanks CVS) so I guess if you think that’s too short I ould agree. Even odds I would lose the battery if it’s not in it, just sayin’.


(Borristhecat) #34

I have decent cells in but they don’t last that long, i would be happy with 6 months! I think i get about 5-6 weeks from mine max.


(Robin) #35

I’ve never understood why people get such poor battery life… with the recommended Panasonic batteries I reliably get 7-8 months, and one of my fobs is somehow still at 20% after 14 months!!


(Borristhecat) #36

I didn’t realise this is what they recommend, but this is what i’m using!