Garbage help

Who can help me?

I have an automation when the next day en he garbage will pickup
The evening before at 20:00
It says wich container we put on the street.
But every day it tells me at 20:00

What is wrong with the config:

alias: Restafval
description: ''
trigger:
  - platform: state
    entity_id: sensor.afvalwijzer_restafval
    attribute: is_collection_date_tomorrow
  - platform: time
    at: '20:00:00'
condition: []
action:
  - service: tts.google_translate_say
    data:
      entity_id: media_player.fire_tablet_media_player
      message: De grijze bak moet morgen aan de straat
      language: nl
mode: single

Please use the code tags to format your yaml-code correctly.

At first sight it looks to me that your’re missing the state of your stateattribute, something like:

platform: state
entity_id: 
  - sensor.afvalwijzer_restafval
attribute: 'is_collection_date_tomorrow'
to: 'on'
1 Like

Please use the formatting feature when you post. It is difficult to see that the indentation is correct otherwise

Your trigger contains both a sensor and the time.

Triggers are OR. Conditions are AND. Any of the triggers will run the automation so you will get a message everyday at 20:00 and also midnight when the garbage sensor goes to the value.

Move your garbage sensor from trigger to a condition.

The automation will trigger daily but stop unless the condition is true. That is what you want

Please read this part carefully:

Your screenshots don’t show enough to help you.

Then please describe your solution and/or mark one of the posts in this thread as the solution so others can benefit from this thread.

2 Likes

Pointless thread of the week.

1 Like