Humidity Flows

Hi.

So been using this for a good few days now. The flow is sending me a message when the Watts are 0 but rather than sending me just a single message once a day its sending me a message every 20 minutes. Which if we are not home its not going to get sorted. Is there anything further that can be done?

[{"id":"547cc4adbc129efc","type":"comment","z":"525ecfa9d38e9ee6","g":"55f134209fe2da51","name":"Living Room","info":"","x":110,"y":60,"wires":[]},{"id":"82e8970d7b31278b","type":"trigger-state","z":"525ecfa9d38e9ee6","g":"55f134209fe2da51","name":"Sensors","server":"7742f894.e9abc8","version":2,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityid":["climate.living_room","sensor.living_room_humidity"],"entityidfiltertype":"list","debugenabled":false,"constraints":[{"targetType":"entity_id","targetValue":"sensor.living_room_humidity","propertyType":"current_state","propertyValue":"new_state.state","comparatorType":">","comparatorValueDatatype":"num","comparatorValue":"60"},{"targetType":"entity_id","targetValue":"climate.living_room","propertyType":"current_state","propertyValue":"new_state.state","comparatorType":"is_not","comparatorValueDatatype":"str","comparatorValue":"heat"}],"inputs":0,"outputs":2,"customoutputs":[],"outputinitially":false,"state_type":"str","enableInput":false,"x":100,"y":100,"wires":[["ccdd70e5428c7b45"],["6f8775d8fe2919f0"]]},{"id":"ccdd70e5428c7b45","type":"api-call-service","z":"525ecfa9d38e9ee6","g":"55f134209fe2da51","name":"Turn Dehumidifier: ON","server":"7742f894.e9abc8","version":5,"debugenabled":false,"domain":"switch","service":"turn_on","areaId":[],"deviceId":[],"entityId":["switch.living_room_dehumidifier_plug"],"data":"","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":320,"y":60,"wires":[["95a644aaf0cd86f1"]]},{"id":"a7f38f62865f0dbd","type":"change","z":"525ecfa9d38e9ee6","g":"55f134209fe2da51","name":"","rules":[{"t":"delete","p":"payload","pt":"msg"},{"t":"set","p":"reset","pt":"msg","to":"true","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":300,"y":120,"wires":[["95a644aaf0cd86f1"]]},{"id":"7763451d678bbb11","type":"api-call-service","z":"525ecfa9d38e9ee6","g":"55f134209fe2da51","name":"Turn Dehumidifier: OFF","server":"7742f894.e9abc8","version":5,"debugenabled":false,"domain":"switch","service":"turn_off","areaId":[],"deviceId":[],"entityId":["switch.living_room_dehumidifier_plug"],"data":"","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":330,"y":180,"wires":[[]]},{"id":"95a644aaf0cd86f1","type":"ha-wait-until","z":"525ecfa9d38e9ee6","g":"55f134209fe2da51","name":"","server":"7742f894.e9abc8","version":1,"outputs":2,"entityId":"sensor.living_room_dehumidifier_plug_power","entityIdFilterType":"exact","property":"state","comparator":"lt","value":"1","valueType":"num","timeout":"20","timeoutType":"num","timeoutUnits":"minutes","entityLocation":"data","entityLocationType":"none","checkCurrentState":true,"blockInputOverrides":true,"x":520,"y":120,"wires":[["ba6c5b94c6d6e165","e1a634a7f2dff3d2"],[]]},{"id":"ba6c5b94c6d6e165","type":"api-call-service","z":"525ecfa9d38e9ee6","g":"55f134209fe2da51","name":"Notify: Craig iPhone","server":"7742f894.e9abc8","version":5,"debugenabled":false,"domain":"notify","service":"mobile_app_craig_iphone","areaId":[],"deviceId":[],"entityId":[],"data":"{\"title\":\"Living Room Dehumidifier\",\"message\":\"The Dehumidifier is full. Please empty\"}","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":720,"y":80,"wires":[[]]},{"id":"e1a634a7f2dff3d2","type":"api-call-service","z":"525ecfa9d38e9ee6","g":"55f134209fe2da51","name":"Notify: Lizzie iPhone","server":"7742f894.e9abc8","version":5,"debugenabled":false,"domain":"notify","service":"mobile_app_lizzie_iphone","areaId":[],"deviceId":[],"entityId":[],"data":"{\"title\":\"Living Room Dehumidifier\",\"message\":\"The Dehumidifier is full. Please empty\"}","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":720,"y":160,"wires":[[]]},{"id":"7742f894.e9abc8","type":"server","name":"Home Assistant","version":4,"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"}]

Hi.

So this flow is not quite right. I am just a little unsure how fix it. The issue with it are:

  1. Opening a window sensor sometimes causes the flow to send an alert saying the dehumidifier is full when its not
  2. The flow will send notifications to say the flow is full when its not at random times
  3. If the sensor opens or if the heating comes on the dehumidifier turns off. However 20 mins later the dehumidifier turns back on. Its almost like its not checking that either a sensor is open or the heating is still on.

Can anyone help to make this flow better?

[{"id":"547cc4adbc129efc","type":"comment","z":"525ecfa9d38e9ee6","g":"55f134209fe2da51","name":"Living Room","info":"","x":110,"y":60,"wires":[]},{"id":"82e8970d7b31278b","type":"trigger-state","z":"525ecfa9d38e9ee6","g":"55f134209fe2da51","name":"Sensors","server":"7742f894.e9abc8","version":2,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityid":["climate.living_room","binary_sensor.living_room_window_sensor_contact","sensor.living_room_humidity"],"entityidfiltertype":"list","debugenabled":false,"constraints":[{"targetType":"entity_id","targetValue":"sensor.living_room_humidity","propertyType":"current_state","propertyValue":"new_state.state","comparatorType":">","comparatorValueDatatype":"num","comparatorValue":"60"},{"targetType":"entity_id","targetValue":"climate.living_room","propertyType":"current_state","propertyValue":"new_state.state","comparatorType":"is_not","comparatorValueDatatype":"str","comparatorValue":"heat"},{"targetType":"entity_id","targetValue":"binary_sensor.living_room_window_sensor_contact","propertyType":"current_state","propertyValue":"new_state.state","comparatorType":"is","comparatorValueDatatype":"str","comparatorValue":"off"}],"inputs":0,"outputs":2,"customoutputs":[],"outputinitially":false,"state_type":"str","enableInput":false,"x":100,"y":100,"wires":[["ccdd70e5428c7b45"],["a7f38f62865f0dbd","8750ae77b506216f"]]},{"id":"ccdd70e5428c7b45","type":"api-call-service","z":"525ecfa9d38e9ee6","g":"55f134209fe2da51","name":"Turn Dehumidifier: ON","server":"7742f894.e9abc8","version":5,"debugenabled":false,"domain":"switch","service":"turn_on","areaId":[],"deviceId":[],"entityId":["switch.living_room_dehumidifier_plug"],"data":"","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":320,"y":60,"wires":[["95a644aaf0cd86f1"]]},{"id":"a7f38f62865f0dbd","type":"change","z":"525ecfa9d38e9ee6","g":"55f134209fe2da51","name":"","rules":[{"t":"delete","p":"payload","pt":"msg"},{"t":"set","p":"reset","pt":"msg","to":"true","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":300,"y":120,"wires":[["95a644aaf0cd86f1"]]},{"id":"8750ae77b506216f","type":"api-call-service","z":"525ecfa9d38e9ee6","g":"55f134209fe2da51","name":"Turn Dehumidifier: OFF","server":"7742f894.e9abc8","version":5,"debugenabled":false,"domain":"switch","service":"turn_off","areaId":[],"deviceId":[],"entityId":["switch.living_room_dehumidifier_plug"],"data":"","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":330,"y":180,"wires":[[]]},{"id":"95a644aaf0cd86f1","type":"ha-wait-until","z":"525ecfa9d38e9ee6","g":"55f134209fe2da51","name":"","server":"7742f894.e9abc8","version":1,"outputs":2,"entityId":"sensor.living_room_dehumidifier_plug_power","entityIdFilterType":"exact","property":"state","comparator":"lt","value":"2","valueType":"num","timeout":"20","timeoutType":"num","timeoutUnits":"minutes","entityLocation":"data","entityLocationType":"none","checkCurrentState":true,"blockInputOverrides":false,"x":560,"y":120,"wires":[["097786bc2912c74b"],[]]},{"id":"097786bc2912c74b","type":"delay","z":"525ecfa9d38e9ee6","g":"55f134209fe2da51","name":"","pauseType":"rate","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"6","rateUnits":"hour","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":true,"allowrate":false,"outputs":1,"x":760,"y":120,"wires":[["ba6c5b94c6d6e165","d5b0c1a3591f8133"]]},{"id":"ba6c5b94c6d6e165","type":"api-call-service","z":"525ecfa9d38e9ee6","g":"55f134209fe2da51","name":"Notify: Craig iPhone","server":"7742f894.e9abc8","version":5,"debugenabled":false,"domain":"notify","service":"mobile_app_craig_iphone","areaId":[],"deviceId":[],"entityId":[],"data":"{\"title\":\"Living Room Dehumidifier\",\"message\":\"The Dehumidifier is full. Please empty\"}","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":860,"y":60,"wires":[[]]},{"id":"7742f894.e9abc8","type":"server","name":"Home Assistant","version":4,"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"}]