Had to update waher energy sensor
This commit is contained in:
parent
c4a735d671
commit
333b5a643a
|
@ -14,6 +14,12 @@ sensor:
|
||||||
- platform: mqtt
|
- platform: mqtt
|
||||||
name: "Washer Status"
|
name: "Washer Status"
|
||||||
state_topic: "house/washer/status"
|
state_topic: "house/washer/status"
|
||||||
|
- platform: mqtt
|
||||||
|
name: "Washer Last Complete"
|
||||||
|
state_topic: "house/washer/time_complete"
|
||||||
|
- platform: mqtt
|
||||||
|
name: "Washer Last Emptied"
|
||||||
|
state_topic: "house/washer/time_emptied"
|
||||||
|
|
||||||
automation:
|
automation:
|
||||||
|
|
||||||
|
@ -21,7 +27,7 @@ automation:
|
||||||
alias: Washer Running
|
alias: Washer Running
|
||||||
trigger:
|
trigger:
|
||||||
- above: 5
|
- above: 5
|
||||||
entity_id: sensor.washer_power_2
|
entity_id: sensor.washer_energy_w
|
||||||
platform: numeric_state
|
platform: numeric_state
|
||||||
condition:
|
condition:
|
||||||
condition: or
|
condition: or
|
||||||
|
@ -47,7 +53,7 @@ automation:
|
||||||
alias: Washer Complete
|
alias: Washer Complete
|
||||||
trigger:
|
trigger:
|
||||||
- below: 3
|
- below: 3
|
||||||
entity_id: sensor.washer_power_2
|
entity_id: sensor.washer_energy_w
|
||||||
platform: numeric_state
|
platform: numeric_state
|
||||||
condition:
|
condition:
|
||||||
- condition: state
|
- condition: state
|
||||||
|
@ -69,6 +75,16 @@ automation:
|
||||||
- service: script.washer_idle
|
- service: script.washer_idle
|
||||||
- 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
|
||||||
|
data:
|
||||||
|
topic: house/washer/time_emptied
|
||||||
|
payload: '{{ now().timestamp() }}'
|
||||||
|
retain: true
|
||||||
|
# - service: mqtt.publish
|
||||||
|
# data:
|
||||||
|
# topic: house/washer/time_ran
|
||||||
|
# payload: '{{ now().timestamp() - as_timestamp(states.sensor.washer_last_complete) }}'
|
||||||
|
# retain: true
|
||||||
|
|
||||||
- id: washer_notification
|
- id: washer_notification
|
||||||
initial_state: true
|
initial_state: true
|
||||||
|
@ -149,20 +165,11 @@ script:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: sensor.washer_status
|
entity_id: sensor.washer_status
|
||||||
state: complete
|
state: complete
|
||||||
- service: script.speech_engine
|
- service: script.status_annc
|
||||||
data_template:
|
data_template:
|
||||||
who: '{{ states.sensor.room_audio.state }}'
|
who: '{{ states.sensor.room_presence.state }}'
|
||||||
message: >
|
call_interuption: 1
|
||||||
<p>
|
call_washer_needs_emptying: 1
|
||||||
{{ [
|
|
||||||
'Just a reminder. Washing machine needs to be emptied.',
|
|
||||||
'I am sure you have more inportant things to do, but do not forget to empty the washer.',
|
|
||||||
'Looks like the washing machine has completed it is cycle. You know what to do,,I hope.',
|
|
||||||
'Do not forget to move the clothes to the dryer.',
|
|
||||||
'Someone forgot to move the clothes to the dryer. I am not going to name any names. But there is a camera in there. ',
|
|
||||||
'Do you like when your clothes smell like mildew? Because that is what is happening,,Right now. '
|
|
||||||
] | random }}
|
|
||||||
</p>
|
|
||||||
|
|
||||||
|
|
||||||
washer_idle:
|
washer_idle:
|
||||||
|
@ -186,6 +193,12 @@ script:
|
||||||
topic: house/washer/status
|
topic: house/washer/status
|
||||||
payload: complete
|
payload: complete
|
||||||
retain: true
|
retain: true
|
||||||
|
- service: mqtt.publish
|
||||||
|
data:
|
||||||
|
topic: house/washer/time_complete
|
||||||
|
payload: '{{ now().timestamp() }}'
|
||||||
|
retain: true
|
||||||
|
|
||||||
dishwasher_idle:
|
dishwasher_idle:
|
||||||
sequence:
|
sequence:
|
||||||
- service: mqtt.publish
|
- service: mqtt.publish
|
||||||
|
|
Loading…
Reference in New Issue