@bengt wrote:
I have a washing machine on which I have a door sensor. When the door closes, a countdown timer starts.
timer.vaskemaskin
timer: vaskemaskin: duration: '00:02:00' icon: mdi:washing-machine
Card in ui-lovelace.yaml
- type: entities entities: - entity: timer.vaskemaskin icon: mdi:washing-machine name: Time for the washing machine to finish condition: "{{is_state('timer.vaskemaskin', 'active')}}"
Is it possible to create a string / script that changes the text in the card to “The washing machine is finished!” when the timer finishes countdown (and goes to “idle”) and the door is still closed (binary_sensor.vaskemaskin = off)?
And that changes the text in the card to “The washing machine is empty” when the door is opened (binary_sensor.vaskemaskin = on).?
Really appreciate the help in solving this as it will make my wife very happy
Posts: 1
Participants: 1