Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95919

Lovelace string / script help

$
0
0

@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')}}"

vaskemaskin2

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 :smiling_face_with_three_hearts:

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 95919

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>