mirror of
https://github.com/house-of-abbey/GarminHomeAssistant.git
synced 2025-06-16 19:38:34 +00:00
Add GPS accuracy to update_location webhook and changed activity reporting
This commit is contained in:
@ -185,13 +185,25 @@ class WebhookManager {
|
||||
if (Activity has :getProfileInfo) {
|
||||
registerWebhookSensor({
|
||||
"name" => "Activity",
|
||||
"state" => Activity.getProfileInfo().name,
|
||||
"state" => Activity.getProfileInfo().sport,
|
||||
"type" => "sensor",
|
||||
"unique_id" => "activity",
|
||||
"disabled" => false
|
||||
}, 2);
|
||||
break;
|
||||
}
|
||||
case 2:
|
||||
// System.println("WebhookManager onReturnRegisterWebhookSensor(): Registering next sensor: Activity");
|
||||
if (Activity has :getProfileInfo) {
|
||||
registerWebhookSensor({
|
||||
"name" => "Sub-activity",
|
||||
"state" => Activity.getProfileInfo().subSport,
|
||||
"type" => "sensor",
|
||||
"unique_id" => "sub_activity",
|
||||
"disabled" => false
|
||||
}, 3);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
}
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user