I want my charger to turn on not earlier than 8:15pm. My charger IoT class is Cloud Polling. I am not sure how often this is updated.
I only want my charger to turn on if it is plugged in.
I created an automation where it will update the status of the charger to see if it is plugged in every 30 minutes between 8:14:59pm and 12am.
I have not yet created the timer part for the weekdays. I will if my logic for the weekend works.
On the weekends. I will finish charging anywhere between 1-5 hours. I created a one hour timer up to a a six hour timer. After one hour, the automation will update and see if charging is completed. If charging is completed, charger will turn off. After two hours, the same thing up to six hours.
I just realized I could probably get rid of this section.
then:
- condition: time
weekday:
- mon
- tue
- wed
- thu
- fri
after: "20:15:00"
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.