Hey guys,
I’m really new to node red and Im trying to figure out how to make this work.
So if the power consumption is higher then 100 for more then 15m, then drops below 100. send a notification though alexa media centre, and then send it again every 15m until the laundry door is open.
It sounds easy enough HAHA, I’m trying to find something similar, but I just cant find anything.
Any help would be great
[{"id":"f869758f.151ee8","type":"server-state-changed","z":"854e1af.ce97fe8","name":"State is > 100 for 15m","server":"d272ac3c.e0735","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"switch.washing_machine","entityidfiltertype":"substring","outputinitially":false,"state_type":"str","haltifstate":"new_state.attributes.current > 100","halt_if_type":"jsonata","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"for":"15","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"x":100,"y":660,"wires":[["9cbf9950.a5d668"],[]]},{"id":"9cbf9950.a5d668","type":"ha-wait-until","z":"854e1af.ce97fe8","name":"Wait till < 100 for 30s","server":"d272ac3c.e0735","outputs":2,"entityId":"switch.washing_machine","entityIdFilterType":"exact","property":"new_state.attributes.current","comparator":"lt","value":"100","valueType":"num","timeout":"30","timeoutType":"num","timeoutUnits":"seconds","entityLocation":"","entityLocationType":"none","checkCurrentState":true,"blockInputOverrides":true,"x":340,"y":660,"wires":[["d11cfebc.694cf"],[]]},{"id":"d11cfebc.694cf","type":"api-call-service","z":"854e1af.ce97fe8","name":"📢 Alexa","server":"d272ac3c.e0735","version":1,"debugenabled":false,"service_domain":"notify","service":"alexa_media","entityId":"media_player.bedroom_echo_show, media_player.kitchen, media_player.bathroom","data":"{\"message\":\"Please take the washing out?\",\"data\":{\"type\":\"announce\"}}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":540,"y":660,"wires":[["9d7a37c5.019ee8"]]},{"id":"d1a338d3.1c84d8","type":"api-call-service","z":"854e1af.ce97fe8","name":"Washing still in machine","server":"cc436e5e.bbf7e","version":1,"debugenabled":false,"service_domain":"notify","service":"alexa_media_all_speakers","entityId":"media_player.bedroom_echo_show, media_player.kitchen, media_player.bathroom","data":"{\"message\":\"Washing has been in the washing machine for {{minutes}} minutes\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1010,"y":700,"wires":[["56f6d599.93a1bc"]]},{"id":"56f6d599.93a1bc","type":"ha-wait-until","z":"854e1af.ce97fe8","name":"loop timer","server":"cc436e5e.bbf7e","outputs":2,"entityId":"binary_sensor.laundry_door_sensor_contact","entityIdFilterType":"exact","property":"state","comparator":"is","value":"off","valueType":"str","timeout":"15","timeoutType":"num","timeoutUnits":"minutes","entityLocation":"data","entityLocationType":"msg","checkCurrentState":true,"blockInputOverrides":true,"x":800,"y":620,"wires":[["29c3515e.043bfe"],["9d7a37c5.019ee8"]]},{"id":"9d7a37c5.019ee8","type":"change","z":"854e1af.ce97fe8","name":"","rules":[{"t":"set","p":"minutes","pt":"msg","to":"$round(data.timeSinceChangedMs / 60000,0)","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":740,"y":700,"wires":[["d1a338d3.1c84d8"]]},{"id":"29c3515e.043bfe","type":"api-call-service","z":"854e1af.ce97fe8","name":"Washing has been taken out","server":"cc436e5e.bbf7e","version":1,"debugenabled":false,"service_domain":"notify","service":"alexa_media","entityId":"media_player.bedroom_echo_show, media_player.kitchen, media_player.bathroom","data":"{\"message\":\"Washing has been taken out\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1080,"y":600,"wires":[[]]},{"id":"d272ac3c.e0735","type":"server","name":"Home Assistant","addon":true},{"id":"cc436e5e.bbf7e","type":"server","name":"Home Assistant","legacy":false,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":false}]
I think I might have it, would appreciate any Node Red gurus having a look?