Skip to content

Reminder - best practice #1787

Answered by 5ila5
riesi77 asked this question in Q&A
Feb 13, 2024 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

A easier way which will include all collection types would be something like this:

alias: müll 2
description: ""
trigger:
  - platform: time
    at: "16:00:00"
condition:
  - condition: numeric_state
    entity_id: sensor.next_collection_days
    below: 2
action:
  - service: notify.mobile_app_iphone
    metadata: {}
    data:
      message: put out {{ states('sensor.next_collection_types') }}
mode: single

with sensors:

  - platform: waste_collection_schedule
    name: next_collection_days
    details_format: appointment_types
    value_template: "{{ value.daysTo }}"
    add_days_to: true
  - platform: waste_collection_schedule
    name: next_collection_types
    details_format: appointme…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@riesi77
Comment options

@Sweti934
Comment options

@5ila5
Comment options

Answer selected by riesi77
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants