So I’ve just started down the node-red path and some of the things I’m slowly transferring over are my appliance automation’s. Looking to get some feedback on smarter ways than what I have currently done up and any errors or issues I can’t see. Hopefully this also helps other users looking to replicate the same flow. Will add the washing machine at a later stage.
Dishwasher Flow
[{"id":"ff6b69eb.07548","type":"server-state-changed","z":"8fd93472.c11bf8","name":"Dishwasher Power","server":"50b24aa1.6e06f4","entityidfilter":"sensor.wemo_lounge_cpwr","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"x":111.21115112304688,"y":417.2820711135864,"wires":[["39be85c9.d0f39a"]]},{"id":"c7e70a50.4c1a","type":"server-state-changed","z":"8fd93472.c11bf8","name":"Dishwasher Switch","server":"50b24aa1.6e06f4","entityidfilter":"switch.wemo_lounge","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"off","halt_if_type":"str","halt_if_compare":"is","outputs":2,"x":108.08332824707031,"y":566.0833129882812,"wires":[["d6d6f3b8.9f27a8","e0308621.738f68","a8635e50.0a7cb"],["adfdf861.00cfa"]]},{"id":"a8635e50.0a7cb","type":"and-gate","z":"8fd93472.c11bf8","name":"Set Idle","rules":[{"t":"eq","v":"on","vt":"str","propertyType":"msg","property":"payload","topic":"switch.wemo_lounge"},{"t":"regex","v":"Power Off","vt":"str","case":false,"propertyType":"msg","property":"state","topic":"sensor.wemo_dishwasher_status"},{"t":"lt","v":"2","vt":"str","propertyType":"msg","property":"power","topic":"sensor.wemo_lounge_cpwr"}],"outputTopic":"dishwasher_value","gateType":"and","emitOnlyIfTrue":true,"x":740.86669921875,"y":512.4166259765625,"wires":[["a95aec57.6117e"]]},{"id":"39be85c9.d0f39a","type":"change","z":"8fd93472.c11bf8","name":"Change","rules":[{"t":"move","p":"payload","pt":"msg","to":"power","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":293.21112060546875,"y":416.1153841018677,"wires":[["a8635e50.0a7cb","e0308621.738f68","d6d6f3b8.9f27a8"]]},{"id":"35c9fad0.a2c616","type":"change","z":"8fd93472.c11bf8","name":"Change","rules":[{"t":"move","p":"payload","pt":"msg","to":"state","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":274.42779541015625,"y":469.3654146194458,"wires":[["a8635e50.0a7cb","e0308621.738f68","6b29b4f3.ccd56c"]]},{"id":"77f039a9.84c2a8","type":"template","z":"8fd93472.c11bf8","name":"Idle","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{ \"domain\": \"input_select\",\n \"service\": \"select_option\",\n \"data\": {\n \"entity_id\": \"input_select.dishwasher_status\",\n \"option\": \"Idle\"\n }\n}","output":"str","x":1042.0833740234375,"y":514.0833435058594,"wires":[["24e277d6.c88b5"]]},{"id":"24e277d6.c88b5","type":"api-call-service","z":"8fd93472.c11bf8","name":"HA","server":"50b24aa1.6e06f4","service_domain":"","service":"","data":"","render_data":false,"mergecontext":"","output_location":"payload","output_location_type":"msg","x":1272.0833740234375,"y":462.0833435058594,"wires":[[]]},{"id":"e0308621.738f68","type":"and-gate","z":"8fd93472.c11bf8","name":"Set Running","rules":[{"t":"eq","v":"on","vt":"str","propertyType":"msg","property":"payload","topic":"switch.wemo_lounge"},{"t":"regex","v":"Idle|Clean","vt":"str","case":false,"propertyType":"msg","property":"state","topic":"sensor.wemo_dishwasher_status"},{"t":"gt","v":"10","vt":"str","propertyType":"msg","property":"power","topic":"sensor.wemo_lounge_cpwr"}],"outputTopic":"dishwasher_value","gateType":"and","emitOnlyIfTrue":true,"x":751.0833740234375,"y":462.0833435058594,"wires":[["d077e569.1c9d18"]]},{"id":"28d00f36.eff5d8","type":"template","z":"8fd93472.c11bf8","name":"Running","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{ \"domain\": \"input_select\",\n \"service\": \"select_option\",\n \"data\": {\n \"entity_id\": \"input_select.dishwasher_status\",\n \"option\": \"Running\"\n }\n}","output":"str","x":1051.0833740234375,"y":463.0833435058594,"wires":[["24e277d6.c88b5"]]},{"id":"d6d6f3b8.9f27a8","type":"and-gate","z":"8fd93472.c11bf8","name":"Set Clean","rules":[{"t":"eq","v":"on","vt":"str","propertyType":"msg","property":"payload","topic":"switch.wemo_lounge"},{"t":"eq","v":"Running","vt":"str","propertyType":"msg","property":"state","topic":"sensor.wemo_dishwasher_status"},{"t":"lt","v":"10","vt":"str","propertyType":"msg","property":"power","topic":"sensor.wemo_lounge_cpwr"}],"outputTopic":"dishwasher_value","gateType":"and","emitOnlyIfTrue":true,"x":741.0833740234375,"y":413.0833435058594,"wires":[["8940edab.1041d"]]},{"id":"b108ed95.28ef1","type":"template","z":"8fd93472.c11bf8","name":"Clean","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{ \"domain\": \"input_select\",\n \"service\": \"select_option\",\n \"data\": {\n \"entity_id\": \"input_select.dishwasher_status\",\n \"option\": \"Clean\"\n }\n}","output":"str","x":1039.0833740234375,"y":413.0833435058594,"wires":[["24e277d6.c88b5"]]},{"id":"adfdf861.00cfa","type":"template","z":"8fd93472.c11bf8","name":"Power Off","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{ \"domain\": \"input_select\",\n \"service\": \"select_option\",\n \"data\": {\n \"entity_id\": \"input_select.dishwasher_status\",\n \"option\": \"Power Off\"\n }\n}","output":"str","x":1047.0833740234375,"y":567.0833129882812,"wires":[["24e277d6.c88b5"]]},{"id":"be70be3c.71fa18","type":"server-state-changed","z":"8fd93472.c11bf8","name":"Dishwasher State","server":"50b24aa1.6e06f4","entityidfilter":"sensor.wemo_dishwasher_status","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"x":101.42781066894531,"y":471.3654146194458,"wires":[["35c9fad0.a2c616"]]},{"id":"99f12cec.0a327","type":"delay","z":"8fd93472.c11bf8","name":"","pauseType":"delay","timeout":"2","timeoutUnits":"minutes","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":647.7997436523438,"y":364.581974029541,"wires":[["d6d6f3b8.9f27a8"]]},{"id":"6b29b4f3.ccd56c","type":"api-current-state","z":"8fd93472.c11bf8","name":"Current State?","server":"50b24aa1.6e06f4","halt_if":"Running","halt_if_type":"str","halt_if_compare":"is_not","override_topic":false,"override_payload":false,"override_data":true,"entity_id":"sensor.wemo_dishwasher_status","state_type":"str","outputs":2,"x":487.79974365234375,"y":364.41525650024414,"wires":[["99f12cec.0a327"],[]]},{"id":"a95aec57.6117e","type":"api-current-state","z":"8fd93472.c11bf8","name":"State?","server":"50b24aa1.6e06f4","halt_if":"Idle","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"override_payload":false,"override_data":false,"entity_id":"sensor.wemo_dishwasher_status","state_type":"str","outputs":2,"x":888.0833129882812,"y":513.0833129882812,"wires":[["77f039a9.84c2a8"],[]]},{"id":"d077e569.1c9d18","type":"api-current-state","z":"8fd93472.c11bf8","name":"State?","server":"50b24aa1.6e06f4","halt_if":"Running","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"override_payload":false,"override_data":false,"entity_id":"sensor.wemo_dishwasher_status","state_type":"str","outputs":2,"x":900.0833129882812,"y":462.0833435058594,"wires":[["28d00f36.eff5d8"],[]]},{"id":"8940edab.1041d","type":"api-current-state","z":"8fd93472.c11bf8","name":"State?","server":"50b24aa1.6e06f4","halt_if":"Clean","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"override_payload":false,"override_data":false,"entity_id":"sensor.wemo_dishwasher_status","state_type":"str","outputs":2,"x":899.0833129882812,"y":410.0833435058594,"wires":[["b108ed95.28ef1"],[]]},{"id":"50b24aa1.6e06f4","type":"server","z":"","name":"Home Assistant","legacy":false,"hassio":false,"rejectUnauthorizedCerts":false,"ha_boolean":"y|yes|true|on|home|open"}]
Original Dishwasher yaml automation:
#Dishwasher
- alias: 'Set dishwasher active when power detected'
hide_entity: True
trigger:
platform: numeric_state
entity_id: sensor.wemo_lounge_cpwr
above: 10
condition:
condition: or
conditions:
- condition: state
entity_id: input_select.dishwasher_status
state: Idle
- condition: state
entity_id: input_select.dishwasher_status
state: Clean
action:
- service: input_select.select_option
data:
entity_id: input_select.dishwasher_status
option: Running
- alias: 'Set dishwasher clean'
hide_entity: True
trigger:
platform: numeric_state
entity_id: sensor.wemo_lounge_cpwr
below: 10
condition:
condition: and
conditions:
- condition: state
entity_id: input_select.dishwasher_status
state: Running
for:
minutes: 5
action:
- service: input_select.select_option
data:
entity_id: input_select.dishwasher_status
option: Clean
- alias: 'Set dishwasher Idle'
hide_entity: True
trigger:
platform: numeric_state
entity_id: 'sensor.wemo_lounge_cpwr'
below: '2'
condition:
condition: and
conditions:
- condition: state
entity_id: switch.wemo_lounge
state: 'on'
- condition: or
conditions:
- condition: state
entity_id: input_select.dishwasher_status
state: 'Running'
- condition: state
entity_id: input_select.dishwasher_status
state: 'Power Off'
action:
- service: input_select.select_option
data:
entity_id: input_select.dishwasher_status
option: Idle
.
Washing Machine Flow
Below is my flow for the washing machine which utilises the switch, power sensor, state sensor and a stopwatch Boolean.
[{"id":"22654bbd.f4fc64","type":"server-state-changed","z":"8fd93472.c11bf8","name":"Washer Power","server":"50b24aa1.6e06f4","entityidfilter":"sensor.aeotec_ss_1_power","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"x":99.46906280517578,"y":737.6998901367188,"wires":[["1e54adf7.0c43f2"]]},{"id":"1d47e8b4.9611f7","type":"server-state-changed","z":"8fd93472.c11bf8","name":"Washer Switch","server":"50b24aa1.6e06f4","entityidfilter":"switch.aeotec_ss_1_switch","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"off","halt_if_type":"str","halt_if_compare":"is","outputs":2,"x":96.34128952026367,"y":975.4370737075806,"wires":[["4fc81ac6.0a7304","f8067b8e.5187a8","1d476569.fd741b"],["873fa420.128438"]]},{"id":"f8067b8e.5187a8","type":"and-gate","z":"8fd93472.c11bf8","name":"Set Idle","rules":[{"t":"eq","v":"on","vt":"str","propertyType":"msg","property":"payload","topic":"switch.aeotec_ss_1_switch"},{"t":"regex","v":"Power Off","vt":"str","case":false,"propertyType":"msg","property":"state","topic":"sensor.laundry_status"},{"t":"lt","v":"3","vt":"str","propertyType":"msg","property":"power","topic":"sensor.aeotec_ss_1_power"},{"t":"eq","v":"on","vt":"str","propertyType":"msg","property":"stopwatch","topic":"input_boolean.washer_stopwatch"}],"outputTopic":"dishwasher_value","gateType":"and","emitOnlyIfTrue":true,"x":740.9491806030273,"y":856.5528583526611,"wires":[["ce28efbb.c0d69"]]},{"id":"1e54adf7.0c43f2","type":"change","z":"8fd93472.c11bf8","name":"Change","rules":[{"t":"move","p":"payload","pt":"msg","to":"power","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":291.46903228759766,"y":736.533203125,"wires":[["4fc81ac6.0a7304","1d476569.fd741b","aefa549.d70c3a8","2752f0cf.12a0c"]]},{"id":"e7112e02.a0057","type":"change","z":"8fd93472.c11bf8","name":"Change","rules":[{"t":"move","p":"payload","pt":"msg","to":"state","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":272.68570709228516,"y":789.7832336425781,"wires":[["f8067b8e.5187a8","4fc81ac6.0a7304","4a80f5e6.22f3ec"]]},{"id":"dce9864b.7c08b8","type":"template","z":"8fd93472.c11bf8","name":"Idle","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{ \"domain\": \"input_select\",\n \"service\": \"select_option\",\n \"data\": {\n \"entity_id\": \"input_select.laundry_status\",\n \"option\": \"Idle\"\n }\n}","output":"str","x":1035.8194961547852,"y":863.1416435241699,"wires":[["f18c9794.f6b788"]]},{"id":"f18c9794.f6b788","type":"api-call-service","z":"8fd93472.c11bf8","name":"HA","server":"50b24aa1.6e06f4","service_domain":"","service":"","data":"","render_data":false,"mergecontext":"","output_location":"payload","output_location_type":"msg","x":1261.2970848083496,"y":824.707953453064,"wires":[[]]},{"id":"4fc81ac6.0a7304","type":"and-gate","z":"8fd93472.c11bf8","name":"Set Cleaning","rules":[{"t":"eq","v":"on","vt":"str","propertyType":"msg","property":"payload","topic":"switch.aeotec_ss_1_switch"},{"t":"regex","v":"Idle","vt":"str","case":false,"propertyType":"msg","property":"state","topic":"sensor.laundry_status"},{"t":"gt","v":"10","vt":"str","propertyType":"msg","property":"power","topic":"sensor.aeotec_ss_1_power"},{"t":"eq","v":"off","vt":"str","propertyType":"msg","property":"stopwatch","topic":"input_boolean.washer_stopwatch"}],"outputTopic":"dishwasher_value","gateType":"and","emitOnlyIfTrue":true,"x":749.3412857055664,"y":782.5011625289917,"wires":[["91180e2b.cf941"]]},{"id":"e60276b0.a74728","type":"template","z":"8fd93472.c11bf8","name":"Cleaning","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{ \"domain\": \"input_select\",\n \"service\": \"select_option\",\n \"data\": {\n \"entity_id\": \"input_select.laundry_status\",\n \"option\": \"Cleaning\"\n }\n}","output":"str","x":1049.3412857055664,"y":783.5011625289917,"wires":[["f18c9794.f6b788"]]},{"id":"873fa420.128438","type":"template","z":"8fd93472.c11bf8","name":"Power Off","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{ \"domain\": \"input_select\",\n \"service\": \"select_option\",\n \"data\": {\n \"entity_id\": \"input_select.laundry_status\",\n \"option\": \"Power Off\"\n }\n}","output":"str","x":1045.9756927490234,"y":984.0473709106445,"wires":[["f18c9794.f6b788"]]},{"id":"e1597fe7.c413","type":"server-state-changed","z":"8fd93472.c11bf8","name":"Washer State","server":"50b24aa1.6e06f4","entityidfilter":"sensor.laundry_status","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"x":89.68572235107422,"y":791.7832336425781,"wires":[["e7112e02.a0057"]]},{"id":"596f6c7e.b999a4","type":"delay","z":"8fd93472.c11bf8","name":"","pauseType":"delay","timeout":"10","timeoutUnits":"minutes","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":656.0576553344727,"y":684.9997930526733,"wires":[["1d476569.fd741b"]]},{"id":"4a80f5e6.22f3ec","type":"api-current-state","z":"8fd93472.c11bf8","name":"Current State?","server":"50b24aa1.6e06f4","halt_if":"Cleaning","halt_if_type":"str","halt_if_compare":"is_not","override_topic":false,"override_payload":false,"override_data":true,"entity_id":"sensor.laundry_status","state_type":"str","outputs":2,"x":486.05765533447266,"y":684.8330755233765,"wires":[["596f6c7e.b999a4"],[]]},{"id":"ce28efbb.c0d69","type":"api-current-state","z":"8fd93472.c11bf8","name":"State?","server":"50b24aa1.6e06f4","halt_if":"Idle","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"override_payload":false,"override_data":false,"entity_id":"sensor.laundry_status","state_type":"str","outputs":2,"x":895.4636726379395,"y":857.2194538116455,"wires":[["dce9864b.7c08b8","dedbdcc6.a9392","efc569cb.3eaa28"],[]]},{"id":"91180e2b.cf941","type":"api-current-state","z":"8fd93472.c11bf8","name":"State?","server":"50b24aa1.6e06f4","halt_if":"Cleaning","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"override_payload":false,"override_data":false,"entity_id":"sensor.laundry_status","state_type":"str","outputs":2,"x":898.3412246704102,"y":782.5011625289917,"wires":[["e60276b0.a74728","c4d0eb29.a90658"],[]]},{"id":"dedbdcc6.a9392","type":"template","z":"8fd93472.c11bf8","name":"Janet Complete","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{ \"domain\": \"script\",\n \"service\": \"janet_speech_engine\",\n \"data\": {\n \"call_greeting\": 1,\n \"CustomMessage\": \"Wash cycle complete, enjoy the clean clothes!\"\n }\n}","output":"str","x":1065.1168975830078,"y":901.7472906112671,"wires":[["f18c9794.f6b788"]]},{"id":"d9d76d0d.f56ed","type":"api-current-state","z":"8fd93472.c11bf8","name":"State?","server":"50b24aa1.6e06f4","halt_if":"Cleaning","halt_if_type":"str","halt_if_compare":"is_not","override_topic":false,"override_payload":false,"override_data":false,"entity_id":"sensor.laundry_status","state_type":"str","outputs":2,"x":897.3412246704102,"y":730.5011625289917,"wires":[["1b7df5b2.57a9fa","84b8317c.8afdf"],[]]},{"id":"1d476569.fd741b","type":"and-gate","z":"8fd93472.c11bf8","name":"Set Failed","rules":[{"t":"eq","v":"on","vt":"str","propertyType":"msg","property":"payload","topic":"switch.aeotec_ss_1_switch"},{"t":"eq","v":"Cleaning","vt":"str","propertyType":"msg","property":"state","topic":"sensor.laundry_status"},{"t":"lte","v":"0.0","vt":"str","propertyType":"msg","property":"power","topic":"sensor.aeotec_ss_1_power"}],"outputTopic":"washer_value","gateType":"and","emitOnlyIfTrue":true,"x":739.3412857055664,"y":733.5011625289917,"wires":[["d9d76d0d.f56ed"]]},{"id":"1b7df5b2.57a9fa","type":"template","z":"8fd93472.c11bf8","name":"Janet Failed","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{ \"domain\": \"script\",\n \"service\": \"janet_speech_engine\",\n \"data\": {\n \"call_greeting\": 1,\n \"CustomMessage\": \"The Laundry cycle failed.\"\n }\n}","output":"str","x":1058.5890159606934,"y":733.5945825576782,"wires":[["f18c9794.f6b788"]]},{"id":"22aa0e49.57d5f2","type":"server-state-changed","z":"8fd93472.c11bf8","name":"Washer Stopwatch","server":"50b24aa1.6e06f4","entityidfilter":"input_boolean.washer_stopwatch","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"x":107.98009490966797,"y":869.2593612670898,"wires":[["8ec8fec3.3130e"]]},{"id":"aefa549.d70c3a8","type":"api-current-state","z":"8fd93472.c11bf8","name":"Current Power >3?","server":"50b24aa1.6e06f4","halt_if":"3","halt_if_type":"num","halt_if_compare":"gt","override_topic":false,"override_payload":false,"override_data":true,"entity_id":"sensor.aeotec_ss_1_power","state_type":"str","outputs":2,"x":481.8118095397949,"y":924.0276956558228,"wires":[["968f162c.33cb38"],[]]},{"id":"968f162c.33cb38","type":"delay","z":"8fd93472.c11bf8","name":"","pauseType":"delay","timeout":"1","timeoutUnits":"minutes","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":639.3488616943359,"y":922.6869640350342,"wires":[["f8067b8e.5187a8"]]},{"id":"8ec8fec3.3130e","type":"change","z":"8fd93472.c11bf8","name":"Change","rules":[{"t":"move","p":"payload","pt":"msg","to":"stopwatch","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":281.8811950683594,"y":860.7175121307373,"wires":[["f8067b8e.5187a8","4fc81ac6.0a7304","e4a25a92.8f9628"]]},{"id":"efc569cb.3eaa28","type":"template","z":"8fd93472.c11bf8","name":"Stopwatch Off","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{ \"domain\": \"input_boolean\",\n \"service\": \"turn_off\",\n \"data\": {\n \"entity_id\": \"input_boolean.washer_stopwatch\",\n }\n}","output":"str","x":1064.0668640136719,"y":945.1311922073364,"wires":[["f18c9794.f6b788"]]},{"id":"c4d0eb29.a90658","type":"template","z":"8fd93472.c11bf8","name":"Stopwatch On","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{ \"domain\": \"input_boolean\",\n \"service\": \"turn_on\",\n \"data\": {\n \"entity_id\": \"input_boolean.washer_stopwatch\",\n }\n}","output":"str","x":1065.721923828125,"y":824.5401611328125,"wires":[["f18c9794.f6b788"]]},{"id":"84b8317c.8afdf","type":"template","z":"8fd93472.c11bf8","name":"Persist Notification","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{ \"domain\": \"persistent_notification\",\n \"service\": \"create\",\n \"data\": {\n \"message\": \"Washer Cycle Failed\",\n \"title\": \"Washing Machine\"\n }\n}","output":"str","x":1077.2295265197754,"y":696.4123678207397,"wires":[["f18c9794.f6b788"]]},{"id":"2752f0cf.12a0c","type":"api-current-state","z":"8fd93472.c11bf8","name":"Current Power <1?","server":"50b24aa1.6e06f4","halt_if":"1","halt_if_type":"num","halt_if_compare":"lt","override_topic":false,"override_payload":false,"override_data":true,"entity_id":"sensor.aeotec_ss_1_power","state_type":"str","outputs":2,"x":480.3044662475586,"y":958.6975288391113,"wires":[["31413100.ca133"],[]]},{"id":"31413100.ca133","type":"delay","z":"8fd93472.c11bf8","name":"","pauseType":"delay","timeout":"30","timeoutUnits":"minutes","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":649.3489418029785,"y":958.8643951416016,"wires":[["e4a25a92.8f9628"]]},{"id":"e4a25a92.8f9628","type":"and-gate","z":"8fd93472.c11bf8","name":"Set Reset","rules":[{"t":"eq","v":"on","vt":"str","propertyType":"msg","property":"payload","topic":"switch.aeotec_ss_1_switch"},{"t":"lt","v":"1","vt":"str","propertyType":"msg","property":"power","topic":"sensor.aeotec_ss_1_power"},{"t":"eq","v":"on","vt":"str","propertyType":"msg","property":"stopwatch","topic":"input_boolean.washer_stopwatch"}],"outputTopic":"dishwasher_value","gateType":"and","emitOnlyIfTrue":true,"x":832.0770835876465,"y":930.0572280883789,"wires":[["dce9864b.7c08b8","efc569cb.3eaa28"]]},{"id":"50b24aa1.6e06f4","type":"server","z":"","name":"Home Assistant","legacy":false,"hassio":false,"rejectUnauthorizedCerts":false,"ha_boolean":"y|yes|true|on|home|open"}]
Original washing machine yaml automation:
# Washing Machine
- id: 'washer_idle'
alias: 'Washer Idle'
hide_entity: True
trigger:
- entity_id: sensor.aeotec_ss_1_power
platform: numeric_state
below: '3'
for:
minutes: 2
condition:
condition: and
conditions:
- condition: state
entity_id: switch.aeotec_ss_1_switch
state: 'on'
- condition: state
entity_id: group.family_info
state: 'home'
- condition: state
entity_id: input_boolean.washer_stopwatch
state: 'on'
action:
- service: input_select.select_option
data:
entity_id: input_select.laundry_status
option: Idle
- service: script.janet_speech_engine
data:
call_greeting: 1
CustomMessage: "Wash cycle complete, enjoy the clean clothes!"
- service: input_boolean.turn_off
entity_id: input_boolean.washer_stopwatch
- id: 'washer_running'
alias: 'Washer Running'
hide_entity: True
trigger:
- entity_id: sensor.aeotec_ss_1_power
platform: numeric_state
above: 10
condition:
condition: and
conditions:
- condition: state
entity_id: switch.aeotec_ss_1_switch
state: 'on'
- condition: state
entity_id: input_boolean.washer_stopwatch
state: 'off'
action:
- service: input_select.select_option
data:
entity_id: input_select.laundry_status
option: Cleaning
- service: input_boolean.turn_on
entity_id: input_boolean.washer_stopwatch
- id: 'washer_off'
alias: 'Washer and Aeotec Off'
hide_entity: True
trigger:
- entity_id: switch.aeotec_ss_1_switch
platform: state
to: 'off'
action:
- service: input_select.select_option
data:
entity_id: input_select.laundry_status
option: Power Off
- id: 'washer_failed'
alias: 'Washer has failed'
hide_entity: True
trigger:
- entity_id: sensor.aeotec_ss_1_current
platform: state
to: '0.0'
for:
minutes: 10
condition:
condition: and
conditions:
- condition: state
entity_id: switch.aeotec_ss_1_switch
state: 'on'
- condition: state
entity_id: input_select.laundry_status
state: 'Cleaning'
action:
- service: script.janet_speech_engine
data:
call_greeting: 1
CustomMessage: "The Laundry cycle failed."
- service: persistent_notification.create
data:
message: "Washer Cycle Failed"
title: "Washing Machine"
- id: 'washer_reset'
alias: 'Washer Reset'
hide_entity: True
trigger:
- entity_id: sensor.aeotec_ss_1_power
platform: numeric_state
below: '1'
for:
minutes: 30
condition:
condition: and
conditions:
- condition: state
entity_id: switch.aeotec_ss_1_switch
state: 'on'
- condition: state
entity_id: input_boolean.washer_stopwatch
state: 'on'
action:
- service: input_select.select_option
data:
entity_id: input_select.laundry_status
option: Idle
- service: input_boolean.turn_off
entity_id: input_boolean.washer_stopwatch