Waschmaschine fertig

Hallo,
bei mir ist es die Waschmaschine, die Probleme gemacht hat.
Zum einen fällt die Leistung zwischendurch auf <4W und am Ende des Waschvorganges läuft das
“Knitterschutzprogramm” mit Leistungsspitzen von bis zu 40 Watt, deshalb habe ich für die Waschmaschine mit Zeitgliedern gearbeitet und fange das Ende der Maschine über das Schleudern mit Leistung >250 Watt ab. Funktioniert bei allen Programmen bisher ganz gut.
Hier der Flow:


und der Code, falls Du Interesse hast:

[{"id":"e72b24468681a588","type":"server-state-changed","z":"32d56062f02c59a1","name":"Leistung Waschmaschine","server":"a1aba8eb.bfd618","version":5,"outputs":2,"exposeAsEntityConfig":"","entityId":"sensor.waschmaschine_leistung","entityIdType":"exact","outputInitially":false,"stateType":"str","ifState":"1000","ifStateType":"num","ifStateOperator":"gt","outputOnlyOnStateChange":true,"for":"0","forType":"num","forUnits":"seconds","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":170,"y":680,"wires":[["45283c9761174e97","b1fbb38358e715c7"],[]]},{"id":"1438208f255ee772","type":"api-call-service","z":"32d56062f02c59a1","name":"Waschmaschine fertig","server":"a1aba8eb.bfd618","version":5,"debugenabled":false,"domain":"notify","service":"mobile_app_iphone_harald_privat","areaId":[],"deviceId":[],"entityId":[],"data":"{\"message\":\"Waschmaschine ist fertig\",\"data\":{\"type\":\"announce\"}}","dataType":"json","mergeContext":"Test","mustacheAltTags":true,"outputProperties":[],"queue":"all","x":1340,"y":520,"wires":[[]]},{"id":"6f31be21fa1cc814","type":"comment","z":"32d56062f02c59a1","name":"Benachrichtigung: Waschmaschine","info":"","x":220,"y":520,"wires":[]},{"id":"bdb8012baed10d2d","type":"api-call-service","z":"32d56062f02c59a1","name":"Lüfter Stufe 1 AUS","server":"a1aba8eb.bfd618","version":5,"debugenabled":false,"domain":"light","service":"turn_off","areaId":[],"deviceId":[],"entityId":["light.lufter_stufe_1"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1550,"y":580,"wires":[[]]},{"id":"dd5d70c8e1c4d483","type":"api-call-service","z":"32d56062f02c59a1","name":"Lüfter Stufe 0 AUS","server":"a1aba8eb.bfd618","version":5,"debugenabled":false,"domain":"light","service":"turn_off","areaId":[],"deviceId":[],"entityId":["light.lufter_stufe_0"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1750,"y":640,"wires":[[]]},{"id":"c12c054afccc56d9","type":"trigger","z":"32d56062f02c59a1","name":"Wartezeit 5 min","op1":"","op2":"on","op1type":"nul","op2type":"str","duration":"5","extend":true,"overrideDelay":false,"units":"min","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":1320,"y":640,"wires":[["a980ed59898cd2be"]]},{"id":"45283c9761174e97","type":"trigger","z":"32d56062f02c59a1","name":"Normalprogramm","op1":"","op2":"on","op1type":"nul","op2type":"str","duration":"100","extend":false,"overrideDelay":false,"units":"min","reset":"stop","bytopic":"all","topic":"topic","outputs":1,"x":410,"y":780,"wires":[["fca14f07b0c363d0"]]},{"id":"28a9716c920f555d","type":"api-current-state","z":"32d56062f02c59a1","name":"Schleudern fertig","server":"a1aba8eb.bfd618","version":3,"outputs":2,"halt_if":"30","halt_if_type":"num","halt_if_compare":"lt","entity_id":"sensor.waschmaschine_leistung","state_type":"num","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":1030,"y":620,"wires":[["1438208f255ee772","c12c054afccc56d9","529696713a39c258","d8e2f45c685fa980","a14d62ccf86af17b","98dff0de7ba8fb12"],["ca616fda2ed2941d"]]},{"id":"ca616fda2ed2941d","type":"trigger","z":"32d56062f02c59a1","name":"Überwachung ","op1":"","op2":"","op1type":"nul","op2type":"pay","duration":"10","extend":false,"overrideDelay":false,"units":"s","reset":"stop","bytopic":"all","topic":"topic","outputs":1,"x":1040,"y":700,"wires":[["28a9716c920f555d"]]},{"id":"b1fbb38358e715c7","type":"trigger","z":"32d56062f02c59a1","name":"Kurzprogramm?","op1":"","op2":"on","op1type":"nul","op2type":"str","duration":"38","extend":false,"overrideDelay":false,"units":"min","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":420,"y":720,"wires":[["ef904b55f11abd66","fca14f07b0c363d0"]]},{"id":"ef904b55f11abd66","type":"trigger","z":"32d56062f02c59a1","name":"oder länger?","op1":"","op2":"on","op1type":"nul","op2type":"str","duration":"5","extend":true,"overrideDelay":false,"units":"min","reset":"stop","bytopic":"all","topic":"topic","outputs":1,"x":390,"y":620,"wires":[["7562e4a86868d0fa"]]},{"id":"7562e4a86868d0fa","type":"change","z":"32d56062f02c59a1","name":"Normal","rules":[{"t":"set","p":"payload","pt":"msg","to":"stop","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":560,"y":620,"wires":[["66fd2927a0e763c7","fdfe688ad4dcc720"]]},{"id":"326019c5293cb6bd","type":"inject","z":"32d56062f02c59a1","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"on","payloadType":"flow","x":830,"y":580,"wires":[["28a9716c920f555d"]]},{"id":"529696713a39c258","type":"alexa-remote-routine","z":"32d56062f02c59a1","name":"ALEXA Büro-Küche: Waschmaschine ist fertig","account":"1dc2bfdd622bc8d9","routineNode":{"type":"speak","payload":{"type":"announcement","text":{"type":"str","value":"Die Waschmaschine ist fertig"},"devices":["G000RA0995260UQ8","G2A0P30774060QHW","G090L91180620VR7"]}},"x":1420,"y":700,"wires":[[]]},{"id":"540ec2633a0b556f","type":"alexa-remote-routine","z":"32d56062f02c59a1","name":"ALEXA: Waschmaschine ist fertig","account":"1dc2bfdd622bc8d9","routineNode":{"type":"speak","payload":{"type":"announcement","text":{"type":"str","value":"Die Waschmaschine war fertig"},"devices":["G000RA0995260UQ8","G2A0P30774060QHW"]}},"x":1840,"y":940,"wires":[["2405a3eaa7ad22aa"]]},{"id":"bcf092416bbfd820","type":"alexa-remote-routine","z":"32d56062f02c59a1","name":"ALEXA: Waschmaschine ist fertig","account":"1dc2bfdd622bc8d9","routineNode":{"type":"speak","payload":{"type":"regular","text":{"type":"str","value":"Die Waschmaschine war fertig"},"devices":["G000MW0773710CPK"]}},"x":2100,"y":780,"wires":[[]]},{"id":"d8e2f45c685fa980","type":"api-current-state","z":"32d56062f02c59a1","name":"Waschküche lüftet","server":"a1aba8eb.bfd618","version":3,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"input_boolean.luftung_waschkuche","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":1330,"y":580,"wires":[[],["bdb8012baed10d2d"]]},{"id":"efb0dcbbd91a2e34","type":"server-state-changed","z":"32d56062f02c59a1","name":"Überwachung Bewegungsmelder Waschküche","server":"a1aba8eb.bfd618","version":5,"outputs":2,"exposeAsEntityConfig":"","entityId":"binary_sensor.bewegungsmelder_waschkuche_alarm","entityIdType":"exact","outputInitially":false,"stateType":"str","ifState":"on","ifStateType":"str","ifStateOperator":"is","outputOnlyOnStateChange":true,"for":"0","forType":"num","forUnits":"seconds","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":1140,"y":860,"wires":[["7d981e7d55bff1c9"],[]]},{"id":"a14d62ccf86af17b","type":"api-current-state","z":"32d56062f02c59a1","name":"Bewegung in der Waschküche?","server":"a1aba8eb.bfd618","version":3,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"binary_sensor.bewegungsmelder_waschkuche_alarm","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":"0","forType":"num","forUnits":"seconds","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":1370,"y":760,"wires":[[],["f1adb04579e5e03e"]]},{"id":"2405a3eaa7ad22aa","type":"trigger","z":"32d56062f02c59a1","name":"Wartezeit 30 min","op1":"","op2":"on","op1type":"nul","op2type":"str","duration":"30","extend":false,"overrideDelay":false,"units":"min","reset":"stop","bytopic":"all","topic":"topic","outputs":1,"x":1810,"y":840,"wires":[["bcf092416bbfd820","424e989ed1e98759","540ec2633a0b556f"]]},{"id":"7d981e7d55bff1c9","type":"change","z":"32d56062f02c59a1","name":"Ja","rules":[{"t":"set","p":"payload","pt":"msg","to":"stop","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1410,"y":820,"wires":[["2405a3eaa7ad22aa","9dff6abd8c9857a7"]]},{"id":"424e989ed1e98759","type":"api-call-service","z":"32d56062f02c59a1","name":"Waschmaschine fertig","server":"a1aba8eb.bfd618","version":5,"debugenabled":true,"domain":"notify","service":"mobile_app_iphone_harald_privat","areaId":[],"deviceId":[],"entityId":[],"data":"{\"message\":\"Die Waschmaschine war fertig\",\"data\":{\"type\":\"announce\"}}","dataType":"json","mergeContext":"Test","mustacheAltTags":true,"outputProperties":[],"queue":"all","x":2060,"y":840,"wires":[[]]},{"id":"5ce0701f906820f2","type":"inject","z":"32d56062f02c59a1","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"on","payloadType":"flow","x":190,"y":620,"wires":[["ef904b55f11abd66"]]},{"id":"2bffc1198d940edf","type":"server-state-changed","z":"32d56062f02c59a1","name":"Tür Waschmaschine AUF","server":"a1aba8eb.bfd618","version":5,"outputs":2,"exposeAsEntityConfig":"","entityId":"binary_sensor.lumi_lumi_sensor_magnet_aq2_waschmaschine","entityIdType":"exact","outputInitially":true,"stateType":"str","ifState":"on","ifStateType":"str","ifStateOperator":"is","outputOnlyOnStateChange":false,"for":"0","forType":"num","forUnits":"seconds","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":1070,"y":800,"wires":[["7d981e7d55bff1c9"],[]]},{"id":"a980ed59898cd2be","type":"api-current-state","z":"32d56062f02c59a1","name":"Waschküche lüftet","server":"a1aba8eb.bfd618","version":3,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"input_boolean.luftung_waschkuche","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":1530,"y":640,"wires":[[],["dd5d70c8e1c4d483"]]},{"id":"f1adb04579e5e03e","type":"api-current-state","z":"32d56062f02c59a1","name":"Tür Waschmaschine ZU","server":"a1aba8eb.bfd618","version":3,"outputs":2,"halt_if":"off","halt_if_type":"str","halt_if_compare":"is","entity_id":"binary_sensor.lumi_lumi_sensor_magnet_aq2_waschmaschine","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":"0","forType":"num","forUnits":"seconds","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":1650,"y":760,"wires":[["2405a3eaa7ad22aa","2d8cf53192c20ab5"],[]]},{"id":"2d8cf53192c20ab5","type":"api-call-service","z":"32d56062f02c59a1","name":"Signallampe EIN","server":"a1aba8eb.bfd618","version":5,"debugenabled":false,"domain":"switch","service":"turn_on","areaId":[],"deviceId":[],"entityId":["switch.zha_repeater_waschkuche_switch"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1880,"y":720,"wires":[[]]},{"id":"9dff6abd8c9857a7","type":"api-call-service","z":"32d56062f02c59a1","name":"Signallampe AUS","server":"a1aba8eb.bfd618","version":5,"debugenabled":false,"domain":"switch","service":"turn_off","areaId":[],"deviceId":[],"entityId":["switch.zha_repeater_waschkuche_switch"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1490,"y":900,"wires":[[]]},{"id":"bc540663ac6902a0","type":"link in","z":"32d56062f02c59a1","name":"link in 4","links":["6a3ac995bedbff43"],"x":1555,"y":860,"wires":[["2405a3eaa7ad22aa"]]},{"id":"1f10a9d95c20ef46","type":"comment","z":"32d56062f02c59a1","name":"Zentralalarm","info":"","x":130,"y":1000,"wires":[]},{"id":"fca14f07b0c363d0","type":"api-current-state","z":"32d56062f02c59a1","name":"Schleudern","server":"a1aba8eb.bfd618","version":3,"outputs":2,"halt_if":"250","halt_if_type":"num","halt_if_compare":"gt","entity_id":"sensor.waschmaschine_leistung","state_type":"num","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":650,"y":780,"wires":[["66fd2927a0e763c7"],["2ae474198c6fd0d8"]]},{"id":"66fd2927a0e763c7","type":"trigger","z":"32d56062f02c59a1","name":"Wartezeit","op1":"","op2":"on","op1type":"nul","op2type":"str","duration":"200","extend":false,"overrideDelay":false,"units":"s","reset":"stop","bytopic":"all","topic":"topic","outputs":1,"x":660,"y":720,"wires":[["ab89081a13488edb"]]},{"id":"ab89081a13488edb","type":"api-current-state","z":"32d56062f02c59a1","name":"Schleudern","server":"a1aba8eb.bfd618","version":3,"outputs":2,"halt_if":"250","halt_if_type":"num","halt_if_compare":"gt","entity_id":"sensor.waschmaschine_leistung","state_type":"num","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":830,"y":720,"wires":[["28a9716c920f555d"],["fca14f07b0c363d0"]]},{"id":"2ae474198c6fd0d8","type":"trigger","z":"32d56062f02c59a1","name":"Wartezeit ","op1":"","op2":"on","op1type":"nul","op2type":"str","duration":"10","extend":false,"overrideDelay":false,"units":"s","reset":"stop","bytopic":"all","topic":"topic","outputs":1,"x":660,"y":860,"wires":[["fca14f07b0c363d0"]]},{"id":"e35b26f254da29e1","type":"link in","z":"32d56062f02c59a1","name":"link in 32","links":["fdfe688ad4dcc720"],"x":525,"y":860,"wires":[["2ae474198c6fd0d8"]]},{"id":"fdfe688ad4dcc720","type":"link out","z":"32d56062f02c59a1","name":"link out 56","mode":"link","links":["8bb7bc571eded347","e35b26f254da29e1"],"x":685,"y":620,"wires":[]},{"id":"799505cea6a4c2a8","type":"inject","z":"32d56062f02c59a1","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"on","payloadType":"flow","x":430,"y":840,"wires":[["fca14f07b0c363d0"]]},{"id":"98dff0de7ba8fb12","type":"link out","z":"32d56062f02c59a1","name":"link out 57","mode":"link","links":["8bb7bc571eded347","b4e638d474adf611"],"x":1125,"y":560,"wires":[]},{"id":"b4e638d474adf611","type":"link in","z":"32d56062f02c59a1","name":"link in 33","links":["98dff0de7ba8fb12"],"x":455,"y":580,"wires":[["7562e4a86868d0fa"]]},{"id":"a1aba8eb.bfd618","type":"server","name":"Home Assistant","version":5,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":false,"heartbeatInterval":30,"areaSelector":"friendlyName","deviceSelector":"friendlyName","entitySelector":"friendlyName","statusSeparator":"at: ","statusYear":"hidden","statusMonth":"short","statusDay":"numeric","statusHourCycle":"h23","statusTimeFormat":"h:m","enableGlobalContextStore":true},{"id":"1dc2bfdd622bc8d9","type":"alexa-remote-account","name":"ALEXA","authMethod":"proxy","proxyOwnIp":"192.168.178.72","proxyPort":"3456","cookieFile":"/homeassistant/amazon.txt","refreshInterval":"3","alexaServiceHost":"layla.amazon.de","pushDispatchHost":"","amazonPage":"amazon.de","acceptLanguage":"de-DE","onKeywordInLanguage":"on","userAgent":"","autoInit":"on"}]

Oha das sieht ja mal kompliziert aus aber wenn es funktioniert Top. Ich werde es mal versuchen zu testen. Danke fürs teilen!

Ja, da sind noch zahlreiche Zusatzfeatures (ALEXA-Meldung & -Erinnerung, Signallampe in der Wohnung, STOP der Erinnerung über telegram, usw.).
Wenn Du den Flow übernimmst, solltest Du die Leistungswerte Deines Gerätes mit Spitzen und Tiefpunkten über einige Durchläuft ermitteln und die für Dich passenden Einstellungen wählen.

Meinen Trockner und meine Spülmaschine laufen “unkomplizierter”, deshalb habe ich da diese
Nodes verwendet:


und die “Fertigerkennung” ist dabei deutlich einfacher, aber auch dort gibt es die Zusatzfeatures. :wink:

bei unserer Waschmaschine wird im Woll-Wasch-Programm nicht geschleudert …

Bei unserer auch, aber das Woll-Waschprogramm nutzen wir auch nicht! :wink:

Ich habe es über 3 Automationen gemacht, da ich ich noch den Zustand ausgeräumt auf dem Dashboard haben wollte.
Der Zustand wird geändert über den Stromverbrauch und durch normale Aqara Fenstersensoren. Sobald die Tür geöfffnet wird, geht der Zustand auf ausgeräumt. (Okay mit Kindern ist das nicht unbedingt mit 100% Garantie :slight_smile: )
Gleiches Prozedere auch für den Geschirrspüler / Trockner.
Über den Button am Dashboard kann auch zusätzlich der Zustand auf ausgeräumt gesetzt werden. Das Ganze ist eine Conditional Card, bedeutet diese verschwindet wieder wenn gedrückt.

    - id: '1582406016656'
      alias: 'Waschmaschine  waschen an '
      description: ''
      trigger:
      - above: '20'
        entity_id: sensor.waschmaschine_current_consumption
        for: 00:00:10
        platform: numeric_state
      condition: []
      action:
      - data:
          option: Waschen
        entity_id: input_select.state_washingmachine
        service: input_select.select_option
        
    - id: '1582406294417'
      alias: 'Waschmaschine fertig'
      description: ''
      trigger:
      - below: '5'
        entity_id: sensor.waschmaschine_current_consumption
        for: 00:10:00
        platform: numeric_state
      condition:
      - condition: state
        entity_id: input_select.state_washingmachine
        state: Waschen
      action:
      - data:
          option: Fertig
        entity_id: input_select.state_washingmachine
        service: input_select.select_option
  

    - id: '1633590993803'
      alias: 'Status Waschmaschine ausgeräumt'
      description: ''
      trigger:
      - platform: state
        entity_id: binary_sensor.tur_waschmaschine_opening_4
        to: 'on'
      condition: []
      action:
      - data:
          option: Ausgeräumt
        entity_id: input_select.state_washingmachine
        service: input_select.select_option

Hallo zusammen, bin recht neu in dem Thema Home Assistent und habe auch gleich ein Problem.
Hatte mir die Blueprint für die Waschmaschine eingefügt und hat auch alles super funktioniert mit Benachrichtigungen auf Alexa.
Seit 2 Tagen funktioniert es nicht mehr.
Hab dann heute versucht die Automationen neu zu machen und habe dann folgende Fehlermeldung bekommen. “Message malformed: Missing input pre_actions”
jemand eine Idee was ich tun kann? Einstellungen sind exakt genau so wie vorher.

Viele Grüße Markus

@Markus1409 Schau mal hier (unter den Comments):

2 „Gefällt mir“

Super. Vielen Dank. Das hat geholfen

sehr sehr cooles dashboard, sowas hätte ich auch sehr gerne, Du mußt mal sagen, wie du das gemacht hast bitte …

Ist das Dashboard von Matt angepasst auf meine Entitäten etc.
https://github.com/matt8707/hass-config

Hallo zusammen. Mir war die Lösung über reine Automation nicht genug, daher habe ich ein Script für einen Template Sensor geschrieben.
Der Sensor kann Status on / off einnehmen und hat die Attribute

  • triggered
  • running
  • end
  • friendly name

On/off: wenn der jeweilige threshold überschritten bzw. unterschritten wird.
(Im Script kann man zwei Thresholds festlegen)
Triggered: eine time-stamp, wann der Threshold ausgelöst wurde.
Running:

  • true: wenn der threshold für Zeit x (kann im Script festgelegt werden) überschritten wurde
  • false:
    end:
  • true: wenn der threshold für Zeit x (kann im
    Script festgelegt werden) Unterschritten wurde
  • false

Damit kann man nun einfach Buttons bauen oder sich die voraussichtliche Restlaufzeit (an Hand der Time-stamp) errechnen und anzeigen lassen. Automatisationrn natürlich auch.

im meinem Beispiel
Sensor.steckdose_waschkuche_power : aktuelle Watt des Smart-Plug
waschmaschine_status: Name des neuen Sensor

  1. Threshold: > 6

  2. Threshold: <= 4

  3. Zahl 30 = 30 sekunden (attribute running: true)

  4. Zahl 30 = 30 sekunden ( attribute end: true)

##### Waschmaschine #####
- platform: template
  sensors:
    waschmaschine_status:
      friendly_name: "Waschmaschine Status"
      value_template: >-
        {% if states('sensor.steckdose_waschkuche_power') | float > 6 %}
          on
        {% elif states('sensor.steckdose_waschkuche_power') | float <= 4 %}
          off
        {% else %}
          {% if is_state('sensor.waschmaschine_status', 'on') and not is_state_attr('sensor.waschmaschine_status', 'running', true) %}
            on
          {% elif is_state('sensor.waschmaschine_status', 'off') and not is_state_attr('sensor.waschmaschine_status', 'end', true) %}
            off
          {% else %}
            unknown
          {% endif %}
        {% endif %}
      attribute_templates:
        triggered: >-
          {{ as_timestamp(states.sensor.waschmaschine_status.last_changed) | timestamp_custom('%Y-%m-%d %H:%M:%S', true) }}
        running: >-
          {% if is_state('sensor.waschmaschine_status', 'on') and (as_timestamp(now()) - as_timestamp(states.sensor.waschmaschine_status.attributes.triggered)) >= 30 %}
            true
          {% else %}
            false
          {% endif %}
        end: >-
          {% if is_state('sensor.waschmaschine_status', 'off') and (as_timestamp(now()) - as_timestamp(states.sensor.waschmaschine_status.attributes.triggered)) >= 30 %}
            true
          {% else %}
            false
          {% endif %}

Nachtrag:
Hier auch meine Buttons in einer Grid card:

square: false
type: grid
cards:
  - type: custom:button-card
    entity: sensor.waschmaschine_status
    name: Waschgang
    icon: mdi:washing-machine
    show_name: true
    show_icon: true
    show_label: true
    show_state: false
    hold_action:
      action: more-info
    label: |
      [[[
        if (states['sensor.waschmaschine_status'].attributes.running == 'true') {
          return 'läuft';
        } else if (states['sensor.waschmaschine_status'].attributes.end == 'true') {
          return 'Ende';
        } else {
          return 'warten';
        }
      ]]]
    styles:
      grid:
        - grid-template-areas: '". i" "l l" "n n"'
        - grid-template-rows: 24px 1.5fr 24px
        - grid-template-columns: 1fr 1fr
      card:
        - height: 100%
        - padding: 1rem
        - background: |
            [[[
              if (states['sensor.waschmaschine_status'].attributes.running == 'true') {
                return 'var(--blue)';
              } else if (states['sensor.waschmaschine_status'].attributes.end == 'true') {
                return 'var(--primary-background-color)';
              } else {
                return 'var(--yellow)';
              }
            ]]]
      img_cell:
        - justify-content: end
        - overflow: hidden
        - padding: 0 0 0 0
      icon:
        - justify-self: end
        - align-self: center
        - width: 24px
        - padding: 0 0 0 0
        - overflow: hidden
        - color: |
            [[[
              if (states['sensor.waschmaschine_status'].attributes.running == 'true') {
                return 'var(--black)';
              } else if (states['sensor.waschmaschine_status'].attributes.end == 'true') {
                return 'var(--contrast20)';
              } else {
                return 'var(--black)';
              }
            ]]]
        - animation: |
            [[[
              if (states['sensor.waschmaschine_status'].attributes.running == 'true') {
                return 'blink 1.5s linear infinite';
              } else if (states['sensor.waschmaschine_status'].attributes.end == 'true') {
                return 'null';
              } else {
                return 'blink 1.5s linear infinite';
              }
            ]]] 
      label:
        - text-align: left
        - font-size: 14px
        - font-weight: 500
        - justify-self: start
        - align-self: end
        - overflow: visible
        - color: |
            [[[
              if (states['sensor.waschmaschine_status'].attributes.running == 'true') {
                return 'var(--black)';
              } else if (states['sensor.waschmaschine_status'].attributes.end == 'true') {
                return 'var(--contrast20)';
              } else {
                return 'var(--black)';
              }
            ]]]
      name:
        - text-align: left
        - font-size: 12px
        - opacity: 0.7
        - justify-self: start
        - align-self: center
        - overflow: visible
        - color: |
            [[[
              if (states['sensor.waschmaschine_status'].attributes.running == 'true') {
                return 'var(--black)';
              } else if (states['sensor.waschmaschine_status'].attributes.end == 'true') {
                return 'var(--contrast20)';
              } else {
                return 'var(--black)';
              }
            ]]]
  - type: custom:button-card
    name: |
      [[[
        // Check if the washing machine is running
        if (states['sensor.waschmaschine_status'].attributes.running == 'true') {
          // Get the triggered timestamp from the sensor attribute
          var triggeredTimestamp = new Date(states['sensor.waschmaschine_status'].attributes.triggered);
          // Get the current timestamp
          var currentTimestamp = new Date();
          // Calculate the time difference in milliseconds
          var timeDifference = currentTimestamp - triggeredTimestamp;
          // Convert milliseconds to minutes
          var remainingMinutes = 59 - Math.floor(timeDifference / (1000 * 60));
          // Ensure the remaining minutes is not negative
          remainingMinutes = Math.max(remainingMinutes, 0);

          return remainingMinutes;
        } else {
          return 'off';
        }
      ]]]
    label: Ende in ca.
    custom_fields:
      einheit: Minuten
    show_state: false
    show_label: true
    show_name: true
    entity: sensor.waschmaschine_status
    styles:
      grid:
        - grid-template-areas: '"n einheit" "l l"'
        - grid-template-columns: min-content min-content
        - grid-template-rows: min-content 14px
      name:
        - font-size: 32px
        - color: var(--contrast20)
        - justify-self: end
      card:
        - height: 80px
        - border-radius: 24px
        - padding: 20px 0 6px 16px
        - box-sizing: border-box
        - background: var(--primary-background-color)
        - box-shadow: none
      label:
        - justify-self: start
        - font-size: 14px
        - color: var(--contrast20)
        - margin-top: '-7px'
      custom_fields:
        einheit:
          - justify-self: end
          - font-size: 12px
          - color: var(--contrast9)
          - margin-bottom: '-10px'
          - padding-left: 2px
columns: 1

:crayon:by HarryP: Zusammenführung Doppelpost (bitte “bearbeiten” Funktion :crayon: nutzen).

macht das eure Frau so mit? Weil,

ich hatte das eine Weile ähnlich. Zwar per HomeConnect, aber kommt ja aufs selbe raus. 5 Minuten vor Ende gabs ne Whatsapp “Bin gleich fertig”, am Ende über den Homepod “bin fertig”. Nach zwei Wochen hatte meine Lebensabschnittsgefahr das so dermaßend satt. :rofl:

Bei uns gibt es nur zum Ende hin eine Benachrichtigung über die App, wenn Waschmaschine bzw. Trockner fertig sind.
Meine Frau findet das sogar sehr positiv. Hat schon einige unnötige Ausflüge in den Keller verhindert.
Allerdings gibt es bei mir, wie oben erwähnt, über Node-RED nur die Fertig-Meldung, da vor allem der Trockner doch sehr unterschiedlich lange braucht trotz gleichen Programms.
Vorhersage habe ich keine. Wie gut ist die denn? Weil das unterscheidet sich ja doch sehr vom Programm und anderen (Umgebungs-)Bedingungen.

cool! würd’ mich mal interessieren, wie das dann im dashboard aussieht …

Meine geniesst es weil sie dann nicht in den Keller rennen muss um zu prüfen ob die errechnete Restzeit mit der Realität übereinstimmt :slight_smile:

Also die Karten, die ich gepostet habe, sind die Links im Grid. Habe es mal simuliert, wenn die Maschine an wäre


1 „Gefällt mir“

das mit dem voraussichtlichen Ende finde ich gut aber 3 Kacheln für eine Waschmaschine nimmt ja recht viel Platz auf dem Dashboard ein. Wenn man dasselbe dann noch mit Trockner und Spülmaschine macht …
könnte man nicht eine bedingte Anzeige nehmen, die entweder das voraussichtliche Ende oder den Steckdosen-Schalter einbelndet oder was auch immer wichtig ist? Es gibt glaube ich auch Kacheln wo man durch Klicken zu weiteren Funktionen kommt, damit habe ich mich aber noch nicht beschäftigt.

Kann man natürlich machen. Meine Karten waren nur ein Beispiel, wie man den neuen Sensor verwenden kann. Aktuell plane ich eine Karte zu erstellen, die alle Informationen beinhaltet und einige Details nur einblendet, wenn die Maschine auch an ist. Geht ganz simple über die conditional card.

Die 5 Minutenwarnung war sehr genau. Über Home Connect liefert unsere Waschmaschine die Programmrestlaufzeit. Automation war dann Laufzeit kleiner 6 Minuten, schreib eine Whatsapp. Hat aber meine Frau genervt. Gut bei uns steht die WM auch nicht im Keller sondern nur zwei Räume weiter.