Milomolly
(Migt moggy)
November 2, 2017, 10:38am
1
I need an app which will notify me if , after a certain time, my presence sensor is still present.
I can only find apps which will do things at the point it ARRIVEs after a certain time, which won’t work for me as the presence sensor will already been present. I need an app that v looks at its state.
Can anyone help?
Cobra
(Andy - United Kingdom)
November 2, 2017, 12:31pm
2
It depends on what you need the established presence for…
Do you want to run something only if someone is present?
I have an app which I’m developing for all things presence.
Have a look here…
Presence Central
I created this SmartApp for my own use but thought I’d share it in case anyone else finds it useful.
I have been testing it for a while and it seems to work fairly consistently.
The reason I wrote this is because I had lots of separate apps controlling different presence actions.
I just wanted to bring everything together in on Parent/Child app
First of all I have to credit Brian Gudauskas (@bridaus -Reliable Presence) & Eric Roberts (@baldeagle072 - Everyone’s Presence) for stealing some of their code for multiple presence sensor determinations.
Without their great work this app would not have been possible to create.
This is a Parent/Child app to control presence sensor actions. Once installed you can setup any number of ‘child’ apps.
You need to install & publis…
Maybe I can add something if this doesn’t work for you in its current state
1 Like
Milomolly
(Migt moggy)
November 2, 2017, 1:24pm
3
ok so essentially
I have a presence sensor attached to my work pass.I want a smart app that operates like this:
If
The sensor is at home
The day is Monday- Thursday
The time is after 8.30am
Then
Send me a text or push notification saying 'you forgot your workpass!'
OR
Sound a notification on Sonos saying ‘you forgot your workpass’
Cobra
(Andy - United Kingdom)
November 2, 2017, 1:48pm
4
hmmm…
This shouldn’t be too difficult
Except… ‘The time is after 8.30am’
We need to set a trigger for the app to run… (Normally the trigger is arrival/departure)
So we could do… The time is 8.31am (or any time)
And check for the presence then.
I’m working on a different update at the moment but will try and get to this to see if I can work something out for you
Cobra
(Andy - United Kingdom)
November 2, 2017, 4:20pm
5
@Milomolly
Ok…
I have included a new input to Presence Central…
‘Check for Presence At A Certain time’
You can configure a time to check, which presence sensor to check for.
Then you can configure an action… send a sms/push… speak a message…
You can use all the outputs that are already there…
I’ll upload to GitHub now…
Milomolly
(Migt moggy)
November 4, 2017, 2:49pm
6
Hi Cobra,
Thanks. I’m a UK user. I’ve just managed to integrate smartthings and github (i thinK!) for the first time.
How do i get your smarttapp up and running - sorry for the newbyish question, but i’ve never done this before.
Cobra
(Andy - United Kingdom)
November 4, 2017, 3:39pm
7
I’m in the UK too
Have a look at this info here… this should help…
The original FAQ information in this thread refers to the original smartthings architecture, which was in place through the end of 2022 and a little beyond. Custom code was written in the groovy programming language and ran in the smartthings cloud.
As of May 2023, you can no longer add new Groovy DTH‘s or smartapps to your smartthings account. So if you came here because of a link in an old forum thread, or on another site, I’m afraid the Groovy information is no longer usable.
All of this was replaced by a new architecture. Cloud to cloud integrations use the smartthings API. Hub connected devices, mostly Zigbee and zwave, now use “Edge Drivers,” written in the LUA programming language. Here’s the official announcement on those:
The process for using a custom Edge Driver in the new …
Once you have got your head around this then there are two ‘smartapps’ to install
The ‘Parent’ and the ‘Child’
Let me know if you get stuck