Skip to content

Commit 5443feb

Browse files
authored
Update HomeassistantService.ts
added all sensors to update entities attributes
1 parent b686a09 commit 5443feb

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/services/HomeassistantService.ts

+13-1
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,18 @@ export default class HomeassistantService {
470470
title: `${image}:${tag}`,
471471
in_progress: false,
472472
update_percentage: null,
473+
dockerImage: image,
474+
dockerTag: tag,
475+
dockerName: containerName,
476+
dockerId: container.Id.substring(0, 12),
477+
dockerStatus: container.State.Status,
478+
dockerUptime: container.State.StartedAt,
479+
dockerCreated: container.Created,
480+
dockerRestartCount: container.RestartCount,
481+
dockerRestartPolicy: container?.HostConfig?.RestartPolicy?.Name || "unknown",
482+
dockerHealth: container.State.Health?.Status || "unknown",
483+
dockerPorts: dockerPorts,
484+
dockerRegistry: registry,
473485
};
474486

475487
if (update_percentage !== null && remaining !== null) {
@@ -528,4 +540,4 @@ export default class HomeassistantService {
528540
};
529541
this.publishMessage(client, topic, payload, {retain: true});
530542
}
531-
}
543+
}

0 commit comments

Comments
 (0)