Skip to content

Commit

Permalink
Don't show garbage collection when the sensor is unknown
Browse files Browse the repository at this point in the history
  • Loading branch information
golles committed Nov 8, 2024
1 parent 3496fbb commit c014c54
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/lovelace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,23 +49,23 @@ template:
state_attr("sensor.purmerend_bio_afval", "Days_until") == 0 and now() < today_at("12:00")
}}
availability: >-
{{ state_attr("sensor.purmerend_bio_afval", "Days_until") is not none }}
{{ not is_state("sensor.purmerend_bio_afval", "unknown") and state_attr("sensor.purmerend_bio_afval", "Days_until") is not none }}
- name: UI helper let op afval papier
state: >-
{{
state_attr("sensor.purmerend_papier", "Days_until") == 1 and now() > today_at("18:00") or
state_attr("sensor.purmerend_papier", "Days_until") == 0 and now() < today_at("12:00")
}}
availability: >-
{{ state_attr("sensor.purmerend_papier", "Days_until") is not none }}
{{ not is_state("sensor.purmerend_papier", "unknown") and state_attr("sensor.purmerend_papier", "Days_until") is not none }}
- name: UI helper let op afval rest
state: >-
{{
state_attr("sensor.purmerend_restafval", "Days_until") == 1 and now() > today_at("18:00") or
state_attr("sensor.purmerend_restafval", "Days_until") == 0 and now() < today_at("12:00")
}}
availability: >-
{{ state_attr("sensor.purmerend_restafval", "Days_until") is not none }}
{{ not is_state("sensor.purmerend_restafval", "unknown") and state_attr("sensor.purmerend_restafval", "Days_until") is not none }}
- name: UI helper let op vaatwasser
state: >-
{{
Expand Down

0 comments on commit c014c54

Please sign in to comment.