🗑 Custom Home Assistant sensor for scheduling garbage collection (or other regularly re-occurring events - weekly on given days, semi-weekly or monthly)
MIT License
383
stars
90
forks
source link
Help with automation to manually update next collection date from input_datetime #450
Been using this for a while with my regular collections, but my glass collection is on a really odd schedule, kind of a random date every 3 months, but not following any pattern.
I have seen the automation to add a date. I was wondering how to change it so it could load the date from a input_datetime helper?
alias: garbage_collection event
description: "Manually add a collection date, then trigger entity state update."
trigger:
service: garbage_collection.add_date
data:
entity_id: "{{ trigger.event.data.entity_id }}"
date: "2022-01-07" <- this here, I would like to instead load from a input_datetime.glass so that I could programatically change this
service: garbage_collection.update_state
data:
entity_id: sensor.test
mode: single
I have tried it via "{{ state.input_datetime.glass }}" etc but I can't seem to figure it out. I am guessing this could be useful for other people as well, ie if they are scrapping specific dates from a website they could just update a helper and have the automation blue print update it from there.
This issue has been automatically marked as stale because it has not had any activity in last 30 days. It will be closed in 5 days if no further activity occurs. Thank you for your contributions.
Before you submit a new bug report, please check that
Write your question here
Hi,
Wondering if anyone can help me with something.
Been using this for a while with my regular collections, but my glass collection is on a really odd schedule, kind of a random date every 3 months, but not following any pattern.
I have seen the automation to add a date. I was wondering how to change it so it could load the date from a input_datetime helper?
alias: garbage_collection event description: "Manually add a collection date, then trigger entity state update." trigger:
I have tried it via "{{ state.input_datetime.glass }}" etc but I can't seem to figure it out. I am guessing this could be useful for other people as well, ie if they are scrapping specific dates from a website they could just update a helper and have the automation blue print update it from there.
Thank you in advance, Best regards, Daniel