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 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