[quote=“dmckenna, post:40, topic:190668”]AMG0,
Do you have any ideas on how to configure ALTUI to pass the value of a switch position/variable through to Webhooks ?
I’ve got a very clonky and non-elegant work around using PLEG but thought I’d ask if there’s a more direct/seamless way with ALTUI that you’ve discovered…
Purpose - Virtual Switch (VS) device on Vera to control an IFTTT device.
Method - Create a Virtual Switch, configure ALTUI/Webhooks/IFTTT as detailed in this thread
Result - The iFTTT device responds to every state change of the Virtual Switch as opposed to On for On and Off for Off. e.g If the device is turned off manually and the VS is still in the On Position, then by clicking the VS to Off this actually then turns the state of the device to On - states become out of sync.
Workaround - Configure IFTTT recipes for both On AND OFF states. Use PLEG to detect a trigger on the VS, use 2 actions in LUUP to send the native IFTTT maker and trigger keys for either ON or OFF. Use Vera IFTTT integration to detect when the IFTTT device state is changed locally and send that state back to Vera so devices are in sync. It works but it’s not elegant and needs a lot of configuration for one device.
So…could ALTUI do a better job ?
Thanks
David[/quote]
did you go through the doc in this post ?http://forum.micasaverde.com/index.php/topic,35860.msg335963.html#msg335963
this is exactly what ALTUI’s IFTTT data provider implementation does. on a device’s variable value change , the value is pushed to IFTTT with a web service ( http GET to a target url). You do not have to use IFTTT, you can accomplish this with other type of destinations (other than IFTTT) thanks to the open ALTUI data provider architecture which lets you dynamically add other data providers to ALTUI. a few forum members did this already ( akbooer ,etc. )
I may not answer well your out of sync problem but it sounds to me it is something to be addressed somewhere else in VERA. the VS and the device should be kept in sync by other mean ( lua polling ? )