5 years gone and still no solution for a date?
I just tried the “time” condition given from hass (without reading the docs: my fault, as it is only comparing the day time and workday and special days, but no dates)
Couldn’t this be enhanced to also look at the date? If 0 is given for year … than it’s not compared? Or duplicate the time condition as “date”?
Hello everyone, I had the same needs, and took your insights to create a pull request to add two new conditions: date and datetime.
This way, we would be able to choose to compare “only the date”, “only the time” or the “date and time” !
I’m really struggling to understand how this is working for you! But if it somehow is, great! I would think {{ now().month in [1,2,3,4,5,10,11,12] }} would exclude Jun-Sept? My thinking is the automation should look like this to only water on Tuesday & Saturday, June 1 to August 31:
description: ""
mode: single
triggers:
- trigger: time
at: "06:00:00"
conditions:
### (when multiple conditions are listed, the default is to 'and' them)
- condition: time
weekday:
- tue
- sat
- condition: template
value_template: "{{ now().month in [6,7,8] }}"
actions:
- action: scene.turn_on
metadata: {}
data: {}
target:
entity_id: scene.water_frontard
I’ve read the Winter sprinkler switch-off - Water Corporation, WA and in my mind, the dates are back-asswards! “The Winter Sprinkler Switch-off runs throughout winter from 1 June to 31 August every year”?? Shouldn’t that read “The Winter Sprinkler Switch-off runs throughout winter from 31 August to 1 June every year”??
I’m totally dumbfounded!
PS. It would help everyone trying to read your automation if you posted it as code rather than as a quote.
In fairness, based on its track record of producing solutions, that’s better than average. Sometimes its suggestions are simply invalid. FWIW, that’s why the community forum banned the use of ChatGPT as a tool for offering solutions to other users.
Meh…IMO you were rude. Maybe you didn’t mean to be rude by saying “Leave ChatGPT out of here” but that is how it came off. I am not a regular in this community so I do not follow announcements like that. I tried some of the things mentioned and it did not work for me. Maybe I did something wrong.
Regardless, If ChatGPT is banned all you needed to do is say so. Simple as that.
Hi Phil
Awesome work here, I know you have answered this already here but I am new and having trouble getting this to work, trying to get my heating to come on just for June July August.