I am fairly new to HA. Been running it for about 4 months to monitor my solar and energy, but now to try and integrate the rest of the systems it can see (playing and tinkering)
For my first automation, i have created one to start the dishwasher from a single button push in HA.
That all appears to work well. It turns on, selects the required programme and starts the operation.
Next step, i want to set a condition that it will only run if the solar battery is above 80% charge, or the time is within my off peak electricity window.
I have added the conditions as i think they should be, but it completely ignores the conditions and runs the dishwasher anyway.
Could anyone point the novice in the correct direction please?
If i can sort that bit out, getting really ambitious, i would like it to pause on the condition fail until the battery does exceed 80%, or the time window is meet (so i could trigger the dishwasher at 22:00 as i go to bed, but it wouldnt start until 00:30
If when you post yaml, place ``` before and after the code and it will format it correctly so its easier for people to read.
You dont appear to have any trigger on the above automation?
Also, how are you triggering it? as if you click run automation via the UI rather than via an actual trigger the automation will run and ignore all conditions.
Thanks, i have updated the post to show the coding
I have a button in a Dashboard to trigger the automation, as that was the only way i could work out how to fire it, so i guess i need to go back a step first.
That’s not good practice with automations. Work out a combination of triggers and conditions that allow for “instant evaluation”. For example, trigger on the battery SoC going above 80% and on the time, with conditions to match.
Perhaps have the front end set an input boolean (toggle) helper, then use the state of that as one of the triggers.
Sorry, but this is where i got lost.
I have a button helper already, but trying to tie A to B to C i think is where i have got lost and i never ended up using it.
The button helper has an entity of input_button.dishwasher_start
So do i put this as the trigger in the Automation and then use the frontend button to trigger the entity?
Thank you, i’ll look into this.
As i said, its a little ambitious, as i’ll be going further down the rabbit hole. Bit of a steep learning curve this programming.