Dryer automation question

Hi,
Trying to make my dryer automation smarter but not getting very far. Here is what I would like to happen…

  • sensor.office_dryer_plug_active_power becomes greater than 15
  • Wait until sensor.office_dryer_plug_active_power becomes equal to 0 (only if it was greater than 15 previously)
  • Action stuff (this part I can do… maybe!)

I’m open to suggestions using Automation (yaml) and/or Node-red.

Thanks

Here’s where mine currently sits. I also include switching a bulb for a visual cue and suppress everything if we’re already in the laundry room.

alias: Laundry Automation - Dryer
description: ""
trigger:
  - type: power
    platform: device
    device_id: e5b23293a95db57d2fa08a3ca1642b73
    entity_id: sensor.dryer_plug_electric_consumption_w
    domain: sensor
    above: 500
condition: []
action:
  - wait_for_trigger:
      - type: power
        platform: device
        device_id: e5b23293a95db57d2fa08a3ca1642b73
        entity_id: sensor.dryer_plug_electric_consumption_w
        domain: sensor
        below: 10
        for:
          hours: 0
          minutes: 0
          seconds: 0
    continue_on_timeout: false
  - if:
      - condition: and
        conditions:
          - type: is_no_motion
            condition: device
            device_id: 69d34b5ca76d727dc546dabe01f00705
            entity_id: binary_sensor.laundry_room_motion_sensor_occupancy
            domain: binary_sensor
    then:
      - service: notify.all_mobile_apps
        data:
          message: The dryer is done.
      - if:
          - condition: device
            type: is_off
            device_id: d466234f890331cef579a538462efe71
            entity_id: remote.sony_xbr_75x900h
            domain: remote
        then:
          - service: light.turn_on
            data:
              color_name: purple
            target:
              entity_id: light.bar_overhead_light2
        else:
          - wait_for_trigger:
              - platform: device
                device_id: d466234f890331cef579a538462efe71
                domain: media_player
                entity_id: media_player.sony_xbr_75x900h
                type: turned_off
          - service: light.turn_on
            data:
              color_name: purple
            target:
              entity_id: light.bar_overhead_light2
      - wait_for_trigger:
          - type: motion
            platform: device
            device_id: 69d34b5ca76d727dc546dabe01f00705
            entity_id: binary_sensor.laundry_room_motion_sensor_occupancy
            domain: binary_sensor
      - service: light.turn_on
        data:
          kelvin: 3000
        target:
          entity_id: light.bar_overhead_light2
      - if:
          - condition: state
            entity_id: light.bar_overhead_light1
            state: "off"
        then:
          - service: light.turn_off
            data: {}
            target:
              entity_id: light.bar_overhead_light2
mode: single

Edit: if you’re just looking for notifications, this blueprint might be a better option.

1 Like

Do you use different cycles, have you monitored current draw through a normal cycle?

The reason I ask is depending on how you use it it may be as simple as triggering when current drops from y to z. As triggering when it starts and then using a wait may be pointless and could suffer from automation failing due to HA restart for example.

Mine triggers when the power drops to zero as I don’t need to know it started only that it’s ended.

1 Like

That’s actually a really good point. Coming from a different automation platform, there’s still some old habits that haven’t died.

1 Like

Playing around with your yaml now. Looks promising! Thanks

That’s how I have it setup now. But I don’t want it to be announced through the house every time someone opens the door. Kids love to just take one towel out of the dryer, instead of the whole load.

You and me both :wink:

1 Like