Let's see if we can get even more sensor data. Go to the Purposes view again from the top left menu and click your purpose "Theft Alarm & Tracker".
You will notice that the purpose task view is arranged into two dimensions. Vertically we have the states for the device, and horizontally we have the tasks. You can have your Thingsee One switch between states with individual tasks.
Tasks are sets of senses that determine actions. They can do things like report data to the Thingsee cloud service, save the data to the device, or send the data to a third party cloud server.
You can even make your own service to which Thingsee sends the data. Remember that if a task contains a set of sensor states, the all need to be true for the task to run.
Creating multiple states
Go to the Purposes view and click on the purpose you want to modify. In this tutorial we've been using “Theft Alarm & Tracker”.
Click on the “Add State” button at top left just above your first state row. Give the state a name. We'll name ours “Sleeping”. Go and add the other two states (Area check and Tracking) as seen on the picture above by clicking "Add State" button.
Now you are ready to create the multiple tasks.
Creating multiple tasks
Click on “Add Task” in the first state.
Rename the task from "Task 0" to "Bump detection". Do this to "Battery warning" task, and all the other tasks as shown in the picture below.
Now you're ready to create the content of the tasks, indicated by the orange areas in the picture.
Complicated? Don't worry, we're going to show you how.
Let's create the "Battery warning" task content.
For the name, enter “Battery warning”. This task detects if the battery is getting low and changes to a state where it only checks senses once every hour to save battery. Click OK to confirm the name change. Now click on a new task to open it for changes.
- Click on the “Energy” sense group menu item, and then click on “Battery Level” sense tick box
- Click on the “Trigger if under” tickbox, and enter 10% for the value. You can adjust these values by typing them or by dragging the slider.
- Adjust the time for the “Poll energy values every” section to check the power once every 1 hour(s)
Now go click on “Actions” in the menu. You will notice that you have your new battery sense note set there.
NOTE: WHEN [your triggers/senses are true], THEN [your action]
This is important. This means that all the conditions listed here have to be true before the actions in that task will be activated. For now, let's save that and create a new state that this condition will change to. Click “Save” in the top right menu.