Ah legend thanks dude, I’ll have a look see if I can write it in, not that great with the DH side of things though… I used to use it as I have a dog walker who’s got a fob for the door so I liked to know when the contact broke to know she wasn’t coming late
So I had it in webcore if all location devices = away, push notification if the contact breaks
If anyone could give me hand with the contact sensor DH that would be much appreciated, I don’t think it requires a load of work now @foyst has done the authentication and what not with the alarm DH, I’m just hitting walls, as not very good with the DH stuff, I’ve been at it all day and still getting errors in my log and the wrong status
thanks for the good work, ive made a few tweeks, only asking for a token when its expred, and runing the log on procidure and getting a cookie when installed/updated
it you want to use mine, ive updated the code now there is only two sections where the it send the commands to yale.
mode change between arm/home/disarm all share the same
and in
refresh
I’ve just been testing, is there a way to change the refresh rate of when it picks up the status?
it doesn’t seem to change with a normal open/close of the door, although it does work if i open it, wait for it to change then when i close it it will update in 3-5 minutes so i’m thinking it’s something to do with the polling/refreshing?
ah right that makes sense then as to why it doesn’t catch it! I’m not sure they could block it as the hub has to ping the API to set/get alarm status?
Previously I can remember I set mine low, in seconds as I think I spoke to @tapion1ives about worrying about the battery take, but he explained it gets the status from the hub not the sensor.
Is there anyway I can test lowering it on mine? or is the worry about them blocking it for everyone or individually?
And if they did block it would that just affect the contacts or the alarm API? Just the contacts DH will serve fairly useless with a 5 minute polling time, as the only thing that’d ever tell you if you physically left your door open and left, as you’d need to be fairly lucky to have it poll as it’s opening/closing
when you arm the system it sends aresponse back if a contact is open, it set the smartapp to send a push (if you enable it ibn the app) if there is an issue, it wouldbe something line DC_open
Right id say its all done, push messages, add contact sensors / control pannel (10min refresh period for them) todos’
id like to do is capture an alarm active message so i can code in push message for that (yale app dosnt do it)
remove push message for token refersh - just the to see how it works