Tasker Beta 支援 Sleep Tracking

Google 刚公布推出 Sleep API 让应用程式可透过 API 判断用家的睡眠状况。Tasker 最新推出的 5.12.3 Beta 版本亦已经支援,用家可以在 Tasker 内设定 Sleeping State,当装置符合 Sleeping State 就可触发执行指定的 Task 任务。

透过 Sleeping Confidence 判断
Google Sleep API 是透过装置的感光和动作感应器,并透过机器学习判断用家的睡眠情况,由于 Sleep API 是设于 Google Play Services 所以运行使用亦较节省电量而且数据亦会更准确。Sleep API 可汇报 Sleep Confidences,用于判断用家有多大可能处于睡眠状况,在 Tasker 内的 Sleeping State 就是依据 Sleep Confidences 作出判断。

Tasker Sleeping State

在 Tasker 5.12.3 Beta 内,新增 Profile 内里选择 State 就可找到 Sleeping State。在 Sleeping State 设定 Parameters 十分简单,就是 Minimum Confidence, Maximum Light 和 Motion。简单来设就是当 Sleep API 汇报的 Sleep Confidence 超越了 Tasker 内所定的 Minimum Confidence 就会视为进入 Sleeping State,跟住就可触发执行指定的 Task。

Tasker 5.12.3 Beta 除了 Sleeping State 外,还有其他的改进和修正。

– Added Sleeping state: track your sleep with Tasker
– Added helper in HTTP Request action’s Headers field to easily set commonly used headers
– Added ADB Wifi helper for easy setup of permission granting/revoking commands
– Made the Monospace-not-wrapped text in certain input fields optional (Preferences > UI)
– Fix Tick event not working reliably if the screen is off on some devices
– Try to fix clipboard change sensing on Android 11 on some specific devices
– If you search for something like Perform when adding an action and you have some tasks with the word “perform” in them, don’t use them to autofill the Perform Task‘s Name field
– Don’t show structured global variables with . in their name in the VARS tab
– Now when reading a structured output, if there’s no match and the variable has been marked as a structured variable, it’ll correctly evaluate in the “If Not Set” condition. If you use the variable with structure access, the literal value will be used.
– When reading HTML structure with the square bracket notation use curly braces for attribute matching eg. {attr=value} instead of [attr=value] – Allow using an empty key when accessing a structured variable, eg. %json[] – Check if a variable is of the specific type used in the “Set Variable Structure Type” action
– Fixed crash when adding certain events/states
– Fixed using setLocal() function in Scene WebView for project/profile/task variables
– Fixed setting project/profile/task variables from the “Java Function” action
– Fixed bug where if you select the “Perform Task” action based on a search for a task name, the priority would be incorrectly initiated to 5 instead of %priority
– Try to fix external SD card or USB OTG on Android 11+. Not fully working yet.