STEP 1 - CREATE YOUR WIDGET
The process for adding widgets to your homescreen differs based on your launcher.
- Press and Hold and empty space on your home screen
Be careful to choose a Tasker Widget and NOT a Tasker Shortcut. Shortcut icons cannot be changed by Tasker.
- Select Widgets, then choose a Tasker Task
STEP 2 - NAME YOUR WIDGET
- Create a New Task
- Name your Task relative to the device that will be toggled
- Click + to add your first Action
- Choose Plugins and select AutoVera Devices from the menu of Plugins
STEP 3 - CREATE DEVICE TOGGLE
- Edit your configuration by clicking on the Pencil icon
- Select your Vera
- Select the Device you will be toggling
- Click Service and select Common Device
- Click Action and select Toggle
- Press Back to return to Action Edit screen
- Press Back again to return to Task screen
STEP 4 - CHOOSE YOUR INITIAL ICON
At this stage, you can choose an icon representing a neutral state, as this widget will first populate without knowing the current state of the device
- Click the Icon Grid in the lower right corner
- Choose either an icon from either Tasker or your own collection
STEP 5 - CREATE AUTOVERA STATUS UPDATE
- Open Tasker
- Within a new Project, create a new Profile
- Choose Event and then Plugin
- Select AutoVera Status Update from the list of plugins
STEP 6 - DEFINE STATUS UPDATE
- Edit your configuration by clicking on the Pencil icon
- Choose your Vera. Next, select Device. Choose the Device you wish to receive Status Updates from
- Select Service and choose Power Switch
- Select Variable and choose Status
- Press the Check or Back to return to Event Edit screen
STEP 7 - CREATE THE ACCOMPANYING TASK
- Press Back from the Event Edit screen and you will be prompted to choose a task.
- Select New Task from the top of the list and optionally name your Task
- Tasks assigned to specific profiles do not need to be named, however once named, it will appear in the list of Tasks within that Project
- You should now have an empty Task screen, ready to add your first Task
STEP 8 - CREATE AN IF TASK
The Status Update this Action will act upon returns a 1 for On and 0 for Off. Therefore, the Action will have two possible outcomes.
- Add a new Action to your Task. Choose Task from the menu of Actions. Choose If from the menu of Tasks
- In the Variable field of your Condition, use the Tag icon to show a list of possible AutoVera Variables.
- Choose %avnewstatus from the list of variables
- In the variable Value field, input the number 1
- Press Back to return to the Task Edit screen
STEP 9 - SET WIDGET ICON FOR ON
- From the Task Edit screen, add a new Action. Choose Tasker from the menu of Actions. Choose Set Widget Icon from the menu of Tasker actions.
- Click the Magnifying Glass and choose the Widget created earlier in this guide
- Click the Icon Grid and choose an icon to represent On for your device Widget
- Press Back to return to the Task Edit screen
STEP 10 - YOUR 2ND IF STATEMENT
The Status Update this Action will act upon returns a 1 for On and 0 for Off. Therefore, the Action will have two possible outcomes.
- Add a new Action to your Task. Choose Task from the menu of Actions. Choose Else from the menu of Tasks
- In the Variable field of your Condition, use the Tag icon to show a list of possible AutoVera Variables.
- Choose %avnewstatus from the list of variables
- In the variable Value field, input the number 0
- Press Back to return to the Task Edit screen
STEP 11 - SET WIDGET ICON FOR OFF
- From the Task Edit screen, add a new Action. Choose Tasker from the menu of Actions. Choose Set Widget Icon from the menu of Tasker actions.
- Click the Magnifying Glass and choose the Widget created earlier in this guide
- Click the Icon Grid and choose an icon to represent Off for your device Widget
- Press Back to return to the Task Edit screen
STEP 12 - END YOUR IF
- Add a final Action to your Task. Choose Task from the menu of Actions. Choose End If from the menu of Tasks
- Press Back to return to the Task Edit screen.
- Your Task is complete. Remember to completely exit Tasker before testing your profile.
[/VIDEOTUTORIALSTEPHOR]STEP 13 - TEST
- Open AutoVera
- Confirm Status Updates are enabled by ensuring the bell icon next to your chosen device is Yellow
- Click your newly created icon to test that your widget updates appropriately.
How To Create An Updating Toggle Widget With Autovera
Simple homescreen widget that toggles a light, with a visual representation of the current status