Migrate to new core integration for Uptime Kuma

#257
This commit is contained in:
2025-12-23 22:11:38 -05:00
parent ac6f7978be
commit d0d8d0477f
2 changed files with 21 additions and 6 deletions
+7 -6
View File
@@ -450,18 +450,19 @@
unit_of_measurement: ''
icon: mdi:close-network-outline
state: >
{% set uptimekuma = states.binary_sensor |
selectattr('entity_id','in',integration_entities('uptime_kuma')) |
selectattr('state','eq','off') |
{% set uptimekuma = states.sensor |
selectattr('entity_id','in',integration_entities('192.168.1.111')) |
selectattr('state','eq','down') |
map(attribute='attributes.friendly_name') |
list %}
{{ uptimekuma | count | int }}
attributes:
services: >
{% set uptimekuma = states.binary_sensor |
selectattr('entity_id','in',integration_entities('uptime_kuma')) |
selectattr('state','eq','off') |
{% set uptimekuma = states.sensor |
selectattr('entity_id','in',integration_entities('192.168.1.111')) |
selectattr('state','eq','down') |
map(attribute='attributes.friendly_name') |
map('regex_replace', ' Status$', '') |
list %}
{{ uptimekuma | join(', ') }}
- name: Media Server Viewer Health