What is the best trigger for the end of a washing cycle? #142
Unanswered
trogenmoser
asked this question in
Q&A
Replies: 1 comment
|
This is what I use in my automation: it it plays a message on my Sonos loudspeaker. At first I used the Trigger:After the washing cycle, the AdoraWash gets into the "Auflockern" state. This is what I use as the trigger. trigger:
- platform: template
id: auflockern
alias: "Während Auflockern"
value_template: >
{{ 'Auflockern' in states('sensor.adorawash_v4000_zustand') }}Message:Sorry, values and message are in German here. message: >
{% set txt = states('sensor.adorawash_v4000_letzte_benachrichtigung') %}
{% if txt not in ['unknown','unavailable','none',''] %}
{% set program_name = txt.split('–', 1)[0] | trim %}
{% set program_map = {
'Programm 0': 'Eco Programm beendet',
} %}
{% set display_name = program_map.get(program_name, program_name) %}
Wäsche mit {{ display_name }}.
{% else %}
Die Wäsche ist fertig.
{% endif %}Full automation (German)- id: waschmaschine_fertig_tts
alias: Waschmaschine fertig – TTS
mode: parallel
max: 2
trigger:
- platform: template
id: auflockern
alias: "Während Auflockern"
value_template: >
{{ 'Auflockern' in states('sensor.adorawash_v4000_zustand') }}
- platform: homeassistant
event: start # in case HomeAssistant is restarted
id: trigger_ha_start
action:
- repeat:
while:
- condition: template
alias: Auflockern weiterhin aktiv
value_template: >
{{ 'Auflockern' in states('sensor.adorawash_v4000_zustand') }}
sequence:
- choose:
- conditions:
- condition: time
alias: Nur tagsüber zwischen 06:15 und 22:30 ansagen
after: "06:15:00"
before: "22:30:00"
sequence:
- alias: TTS Waschmaschine fertig abspielen
action: script.tts_announcement_on_sonos
data:
sonos_entity:
- media_player.wohnzimmer
- media_player.sonos_roam
message: >
{% set txt = states('sensor.adorawash_v4000_letzte_benachrichtigung') %}
{% if txt not in ['unknown','unavailable','none',''] %}
{% set program_name = txt.split('–', 1)[0] | trim %}
{% set program_map = {
'Programm 0': 'Eco Programm beendet',
} %}
{% set display_name = program_map.get(program_name, program_name) %}
Wäsche mit {{ display_name }}.
{% else %}
Die Wäsche ist fertig.
{% endif %}
- delay: "00:30:00"The Text-to-Speach action is repeated every 30min. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi there,
First and foremost, fantastic integration!
I hooked up my washing maschine and so far all fine.
Now I try to include an automation which would send a message to my wifes (an my) mobilephone once the washing maschine (Adora SLQ WP) finished a program.
I am struggling to find the right trigger (sensor state etc.). to do so and look forward to a hint or a solution.
Best regards,
Thomas
All reactions