Humidity Flows

Hi Team. Hoping someone can help me work the next stage out.

So i am using a Polling node to get the humidity from a sensor i have in my living room. If the humidity is 60 or more then i have it turn on a switch that the dehumidifier is plugged in to. Then when the level drops to turn the same switch off. Maybe there is a better way of doing it?

However what i would like to do is add a couple more items in.

  1. If someone switches the heating on in that room to turn the plug off.
  2. If someone opens a window in that room to turn the plug off.

Of course if items 1 or 2 are on i dont want the plug to switch on because the humidity is 61. Its also like items 1 and 2 override the Humidity sensor until such time as they are closed.

[{"id":"0b0c63f92afc3106","type":"poll-state","z":"5943375b8a348fb6","g":"740698a942bca1de","name":"Kitchen Humidity","server":"dcff415f.fdc77","version":2,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"updateinterval":"5","updateIntervalType":"num","updateIntervalUnits":"minutes","outputinitially":false,"outputonchanged":false,"entity_id":"sensor.dining_room_humidity","state_type":"str","halt_if":"65","halt_if_type":"num","halt_if_compare":"gt","outputs":2,"x":120,"y":460,"wires":[["888dc4ab08783d6c"],["be8fd382b55221dd"]]},{"id":"888dc4ab08783d6c","type":"api-call-service","z":"5943375b8a348fb6","g":"740698a942bca1de","name":"Turn ON Dehumidifier","server":"dcff415f.fdc77","version":5,"debugenabled":false,"domain":"switch","service":"turn_on","areaId":[],"deviceId":[],"entityId":["switch.mqtt_plug_samsung_kitchen_dehumidifier"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":400,"y":440,"wires":[[]]},{"id":"be8fd382b55221dd","type":"api-call-service","z":"5943375b8a348fb6","g":"740698a942bca1de","name":"Turn OFF Dehumidifier","server":"dcff415f.fdc77","version":5,"debugenabled":false,"domain":"switch","service":"turn_off","areaId":[],"deviceId":[],"entityId":["switch.mqtt_plug_samsung_kitchen_dehumidifier"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":400,"y":500,"wires":[[]]},{"id":"dcff415f.fdc77","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"}]

Here’s is how I do it in my master bath

[{"id":"5d8e36403a43395d","type":"comment","z":"500bc11572283047","name":"Turn on Master Bath Exhaust fan if humidity above 57%-----------------------------------------","info":"","x":340,"y":2580,"wires":[]},{"id":"ad8ee4eed3457f37","type":"switch","z":"500bc11572283047","name":"","property":"payload","propertyType":"msg","rules":[{"t":"gte","v":"59","vt":"str"},{"t":"lt","v":"59","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":330,"y":2760,"wires":[["632bd17a4a0982bb","e314d15f26b89feb"],["7f17f79b88ac0288"]]},{"id":"a4e4c86b4c91ea0b","type":"delay","z":"500bc11572283047","name":"","pauseType":"delay","timeout":"5","timeoutUnits":"minutes","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":1160,"y":2840,"wires":[["afd589320f3a17f2"]]},{"id":"632bd17a4a0982bb","type":"change","z":"500bc11572283047","name":"reset","rules":[{"t":"set","p":"reset","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":510,"y":2760,"wires":[["98f1407f442fe8e0"]]},{"id":"f183aa9168d892ad","type":"api-call-service","z":"500bc11572283047","name":"Turn off exhaust fan","server":"26956a45.92d866","version":5,"debugenabled":false,"domain":"switch","service":"turn_off","areaId":[],"deviceId":[],"entityId":["switch.master_bath_exhaust_fan"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1540,"y":2840,"wires":[["3e40d3326a55d06f"]]},{"id":"9aaab36884013149","type":"api-call-service","z":"500bc11572283047","name":"Turn on exhaust fan","server":"26956a45.92d866","version":5,"debugenabled":false,"domain":"switch","service":"turn_on","areaId":[],"deviceId":[],"entityId":["switch.master_bath_exhaust_fan"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":760,"y":2700,"wires":[[]]},{"id":"afd589320f3a17f2","type":"api-current-state","z":"500bc11572283047","name":"Exhaust fan off?","server":"26956a45.92d866","version":3,"outputs":2,"halt_if":"off","halt_if_type":"str","halt_if_compare":"is","entity_id":"switch.master_bath_exhaust_fan","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":1340,"y":2840,"wires":[[],["f183aa9168d892ad"]]},{"id":"3e40d3326a55d06f","type":"delay","z":"500bc11572283047","name":"","pauseType":"delay","timeout":"1","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":1740,"y":2840,"wires":[["afd589320f3a17f2"]]},{"id":"0e8884cb0a1d7f15","type":"delay","z":"500bc11572283047","name":"","pauseType":"rate","timeout":"15","timeoutUnits":"minutes","rate":"1","nbRateUnits":"5","rateUnits":"minute","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":true,"allowrate":false,"outputs":1,"x":960,"y":2840,"wires":[["a4e4c86b4c91ea0b"]]},{"id":"e314d15f26b89feb","type":"api-current-state","z":"500bc11572283047","name":"Exhaust fan on?","server":"26956a45.92d866","version":3,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"switch.master_bath_exhaust_fan","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":540,"y":2700,"wires":[[],["9aaab36884013149"]]},{"id":"7f17f79b88ac0288","type":"api-current-state","z":"500bc11572283047","name":"Exhaust fan off?","server":"26956a45.92d866","version":3,"outputs":2,"halt_if":"off","halt_if_type":"str","halt_if_compare":"is","entity_id":"switch.master_bath_exhaust_fan","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":540,"y":2840,"wires":[[],["8fc002c8032bdc8e"]]},{"id":"8fc002c8032bdc8e","type":"api-current-state","z":"500bc11572283047","name":"humidity below 59?","server":"26956a45.92d866","version":3,"outputs":2,"halt_if":"59","halt_if_type":"num","halt_if_compare":"lt","entity_id":"sensor.humidity_master_bath","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":730,"y":2840,"wires":[["0e8884cb0a1d7f15"],[]]},{"id":"f1d622db3e106132","type":"server-state-changed","z":"500bc11572283047","name":"Master Bath Exhaust Fan","server":"26956a45.92d866","version":4,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"switch.master_bath_exhaust_fan","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"off","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"for":"0","forType":"num","forUnits":"minutes","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":150,"y":2620,"wires":[["57b2fd2288883edb"],[]]},{"id":"a5669cc17a344f6e","type":"api-current-state","z":"500bc11572283047","name":"humidity below 59?","server":"26956a45.92d866","version":3,"outputs":2,"halt_if":"59","halt_if_type":"num","halt_if_compare":"lt","entity_id":"sensor.humidity_master_bath","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":510,"y":2620,"wires":[[],["9aaab36884013149"]]},{"id":"57b2fd2288883edb","type":"delay","z":"500bc11572283047","name":"","pauseType":"delay","timeout":"3","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":340,"y":2620,"wires":[["a5669cc17a344f6e"]]},{"id":"217a21128f81051d","type":"poll-state","z":"500bc11572283047","name":"Master Bath Humidity","server":"26956a45.92d866","version":2,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"updateinterval":"60","updateIntervalType":"num","updateIntervalUnits":"seconds","outputinitially":false,"outputonchanged":false,"entity_id":"sensor.humidity_master_bath","state_type":"str","halt_if":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"x":140,"y":2760,"wires":[["ad8ee4eed3457f37"]]},{"id":"98f1407f442fe8e0","type":"junction","z":"500bc11572283047","x":900,"y":2760,"wires":[["a4e4c86b4c91ea0b","0e8884cb0a1d7f15"]]},{"id":"26956a45.92d866","type":"server","name":"Hass.io","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"}]

Thank you. I am taking a look at what you have done.

The issue i am looking at trying to fix is turning off the switch if the heating is turned on or a window is open.

Been playing around and this is what i have so far.

Unless there is a better way of doing this and as i am learning i will take any advice or suggestions. I need to work out how to block the Living Room Humidity from turning the switch on if Tado or the Window is open.

[{"id":"9b307b4d8ff609d8","type":"poll-state","z":"1ee1e62ad6342d62","name":"Living Room Humidity","server":"dcff415f.fdc77","version":2,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"updateinterval":"5","updateIntervalType":"num","updateIntervalUnits":"minutes","outputinitially":false,"outputonchanged":false,"entity_id":"sensor.living_room_humidity","state_type":"str","halt_if":"60","halt_if_type":"num","halt_if_compare":"gt","outputs":2,"x":140,"y":40,"wires":[["459e48062c3f469d"],["29d8e08a55f905fd"]]},{"id":"a333712d501fe45d","type":"server-state-changed","z":"1ee1e62ad6342d62","name":"Living Room Tado set to: Heat","server":"dcff415f.fdc77","version":4,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"climate.living_room","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"heat","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"for":"0","forType":"num","forUnits":"minutes","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":160,"y":100,"wires":[["29d8e08a55f905fd"],[]]},{"id":"57d766c80cf80b9e","type":"server-state-changed","z":"1ee1e62ad6342d62","name":"Living Room Window: Open","server":"dcff415f.fdc77","version":4,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"binary_sensor.mqtt_sensor_samsung_test_sensor_contact","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"on","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"for":"0","forType":"num","forUnits":"minutes","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":160,"y":160,"wires":[["29d8e08a55f905fd"],[]]},{"id":"459e48062c3f469d","type":"api-call-service","z":"1ee1e62ad6342d62","name":"Turn ON Dehumidifier","server":"dcff415f.fdc77","version":5,"debugenabled":false,"domain":"switch","service":"turn_on","areaId":[],"deviceId":[],"entityId":["switch.mqtt_plug_samsung_living_room_dehumidifier"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":440,"y":40,"wires":[[]]},{"id":"29d8e08a55f905fd","type":"api-call-service","z":"1ee1e62ad6342d62","name":"Turn OFF Dehumidifier","server":"dcff415f.fdc77","version":5,"debugenabled":false,"domain":"switch","service":"turn_off","areaId":[],"deviceId":[],"entityId":["switch.mqtt_plug_samsung_living_room_dehumidifier"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":440,"y":100,"wires":[[]]},{"id":"dcff415f.fdc77","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"}]

Have a look at the node red contrib boolean ultimate - it will let you set different boolean conditions to be true/false

Craig

I believe this one will serve you well

[{"id":"61bb0c70.578d84","type":"server-state-changed","z":"878e74c2.7f39c8","name":"Triggers","server":"9405c3fe.d0a6c","version":3,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"sensor.living_room_humidity, climate.living_room, binary_sensor.mqtt_sensor_samsung_test_sensor_contact","entityidfiltertype":"substring","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":true,"ignorePrevStateUnknown":true,"ignorePrevStateUnavailable":true,"ignoreCurrentStateUnknown":true,"ignoreCurrentStateUnavailable":true,"outputProperties":[],"x":220,"y":3340,"wires":[["4b1ad8f4.b20258"]]},{"id":"4b1ad8f4.b20258","type":"api-current-state","z":"878e74c2.7f39c8","name":"Living Room Tado: Heat ?","server":"9405c3fe.d0a6c","version":3,"outputs":2,"halt_if":"heat","halt_if_type":"str","halt_if_compare":"is","entity_id":"climate.living_room","state_type":"str","blockInputOverrides":true,"outputProperties":[],"for":0,"forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":470,"y":3340,"wires":[["7637f76.cbe4108"],["f8c6f65b.758268"]]},{"id":"f8c6f65b.758268","type":"api-current-state","z":"878e74c2.7f39c8","name":"Living Room Window: Open ?","server":"9405c3fe.d0a6c","version":3,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"binary_sensor.mqtt_sensor_samsung_test_sensor_contact","state_type":"str","blockInputOverrides":true,"outputProperties":[],"for":0,"forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":490,"y":3400,"wires":[["7637f76.cbe4108"],["ce76e710.c62ea8"]]},{"id":"9796a4ba.2ea138","type":"api-call-service","z":"878e74c2.7f39c8","name":"Turn OFF Dehumidifier","server":"dcff415f.fdc77","version":5,"debugenabled":false,"service":"turn_off","entityId":["switch.mqtt_plug_samsung_living_room_dehumidifier"],"data":"","dataType":"jsonata","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1060,"y":3340,"wires":[[]]},{"id":"7637f76.cbe4108","type":"link out","z":"878e74c2.7f39c8","name":"","links":["415fe9a4.139438"],"x":775,"y":3340,"wires":[]},{"id":"415fe9a4.139438","type":"link in","z":"878e74c2.7f39c8","name":"","links":["7637f76.cbe4108"],"x":915,"y":3340,"wires":[["9796a4ba.2ea138"]]},{"id":"ce76e710.c62ea8","type":"api-current-state","z":"878e74c2.7f39c8","name":"Get current humidity","server":"9405c3fe.d0a6c","version":3,"outputs":1,"halt_if":"","halt_if_type":"num","halt_if_compare":"is","entity_id":"sensor.living_room_humidity","state_type":"num","blockInputOverrides":true,"outputProperties":[{"property":"humidity","propertyType":"msg","value":"","valueType":"entityState"}],"for":0,"forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":460,"y":3480,"wires":[["df00b4d.8cd5048"]]},{"id":"df00b4d.8cd5048","type":"switch","z":"878e74c2.7f39c8","name":"<= 55% ?","property":"humidity","propertyType":"msg","rules":[{"t":"lte","v":"55","vt":"num"},{"t":"gte","v":"60","vt":"num"}],"checkall":"false","repair":false,"outputs":2,"x":660,"y":3480,"wires":[["7637f76.cbe4108"],["8afda595.e712b8"]]},{"id":"8afda595.e712b8","type":"api-call-service","z":"878e74c2.7f39c8","name":"Turn ON Dehumidifier","server":"dcff415f.fdc77","version":5,"debugenabled":false,"service":"turn_on","entityId":["switch.mqtt_plug_samsung_living_room_dehumidifier"],"data":"","dataType":"jsonata","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1060,"y":3480,"wires":[[]]},{"id":"9405c3fe.d0a6c","type":"server","name":"Home Assistant","version":2,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":false,"heartbeatInterval":30},{"id":"dcff415f.fdc77","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}]

With your last example, you weren’t blocking the humidifer from turning on. The best way I found to build a multiple triggers - one action flow is by doing this. Group your triggers and have them trigger with any state change, not only the states you are interested in. This works well the vast majority of the times. Then work the conditional tree. As you can see in the picture, the thermostat and windows states are checked before going into the humidity level. If any of those two conditions are true, flow stops there and doesn’t check the humidity, so it will turn off the humidifer regardless of the humidity level. On the other side, if thermostat is not heat and window is not on, then check the humidity level and act accordingly.

I set a 5% difference between turning on and turning off the humidifier, IMO I believe it’s better to set some range.

You could get away with a single trigger node. This will only send through the top output when humidity is above 60, term is not heat and window sensor is off. It will test the conditions every time any entity is updated.

[{"id":"e504b390aab4636f","type":"trigger-state","z":"f80b6c338afd5483","name":"","server":"6b1110b5.183a4","version":2,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityid":["sensor.living_room_humidity","climate.living_room","binary_sensor.mqtt_sensor_samsung_test_sensor_contact"],"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.mqtt_sensor_samsung_test_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":710,"y":4020,"wires":[["88b876fca11e4fca"],["8788a0b2f2fed6da"]]},{"id":"88b876fca11e4fca","type":"debug","z":"f80b6c338afd5483","name":"turn on","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1270,"y":3980,"wires":[]},{"id":"8788a0b2f2fed6da","type":"debug","z":"f80b6c338afd5483","name":"turn off","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1280,"y":4060,"wires":[]},{"id":"6b1110b5.183a4","type":"server","name":"Home Assistant","version":4,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":false,"heartbeat":false,"heartbeatInterval":"30","areaSelector":"friendlyName","deviceSelector":"friendlyName","entitySelector":"friendlyName","statusSeparator":"at: ","statusYear":"hidden","statusMonth":"short","statusDay":"numeric","statusHourCycle":"h23","statusTimeFormat":"h:m"}]

Thank you both.

I am reviewing what you both provided. So good to see different ways to achieve the same thing. Thank you

I have had a play with both flows and i think both have the same issue. The trigger node is not picking up that the sensor.dining_room_humidity value has changed.

Any ideas?

because that sensor is not present in the trigger node substring of entities. Add it.

If neither flow works then it may need to be polled, does the sensor not update on it’s own? Put the hum sensor in an event state connected to a debug.

Uncheck the if current state equals box in the bottom of the event state. Does the sensor update and output to the debug after several minutes?

Yeah nothing is returned in the Debug.

The only thing that seems to return is when its polled. Thats what i am using in my current flow for this. Not sure how i could add the poling in to yours or obaldius flows if thats what it needs.

Edit:

Actually it does work. I got side tracked on something else and i heard the device switch on. The update interval just seems long. Polling it would be better if there is away to integrate that?

I didn’t add the sensor.dining_room_humidity in my flow because it wasn’t present in your flow either. In your flow the only present humidity sensor is sensor.living_room_humidity.

I very much doubt your sensor needs to be polled, it’s probably polled elsewhere by HA itself, but using the polling node in NR does not update the sensor’s value.

Here goes my first flow fixed, replacing sensor.living_room_humidity with sensor.dining_room_humidity. You can find these changes in the entity ID field of both the Triggers and Get current humidity node.

[{"id":"61bb0c70.578d84","type":"server-state-changed","z":"878e74c2.7f39c8","name":"Triggers","server":"9405c3fe.d0a6c","version":3,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"sensor.dining_room_humidity, climate.living_room, binary_sensor.mqtt_sensor_samsung_test_sensor_contact","entityidfiltertype":"substring","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":true,"ignorePrevStateUnknown":true,"ignorePrevStateUnavailable":true,"ignoreCurrentStateUnknown":true,"ignoreCurrentStateUnavailable":true,"outputProperties":[],"x":220,"y":3340,"wires":[["4b1ad8f4.b20258"]]},{"id":"4b1ad8f4.b20258","type":"api-current-state","z":"878e74c2.7f39c8","name":"Living Room Tado: Heat ?","server":"9405c3fe.d0a6c","version":3,"outputs":2,"halt_if":"heat","halt_if_type":"str","halt_if_compare":"is","entity_id":"climate.living_room","state_type":"str","blockInputOverrides":true,"outputProperties":[],"for":0,"forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":470,"y":3340,"wires":[["7637f76.cbe4108"],["f8c6f65b.758268"]]},{"id":"f8c6f65b.758268","type":"api-current-state","z":"878e74c2.7f39c8","name":"Living Room Window: Open ?","server":"9405c3fe.d0a6c","version":3,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"binary_sensor.mqtt_sensor_samsung_test_sensor_contact","state_type":"str","blockInputOverrides":true,"outputProperties":[],"for":0,"forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":490,"y":3400,"wires":[["7637f76.cbe4108"],["ce76e710.c62ea8"]]},{"id":"9796a4ba.2ea138","type":"api-call-service","z":"878e74c2.7f39c8","name":"Turn OFF Dehumidifier","server":"dcff415f.fdc77","version":5,"debugenabled":false,"service":"turn_off","entityId":["switch.mqtt_plug_samsung_living_room_dehumidifier"],"data":"","dataType":"jsonata","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1060,"y":3340,"wires":[[]]},{"id":"7637f76.cbe4108","type":"link out","z":"878e74c2.7f39c8","name":"","links":["415fe9a4.139438"],"x":775,"y":3340,"wires":[]},{"id":"415fe9a4.139438","type":"link in","z":"878e74c2.7f39c8","name":"","links":["7637f76.cbe4108"],"x":915,"y":3340,"wires":[["9796a4ba.2ea138"]]},{"id":"ce76e710.c62ea8","type":"api-current-state","z":"878e74c2.7f39c8","name":"Get current humidity","server":"9405c3fe.d0a6c","version":3,"outputs":1,"halt_if":"","halt_if_type":"num","halt_if_compare":"is","entity_id":"sensor.dining_room_humidity","state_type":"num","blockInputOverrides":true,"outputProperties":[{"property":"humidity","propertyType":"msg","value":"","valueType":"entityState"}],"for":0,"forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":460,"y":3480,"wires":[["df00b4d.8cd5048"]]},{"id":"df00b4d.8cd5048","type":"switch","z":"878e74c2.7f39c8","name":"<= 55% ?","property":"humidity","propertyType":"msg","rules":[{"t":"lte","v":"55","vt":"num"},{"t":"gte","v":"60","vt":"num"}],"checkall":"false","repair":false,"outputs":2,"x":660,"y":3480,"wires":[["7637f76.cbe4108"],["8afda595.e712b8"]]},{"id":"8afda595.e712b8","type":"api-call-service","z":"878e74c2.7f39c8","name":"Turn ON Dehumidifier","server":"dcff415f.fdc77","version":5,"debugenabled":false,"service":"turn_on","entityId":["switch.mqtt_plug_samsung_living_room_dehumidifier"],"data":"","dataType":"jsonata","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1060,"y":3480,"wires":[[]]},{"id":"9405c3fe.d0a6c","type":"server","name":"Home Assistant","version":2,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":false,"heartbeatInterval":30},{"id":"dcff415f.fdc77","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}]

Easiest way to test whether it works, go to Developer tools/states, type in your sensor, some random value and click set state. Then check whether your flow has changed.

Mikefila’s flow is the same as this one. His logic is if three and conditions meet, then turn on, if any condition isn’t true, then turn off, which is what your flow is about. With his you win in compactness, with the other you win in readability and debug value… It’s really up to you.

If, for some strange reason, that doesn’t work, this is the flow with a polling node. It’s the worst option by far.

[{"id":"61bb0c70.578d84","type":"server-state-changed","z":"878e74c2.7f39c8","name":"Triggers","server":"9405c3fe.d0a6c","version":3,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"climate.living_room, binary_sensor.mqtt_sensor_samsung_test_sensor_contact","entityidfiltertype":"substring","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":true,"ignorePrevStateUnknown":true,"ignorePrevStateUnavailable":true,"ignoreCurrentStateUnknown":true,"ignoreCurrentStateUnavailable":true,"outputProperties":[],"x":220,"y":3360,"wires":[["4b1ad8f4.b20258"]]},{"id":"4b1ad8f4.b20258","type":"api-current-state","z":"878e74c2.7f39c8","name":"Living Room Tado: Heat ?","server":"9405c3fe.d0a6c","version":3,"outputs":2,"halt_if":"heat","halt_if_type":"str","halt_if_compare":"is","entity_id":"climate.living_room","state_type":"str","blockInputOverrides":true,"outputProperties":[],"for":0,"forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":470,"y":3340,"wires":[["7637f76.cbe4108"],["f8c6f65b.758268"]]},{"id":"f8c6f65b.758268","type":"api-current-state","z":"878e74c2.7f39c8","name":"Living Room Window: Open ?","server":"9405c3fe.d0a6c","version":3,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"binary_sensor.mqtt_sensor_samsung_test_sensor_contact","state_type":"str","blockInputOverrides":true,"outputProperties":[],"for":0,"forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":490,"y":3400,"wires":[["7637f76.cbe4108"],["ce76e710.c62ea8"]]},{"id":"9796a4ba.2ea138","type":"api-call-service","z":"878e74c2.7f39c8","name":"Turn OFF Dehumidifier","server":"dcff415f.fdc77","version":5,"debugenabled":false,"service":"turn_off","entityId":["switch.mqtt_plug_samsung_living_room_dehumidifier"],"data":"","dataType":"jsonata","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1060,"y":3340,"wires":[[]]},{"id":"7637f76.cbe4108","type":"link out","z":"878e74c2.7f39c8","name":"","links":["415fe9a4.139438"],"x":775,"y":3340,"wires":[]},{"id":"415fe9a4.139438","type":"link in","z":"878e74c2.7f39c8","name":"","links":["7637f76.cbe4108"],"x":915,"y":3340,"wires":[["9796a4ba.2ea138"]]},{"id":"ce76e710.c62ea8","type":"api-current-state","z":"878e74c2.7f39c8","name":"Get current humidity","server":"9405c3fe.d0a6c","version":3,"outputs":1,"halt_if":"","halt_if_type":"num","halt_if_compare":"is","entity_id":"sensor.dining_room_humidity","state_type":"num","blockInputOverrides":true,"outputProperties":[{"property":"humidity","propertyType":"msg","value":"","valueType":"entityState"}],"for":0,"forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":460,"y":3480,"wires":[["df00b4d.8cd5048"]]},{"id":"df00b4d.8cd5048","type":"switch","z":"878e74c2.7f39c8","name":"<= 55% ?","property":"humidity","propertyType":"msg","rules":[{"t":"lte","v":"55","vt":"num"},{"t":"gte","v":"60","vt":"num"}],"checkall":"false","repair":false,"outputs":2,"x":660,"y":3480,"wires":[["7637f76.cbe4108"],["8afda595.e712b8"]]},{"id":"8afda595.e712b8","type":"api-call-service","z":"878e74c2.7f39c8","name":"Turn ON Dehumidifier","server":"dcff415f.fdc77","version":5,"debugenabled":false,"service":"turn_on","entityId":["switch.mqtt_plug_samsung_living_room_dehumidifier"],"data":"","dataType":"jsonata","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1060,"y":3480,"wires":[[]]},{"id":"7db63e86.6a4b9","type":"poll-state","z":"878e74c2.7f39c8","name":"Poll 5 min","server":"9405c3fe.d0a6c","version":2,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"updateinterval":"5","updateIntervalType":"num","updateIntervalUnits":"minutes","outputinitially":false,"outputonchanged":false,"entity_id":"sensor.dining_room_humidity","state_type":"str","halt_if":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"x":220,"y":3320,"wires":[["4b1ad8f4.b20258"]]},{"id":"9405c3fe.d0a6c","type":"server","name":"Home Assistant","version":2,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":false,"heartbeatInterval":30},{"id":"dcff415f.fdc77","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}]

The general structure of any of my flows is

Just in case you want to make further adjustments…

Thank you for taking the time to reply with that detailed info. I am slowly learning so this is all amazing help and info for me. After playing around i think i am settled on Mikefila’s setup. It less busy on the screen.

So in its basic form it is switching the dehumidifier plug on and off. Maybe not as quickly as i would like but it is working which is the main thing. I have adapted it a little further so complete the flow and just looking for confirmation what i have done is correct.

So as you can see i have added the following:

  1. current state to check if the Dehumidifier plug is running at 0 watts.
  2. If it is 0 then delay sending 1 message per 24 hours.
  3. Send message to my iOS device.

The questions i have

  1. How can i only send a message if the dehumidifier has been at 0 Watts for 20 minutes or more?
  2. Is the limit 1 message in a 24 hour period correct?

After that i think this flow is pretty set and perfect for what i need.

[{"id":"ab79c6313501f89f","type":"trigger-state","z":"5943375b8a348fb6","name":"Sensors","server":"6b1110b5.183a4","version":2,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityid":["climate.living_room","sensor.living_room_humidity","binary_sensor.mqtt_sensor_samsung_test_sensor_contact"],"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.mqtt_sensor_samsung_test_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":1060,"wires":[["23d0c1d73e40b7e6"],["9655a4e66ae57674"]]},{"id":"23d0c1d73e40b7e6","type":"api-call-service","z":"5943375b8a348fb6","name":"Turn ON Dehumidifier","server":"dcff415f.fdc77","version":5,"debugenabled":false,"domain":"switch","service":"turn_on","areaId":[],"deviceId":[],"entityId":["switch.mqtt_plug_tuya_living_room_dehumidifier"],"data":"","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":280,"y":1000,"wires":[["28432c86b3eb9bdc"]]},{"id":"9655a4e66ae57674","type":"api-call-service","z":"5943375b8a348fb6","name":"Turn OFF Dehumidifier","server":"dcff415f.fdc77","version":5,"debugenabled":false,"domain":"switch","service":"turn_off","areaId":[],"deviceId":[],"entityId":["switch.mqtt_plug_tuya_living_room_dehumidifier"],"data":"","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":280,"y":1140,"wires":[[]]},{"id":"28432c86b3eb9bdc","type":"api-current-state","z":"5943375b8a348fb6","name":"Dehumidifier Plug 0 Watts","server":"dcff415f.fdc77","version":3,"outputs":2,"halt_if":"1","halt_if_type":"num","halt_if_compare":"lt","entity_id":"sensor.mqtt_plug_tuya_living_room_dehumidifier_power","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":"15","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":550,"y":1000,"wires":[["f1bfec129ae9eda7"],[]]},{"id":"cf60790189310f50","type":"api-call-service","z":"5943375b8a348fb6","name":"","server":"dcff415f.fdc77","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":730,"y":1060,"wires":[[]]},{"id":"f1bfec129ae9eda7","type":"delay","z":"5943375b8a348fb6","name":"","pauseType":"rate","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"24","rateUnits":"hour","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":true,"allowrate":false,"outputs":1,"x":780,"y":1000,"wires":[["cf60790189310f50"]]},{"id":"6b1110b5.183a4","type":"server","name":"Home Assistant","version":4,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":false,"heartbeat":false,"heartbeatInterval":"30","areaSelector":"friendlyName","deviceSelector":"friendlyName","entitySelector":"friendlyName","statusSeparator":"at: ","statusYear":"hidden","statusMonth":"short","statusDay":"numeric","statusHourCycle":"h23","statusTimeFormat":"h:m"},{"id":"dcff415f.fdc77","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"}]

You get, I think, 500 messages/day with the companion app. If you only want 1 message a day then add the rate limiter. You would need to use a wait node. It resets itself when the hum is off. add the entity to the wait node i did not enter it.

[{"id":"ab79c6313501f89f","type":"trigger-state","z":"f80b6c338afd5483","name":"Sensors","server":"","version":2,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityid":["climate.living_room","sensor.living_room_humidity","binary_sensor.mqtt_sensor_samsung_test_sensor_contact"],"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.mqtt_sensor_samsung_test_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":500,"y":4120,"wires":[["23d0c1d73e40b7e6"],["9655a4e66ae57674","eda9195a22c9b64e"]]},{"id":"23d0c1d73e40b7e6","type":"api-call-service","z":"f80b6c338afd5483","name":"Turn ON Dehumidifier","server":"","version":5,"debugenabled":false,"domain":"switch","service":"turn_on","areaId":[],"deviceId":[],"entityId":["switch.mqtt_plug_tuya_living_room_dehumidifier"],"data":"","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":720,"y":4060,"wires":[["4f63a8d77dd1627a"]]},{"id":"9655a4e66ae57674","type":"api-call-service","z":"f80b6c338afd5483","name":"Turn OFF Dehumidifier","server":"","version":5,"debugenabled":false,"domain":"switch","service":"turn_off","areaId":[],"deviceId":[],"entityId":["switch.mqtt_plug_tuya_living_room_dehumidifier"],"data":"","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":680,"y":4200,"wires":[[]]},{"id":"cf60790189310f50","type":"api-call-service","z":"f80b6c338afd5483","name":"","server":"","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":1210,"y":4140,"wires":[[]]},{"id":"4f63a8d77dd1627a","type":"ha-wait-until","z":"f80b6c338afd5483","name":"","server":"6b1110b5.183a4","version":1,"outputs":2,"entityId":"device_tracker.unifi_b8_27_eb_cb_22_f5_default","entityIdFilterType":"exact","property":"","comparator":"lt","value":"1","valueType":"num","timeout":"20","timeoutType":"num","timeoutUnits":"minutes","entityLocation":"data","entityLocationType":"none","checkCurrentState":true,"blockInputOverrides":true,"x":920,"y":4140,"wires":[["cf60790189310f50"],[]]},{"id":"eda9195a22c9b64e","type":"change","z":"f80b6c338afd5483","name":"","rules":[{"t":"delete","p":"payload","pt":"msg"},{"t":"set","p":"reset","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":700,"y":4140,"wires":[["4f63a8d77dd1627a"]]},{"id":"6b1110b5.183a4","type":"server","name":"Home Assistant","version":4,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":false,"heartbeat":false,"heartbeatInterval":"30","areaSelector":"friendlyName","deviceSelector":"friendlyName","entitySelector":"friendlyName","statusSeparator":"at: ","statusYear":"hidden","statusMonth":"short","statusDay":"numeric","statusHourCycle":"h23","statusTimeFormat":"h:m"}]

Thank you mate. I am just giving it all a go now. When the device switches on or off i see this error on the wait until node.

“property” is not allowed to be empty

[{"id":"c34c724996cb4ca8","type":"trigger-state","z":"5943375b8a348fb6","name":"Sensors","server":"dcff415f.fdc77","version":2,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityid":["climate.living_room","sensor.living_room_humidity","binary_sensor.mqtt_sensor_samsung_test_sensor_contact"],"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.mqtt_sensor_samsung_test_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":1060,"wires":[["d2122526c70815a4"],["657b64a9e2e1bbf5","d502eb6a44366710"]]},{"id":"657b64a9e2e1bbf5","type":"api-call-service","z":"5943375b8a348fb6","name":"Turn OFF Dehumidifier","server":"dcff415f.fdc77","version":5,"debugenabled":false,"domain":"switch","service":"turn_off","areaId":[],"deviceId":[],"entityId":["switch.mqtt_plug_tuya_living_room_dehumidifier"],"data":"","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":300,"y":1140,"wires":[[]]},{"id":"4ae8cb42a6fa698b","type":"api-call-service","z":"5943375b8a348fb6","name":"","server":"dcff415f.fdc77","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":750,"y":1060,"wires":[[]]},{"id":"60d78f5ef25b2bb5","type":"ha-wait-until","z":"5943375b8a348fb6","name":"","server":"6b1110b5.183a4","version":1,"outputs":2,"entityId":"sensor.mqtt_plug_tuya_living_room_dehumidifier_power","entityIdFilterType":"exact","property":"","comparator":"lt","value":"1","valueType":"num","timeout":"20","timeoutType":"num","timeoutUnits":"minutes","entityLocation":"data","entityLocationType":"none","checkCurrentState":true,"blockInputOverrides":true,"x":520,"y":1060,"wires":[["4ae8cb42a6fa698b"],[]]},{"id":"d502eb6a44366710","type":"change","z":"5943375b8a348fb6","name":"","rules":[{"t":"delete","p":"payload","pt":"msg"},{"t":"set","p":"reset","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":280,"y":1060,"wires":[["60d78f5ef25b2bb5"]]},{"id":"d2122526c70815a4","type":"api-call-service","z":"5943375b8a348fb6","name":"Turn ON Dehumidifier","server":"dcff415f.fdc77","version":5,"debugenabled":false,"domain":"switch","service":"turn_on","areaId":[],"deviceId":[],"entityId":["switch.mqtt_plug_tuya_living_room_dehumidifier"],"data":"","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":300,"y":1000,"wires":[["60d78f5ef25b2bb5"]]},{"id":"dcff415f.fdc77","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"},{"id":"6b1110b5.183a4","type":"server","name":"Home Assistant","version":4,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":false,"heartbeat":false,"heartbeatInterval":"30","areaSelector":"friendlyName","deviceSelector":"friendlyName","entitySelector":"friendlyName","statusSeparator":"at: ","statusYear":"hidden","statusMonth":"short","statusDay":"numeric","statusHourCycle":"h23","statusTimeFormat":"h:m"}]

Edit:

I set the property to last_updated not sure if that was correct or not?

The wait until node in the flow I posted does not have the entity set, you need to set it.

Hi mate. Apologies if i am missing something.

I had set the entity after i imported code for the flow. However , unless there is something in the Wait until then i get that error. I had put in last_updated which i was not 100% sure if that was correct?


p

The property would be state

Thank you mate. I received my first alert that the humidifier was full.

As always i cant thank you enough for your patience and your help in getting this working. Learning so much and you and @obaldius have been so so helpful. Thank you!

1 Like