Replace deprecated sensor.hacs with new template sensor hacs_opdateringer
This commit is contained in:
@@ -77,7 +77,7 @@
|
||||
{{
|
||||
is_state('binary_sensor.home_assistant_website_update_available', 'on')
|
||||
or is_state('update.hacs_update', 'on')
|
||||
or states('sensor.hacs') | int(0) > 0
|
||||
or states('sensor.hacs_opdateringer') | int(0) > 0
|
||||
}}
|
||||
|
||||
- name: Vedligehold affald
|
||||
@@ -130,6 +130,19 @@
|
||||
{{ states('sensor.dethlefsen_drive_4_status') | lower not in ['normal', 'unknown', 'unavailable', 'none'] }}
|
||||
|
||||
- sensor:
|
||||
- name: HACS opdateringer
|
||||
unique_id: hacs_pending_updates
|
||||
unit_of_measurement: opdateringer
|
||||
icon: mdi:package-variant
|
||||
state: >-
|
||||
{{
|
||||
integration_entities('hacs')
|
||||
| select('search', '^update\.')
|
||||
| map('states')
|
||||
| select('eq', 'on')
|
||||
| list | count
|
||||
}}
|
||||
|
||||
- name: Antal vedligeholdskort
|
||||
unique_id: maintenance_cards_count
|
||||
unit_of_measurement: kort
|
||||
@@ -139,7 +152,7 @@
|
||||
[
|
||||
1 if is_state('binary_sensor.home_assistant_website_update_available', 'on') else 0,
|
||||
1 if is_state('update.hacs_update', 'on') else 0,
|
||||
1 if states('sensor.hacs') | int(0) > 0 else 0,
|
||||
1 if states('sensor.hacs_opdateringer') | int(0) > 0 else 0,
|
||||
1 if is_state('binary_sensor.dethlefsen_security_status', 'on') else 0,
|
||||
1 if is_state('update.dethlefsen_dsm_update', 'on') else 0,
|
||||
1 if is_state('binary_sensor.vedligehold_synology_disk_1_status', 'on') else 0,
|
||||
|
||||
Reference in New Issue
Block a user