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