mirror of
https://github.com/house-of-abbey/GarminHomeAssistant.git
synced 2025-05-01 13:12:50 +00:00
Update BackgroundServiceDelegate.mc
Failed to make commensurate changes to the background service code.
This commit is contained in:
@ -150,20 +150,26 @@ class BackgroundServiceDelegate extends System.ServiceDelegate {
|
|||||||
"type" => "sensor",
|
"type" => "sensor",
|
||||||
"unique_id" => "heart_rate",
|
"unique_id" => "heart_rate",
|
||||||
"icon" => "mdi:heart-pulse"
|
"icon" => "mdi:heart-pulse"
|
||||||
},
|
}
|
||||||
{
|
];
|
||||||
|
|
||||||
|
if (ActivityMonitor.Info has :floorsClimbed) {
|
||||||
|
data.add({
|
||||||
"state" => activityInfo.floorsClimbed == null ? "unknown" : activityInfo.floorsClimbed,
|
"state" => activityInfo.floorsClimbed == null ? "unknown" : activityInfo.floorsClimbed,
|
||||||
"type" => "sensor",
|
"type" => "sensor",
|
||||||
"unique_id" => "floors_climbed_today",
|
"unique_id" => "floors_climbed_today",
|
||||||
"icon" => "mdi:stairs-up"
|
"icon" => "mdi:stairs-up"
|
||||||
},
|
});
|
||||||
{
|
}
|
||||||
|
|
||||||
|
if (ActivityMonitor.Info has :floorsDescended) {
|
||||||
|
data.add({
|
||||||
"state" => activityInfo.floorsDescended == null ? "unknown" : activityInfo.floorsDescended,
|
"state" => activityInfo.floorsDescended == null ? "unknown" : activityInfo.floorsDescended,
|
||||||
"type" => "sensor",
|
"type" => "sensor",
|
||||||
"unique_id" => "floors_descended_today",
|
"unique_id" => "floors_descended_today",
|
||||||
"icon" => "mdi:stairs-down"
|
"icon" => "mdi:stairs-down"
|
||||||
|
});
|
||||||
}
|
}
|
||||||
];
|
|
||||||
|
|
||||||
if (ActivityMonitor.Info has :respirationRate) {
|
if (ActivityMonitor.Info has :respirationRate) {
|
||||||
data.add({
|
data.add({
|
||||||
|
Reference in New Issue
Block a user