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.