homeAway - presence .. discussion

Posted on
Wed Aug 01, 2018 10:05 am
kw123 offline
User avatar
Posts: 6272
Joined: May 12, 2013
Location: Dallas, TX

homeAway - presence .. discussion

pls put your comments / requests here

Posted on
Wed Aug 01, 2018 10:17 am
kw123 offline
User avatar
Posts: 6272
Joined: May 12, 2013
Location: Dallas, TX

Re: homeAway - presence .. discussion

Thanks Karl!
Q: I am unclear what you mean when you write devices that “broadcast” their status. Is that the same as an Insteon door sensor sending a 1 or 0, or as a piBeacon that is home/away/expired?

Never mind- just saw the updates for broadcasting for your other devices.

Sent from my iPhone using Tapatalk


this is using the new indigo api functionality (v 7.1) that allows individual plugins to selectively broadcast messages to other indigo plugins.
So instead of subscribing to ALL indigo updates in the receiving plugin you just listen to some fewer messages.

that requires two things:
1. the sendplugin must send a std message format
2. the receiving must receive must be able to receive that message and interpret it.

the format I used is:
{'pluginId': name of plugin', 'data': [{'name': u'name of devices, 'id': 'indigoid of device, 'state': 'the name of the device statee', 'valueForON': 'eg up 1 on auf open AN,..', 'action': 'event', 'newValue': u'eg up down expired ..'}]}
if other developers would like to add this .. ideally for alarm systems and may be Jay / matt could do this for insteon/ wave (motion) sensors

happy to discuss the format = open to any suggestions

currently fingscan, piBeacon, UniFi can transmit and homeAway can receive.

I will be adding my caddx alarm system, but that is a private plugin.. if anyone is interested i can share.


I will be out of town for a week and will work a little on the format, (logging, menus etc as it is hard to test sensors when you are not home.)

fun the next version I would like to add
log stats
log the logic
add some more logic for other sensors door 1 must have opened or closed but not door2 = where did you come in front/ back
...

Karl

Posted on
Mon Feb 04, 2019 4:31 pm
siclark offline
Posts: 833
Joined: Jun 13, 2017
Location: UK

Re: homeAway - presence .. discussion

Hi Karl,

I think I am going to need a worked example.... I cant figure this out. Also do I need to set up your unifi plugin to work, or should it just do so? I cant see my unifi devices under the sensors..
Love the idea..
Thanks

Posted on
Mon Feb 04, 2019 4:46 pm
kw123 offline
User avatar
Posts: 6272
Joined: May 12, 2013
Location: Dallas, TX

Re: homeAway - presence .. discussion

this plugin should be an "inteligent" trigger. - it does not have any internal devices/states. It will use only device/states from other plugins.

then sets some timers / gates to allow/ disallow triggers ie door sets gate -100 secs +200 secs. will only accept status change of eg BLEconnect device in that time window.
So if at night you go to sleep and do not open the door then your presence will NOT change .. only when you open the door.
-100 secs because an ibeacon should show up before you open the door when you go home. While when you leave you open the door first and then the ibeacon goes down when you walk away

In order to give it info the sending plugin has to send broadcasts for all / or selected devices. so far only fingscan, unifi and piobeacon can do this.

A door devices can be any device that is binary.

... we can do an online session, it is much easier to do than to write it up..

Karl

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 0 guests