[quote=“garrettwp, post:69, topic:173172”][quote=“Aaron, post:68, topic:173172”]Garrett,
Can you automate/integrate the below method? Just like you have with the Tasks portion… point and choose
I know it can be done with Tasker since AutoVera does it. Otherwise, this is a PITA to put in using small onscreen keyboard! Too much when you are doing several Profiles.
[quote=“silencery, post:52, topic:173172”]Just wanted to add another dimension of tasker integration. If you need tasker to read the current status of a device on your Vera network and have tasker respond accordingly, this can be done by sending a JSON request to vera. You can use the following steps:
- Create a new profile in Tasker (i.e. NFC tag scanned, GPS location reached, bluetooth connected, widget pushed, whatever you want to use as a trigger).
- In tasker, create a new matching task for your new profile.
- Add Action (click the + sign) → Net → HTTP Get
- Under the Server:Port field, add in the URL for your device status request:
[ul][li]Example to retrieve the status of a DSC Alarm: https://fwd5.mios.com/USERNAME/PASSWORD/VERA_SERIAL/data_request?id=variableget&DeviceNum=DEVICEID&serviceId=urn:micasaverde-com:serviceId:AlarmPartition2&Variable=DetailedArmMode[/li]
[li]The example above forwards through the MCV servers and requests the status of an alarm system. It’s a good idea to test the URL is working in your browser as expected before proceeding. In this case, it should show ready, exitdelay, or armed, etc.[/li]
[li]USERNAME/PASSWORD: Vera username/password[/li]
[li][VERA_SERIAL]: Vera serial found in UI5 under account → tech support tab[/li]
[li][DEVICE_ID]: Vera Device ID for the item you want to view status on. Found under the advanced tab of each individual vera device.
[/li]
[li]Make sure to include the appropriate serviceid and the variable you want information on for each device. You can find serviceid information by visiting the following URL: http://LOCAL_VERA_IP:3480/data_request?id=status&output_format=xml&DeviceNum=DEVICE_ID[/li][/ul]
- Under mime type, select “text/plain”
- The response from this HTTP request is automatically exposed to tasker as “%HTTPD”
- You can write tasks based on the state of the %HTTPD variable. In my case, this example task polls vera and check the status of the alarm before performing any actions. For instance, if it’s “ARMED,” tasker will disarm the alarm and include a verbal confirmation. If it’s “READY,” tasker will report accordingly and ask me if i want to arm the house.
A few caveats and suggestions:
[ul][li]Since your vera login is passed through the URL, there are high security risks. Make sure you understand this before proceeding. If absolutely necessary, it would be a good idea to at least create restricted logins for this purpose (I’m not positive, but I believe this method is how forwarding is handled by most mobile Vera apps?).[/li]
[li]If you can, a better method would be to use a VPN into your vera site location and use the local URL command instead[/li]
[li]Here is the equivalent local URL for the above JSON query: http://LOCAL_VERA_IP:3480/data_request?id=variableget&DeviceNum=DEVICEID&serviceId=urn:micasaverde-com:serviceId:AlarmPartition2&Variable=DetailedArmMode[/li]
[li]If you are using if/case statements to process the command, don’t forget to add an exit condition in case you cannot poll vera for any reason.[/li][/ul][/quote][/quote]
I’ll look at adding the ability to retrieve information of a device via Tasker. This will require some work and time. Not sure when I will get this added. The only drawback would be that this will be dependent on the data that AutHomation has. So if you require realtime data, you’ll have to mess with the background polling of the data for the app when the app is not running. It is currently set to 30 minutes. I would not go any lower than 5 minutes to not drain the battery.
I was just going to ask the same thing
I plan to use DashClock as an interface for my DSC alarm via Dashclock Tasker + AutomationHd.
I’d want to query - if it’s armed, show a disarm icon, if it’s disarmed show arm icon. I might want to show the state of a few sensors as well.
Also - you should charge for AutomationHd, or at least make a pay version available. I’d gladly pay for it and you more than deserve it. Amazing application.