Switch on device at set time, value set with variable in front end

I have the washing machine integrated onto HA using ESPHome and a Sonoff POW2. The washing machine is switched on/off using the large button on the left. Each state on the right is determined by the power consumption of the machine.

washing

The next step is to set up a timer so the machine will come on at a predefined time set by an input variable controlled via the front end.

The use case is as follows:

1.) Tomorrow looks like a great day to do the wash and dry the clothes outside.
2.) Load the machine and set a timer in HA so the machine comes on early in the morning and is finished before breakfast.
3.) Clothes washed and ready to hang before breakfast.

Grateful for thoughts and options to achieve this.

trigger:
  - platform: time
    at: input_datetime.your_washer_start_time

Perfect - just what i was looking for, many thanks.

1 Like