From d0d8d0477f8888d0ccdf4ead70aecacb6e59f32e Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Tue, 23 Dec 2025 22:11:38 -0500 Subject: [PATCH] Migrate to new core integration for Uptime Kuma #257 --- configuration.yaml | 14 ++++++++++++++ sensors/house_stats.yaml | 13 +++++++------ 2 files changed, 21 insertions(+), 6 deletions(-) diff --git a/configuration.yaml b/configuration.yaml index be555fc..2f235cc 100644 --- a/configuration.yaml +++ b/configuration.yaml @@ -119,6 +119,10 @@ recorder: - sensor.*_rssi - sensor.weatherflow_hub* - sensor.internet_round_trip* + - sensor.*_monitor_type + - sensor.*_certificate_expiry + - sensor.*_monitored_url + - sensor.*_response_time entities: - sensor.avg_ping - sensor.max_ping @@ -280,6 +284,11 @@ influxdb: - binary_sensor.asus_laptop* - sensor.*ashland* - sensor.*kasx* + - sensor.*_monitor_type + - sensor.*_certificate_expiry + - sensor.*_monitored_url + - sensor.*_response_time + - sensor.*_status entities: - media_player.living_room_tv - media_player.basement_tv @@ -452,6 +461,11 @@ prometheus: - binary_sensor.asus_laptop* - sensor.*ashland* - sensor.*kasx* + - sensor.*_monitor_type + - sensor.*_certificate_expiry + - sensor.*_monitored_url + - sensor.*_response_time + - sensor.*_status include_entities: - media_player.living_room_tv - media_player.basement_tv diff --git a/sensors/house_stats.yaml b/sensors/house_stats.yaml index 23e160f..fb1949f 100644 --- a/sensors/house_stats.yaml +++ b/sensors/house_stats.yaml @@ -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