Tweeking appliance notifications for upcoming video
This commit is contained in:
parent
ef43d16459
commit
897080ea50
|
@ -48,7 +48,12 @@ automation:
|
||||||
entity_id: sensor.washer_status
|
entity_id: sensor.washer_status
|
||||||
state: complete
|
state: complete
|
||||||
action:
|
action:
|
||||||
- service: script.washer_running
|
#- service: script.washer_running
|
||||||
|
- service: mqtt.publish
|
||||||
|
data:
|
||||||
|
topic: house/washer/status
|
||||||
|
payload: running
|
||||||
|
retain: true
|
||||||
initial_state: true
|
initial_state: true
|
||||||
|
|
||||||
- id: washer_complete
|
- id: washer_complete
|
||||||
|
@ -62,9 +67,36 @@ automation:
|
||||||
entity_id: sensor.washer_status
|
entity_id: sensor.washer_status
|
||||||
state: running
|
state: running
|
||||||
action:
|
action:
|
||||||
- service: script.washer_complete
|
#- service: script.washer_complete
|
||||||
|
- service: mqtt.publish
|
||||||
|
data:
|
||||||
|
topic: house/washer/status
|
||||||
|
payload: complete
|
||||||
|
retain: true
|
||||||
|
- service: mqtt.publish
|
||||||
|
data:
|
||||||
|
topic: house/washer/time_complete
|
||||||
|
payload: '{{ now().timestamp() }}'
|
||||||
|
retain: true
|
||||||
initial_state: true
|
initial_state: true
|
||||||
|
|
||||||
|
- id: washer_notification
|
||||||
|
initial_state: true
|
||||||
|
alias: Washer Notification
|
||||||
|
trigger:
|
||||||
|
- platform: state
|
||||||
|
entity_id: sensor.washer_status
|
||||||
|
from: running
|
||||||
|
to: complete
|
||||||
|
action:
|
||||||
|
- service: script.status_annc
|
||||||
|
data:
|
||||||
|
who: '{{ states.sensor.room_presence.state }}'
|
||||||
|
call_interuption: 1
|
||||||
|
speech_message: It appears the washing machine has completed its cycle.
|
||||||
|
- service: script.turn_on
|
||||||
|
entity_id: script.washer_finished_notification_audible
|
||||||
|
|
||||||
- id: washer_emptied
|
- id: washer_emptied
|
||||||
initial_state: true
|
initial_state: true
|
||||||
alias: Washer Emptied
|
alias: Washer Emptied
|
||||||
|
@ -74,7 +106,12 @@ automation:
|
||||||
from: 'off'
|
from: 'off'
|
||||||
to: 'on'
|
to: 'on'
|
||||||
action:
|
action:
|
||||||
- service: script.washer_idle
|
#- service: script.washer_idle
|
||||||
|
- service: mqtt.publish
|
||||||
|
data:
|
||||||
|
topic: house/washer/status
|
||||||
|
payload: idle
|
||||||
|
retain: true
|
||||||
- service: script.turn_off
|
- service: script.turn_off
|
||||||
entity_id: script.washer_finished_notification_audible
|
entity_id: script.washer_finished_notification_audible
|
||||||
- service: mqtt.publish
|
- service: mqtt.publish
|
||||||
|
@ -83,19 +120,24 @@ automation:
|
||||||
payload: '{{ now().timestamp() }}'
|
payload: '{{ now().timestamp() }}'
|
||||||
retain: true
|
retain: true
|
||||||
|
|
||||||
- id: washer_notification
|
- id: e1cb26fe-0423-11eb-adc1-0242ac120002
|
||||||
initial_state: true
|
initial_state: true
|
||||||
alias: Washer Notification
|
alias: Dryer Notification
|
||||||
trigger:
|
trigger:
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: sensor.washer_status
|
entity_id: binary_sensor.dryer_dry_completed
|
||||||
from: running
|
from: 'off'
|
||||||
to: complete
|
to: 'on'
|
||||||
- platform: event
|
|
||||||
event_type: event_washer_complete_notification
|
|
||||||
action:
|
action:
|
||||||
- service: script.turn_on
|
- service: script.status_annc
|
||||||
entity_id: script.washer_finished_notification_audible
|
data:
|
||||||
|
who: '{{ states.sensor.room_presence.state }}'
|
||||||
|
call_interuption: 1
|
||||||
|
speech_message: It appears the dryer has finished.
|
||||||
|
- delay:
|
||||||
|
minutes: 15
|
||||||
|
# - service: script.turn_on
|
||||||
|
# entity_id: script.dryer_finished_notification_audible
|
||||||
|
|
||||||
|
|
||||||
- id: dishwasher_idle
|
- id: dishwasher_idle
|
||||||
|
@ -119,6 +161,54 @@ automation:
|
||||||
action:
|
action:
|
||||||
- service: script.dishwasher_running
|
- service: script.dishwasher_running
|
||||||
|
|
||||||
|
- id: e1cb2640-0423-11eb-adc1-0242ac120002
|
||||||
|
alias: 3D Printing Notifications
|
||||||
|
trigger:
|
||||||
|
- platform: state
|
||||||
|
entity_id: binary_sensor.octoprint_printing
|
||||||
|
to: "on"
|
||||||
|
id: printing_started
|
||||||
|
- platform: state
|
||||||
|
entity_id: binary_sensor.octoprint_printing
|
||||||
|
to: "off"
|
||||||
|
id: printing_ended
|
||||||
|
action:
|
||||||
|
- choose:
|
||||||
|
- conditions:
|
||||||
|
- condition: trigger
|
||||||
|
id: printing_started
|
||||||
|
- condition: state
|
||||||
|
entity_id: sensor.octoprint_current_state
|
||||||
|
state: 'Printing'
|
||||||
|
sequence:
|
||||||
|
- service: script.status_annc
|
||||||
|
data:
|
||||||
|
who: '{{ states.sensor.room_presence.state }}'
|
||||||
|
call_interuption: 1
|
||||||
|
speech_message: The three d printer is printing.
|
||||||
|
- conditions:
|
||||||
|
- condition: trigger
|
||||||
|
id: printing_started
|
||||||
|
- condition: state
|
||||||
|
entity_id: sensor.octoprint_current_state
|
||||||
|
state: 'Sending file to SD'
|
||||||
|
sequence:
|
||||||
|
- service: script.status_annc
|
||||||
|
data:
|
||||||
|
who: '{{ states.sensor.room_presence.state }}'
|
||||||
|
call_interuption: 1
|
||||||
|
speech_message: Uploading file to three d file has started.
|
||||||
|
- conditions:
|
||||||
|
- condition: trigger
|
||||||
|
id: printing_ended
|
||||||
|
sequence:
|
||||||
|
- service: script.status_annc
|
||||||
|
data:
|
||||||
|
who: '{{ states.sensor.room_presence.state }}'
|
||||||
|
call_interuption: 1
|
||||||
|
speech_message: The three d printer has completed its job.
|
||||||
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
|
|
||||||
appliances_on:
|
appliances_on:
|
||||||
|
@ -138,15 +228,27 @@ script:
|
||||||
|
|
||||||
washer_finished_notification_audible:
|
washer_finished_notification_audible:
|
||||||
sequence:
|
sequence:
|
||||||
|
- repeat:
|
||||||
|
while:
|
||||||
|
- condition: state
|
||||||
|
entity_id: sensor.washer_status
|
||||||
|
state: 'complete'
|
||||||
|
sequence:
|
||||||
- delay:
|
- delay:
|
||||||
minutes: 15
|
minutes: 45
|
||||||
- service: script.washer_audible
|
- service: script.washer_audible
|
||||||
- delay:
|
|
||||||
minutes: 30
|
# dryer_finished_notification_audible:
|
||||||
- event: event_washer_complete_notification
|
# sequence:
|
||||||
event_data:
|
# - repeat:
|
||||||
name: Washer Complete Notification
|
# while:
|
||||||
message: Washer has completed it's cycle
|
# - condition: state
|
||||||
|
# entity_id: sensor.washer_status
|
||||||
|
# state: 'complete'
|
||||||
|
# sequence:
|
||||||
|
# - service: script.dryer_audible
|
||||||
|
# - delay:
|
||||||
|
# minutes: 45
|
||||||
|
|
||||||
washer_audible:
|
washer_audible:
|
||||||
sequence:
|
sequence:
|
||||||
|
|
Loading…
Reference in New Issue