witam w nodered ustawiłem aby wentylator włączał się o określonych godzinach . Jednak chciałbym dodać czujnik wilgotności . zamysł jest taki aby wentylator włączył się kiedy wilgotność będzie równa i większa niż 60% .
A przy jakiej wartości ma się wyłączyć lub jaki warunek ma wyłączyć wentylator
Udostępnij flow
przesyłam flow . jeżeli wilgotność jest większa niż 60%
[{"id":"a80753bf052cf429","type":"tab","label":"Wentylacja","disabled":false,"info":"","env":[]},{"id":"2e993047faae58b9","type":"inject","z":"a80753bf052cf429","name":"Wentylator schody 8:00","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"00 08 * * *","once":false,"onceDelay":0.1,"topic":"","payloadType":"date","x":170,"y":180,"wires":[["9c498b242a3a04ec"]]},{"id":"5e00113e5787d6a9","type":"api-call-service","z":"a80753bf052cf429","name":"Google TTS","server":"382b9ffa.f7c7d","version":3,"debugenabled":true,"service_domain":"tts","service":"google_say","entityId":"media_player.salon_2","data":"{\"message\":\"Volume 50%\"}","dataType":"json","mergecontext":"","mustacheAltTags":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"data"}],"queue":"none","x":790,"y":120,"wires":[[]]},{"id":"f88bf05924d70cb9","type":"inject","z":"a80753bf052cf429","name":"Wentylator schody 13:00","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"00 13 * * *","once":false,"onceDelay":0.1,"topic":"","payloadType":"date","x":170,"y":240,"wires":[["9c498b242a3a04ec"]]},{"id":"0f5b72254a7c67ff","type":"inject","z":"a80753bf052cf429","name":"Wentylator schody 17:40","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"40 17 * * *","once":false,"onceDelay":0.1,"topic":"","payloadType":"date","x":170,"y":300,"wires":[["9c498b242a3a04ec"]]},{"id":"d1057b0d955bdb4c","type":"delay","z":"a80753bf052cf429","name":"","pauseType":"delay","timeout":"17","timeoutUnits":"minutes","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":690,"y":220,"wires":[["df991fe10cb3a37f"]]},{"id":"df991fe10cb3a37f","type":"api-call-service","z":"a80753bf052cf429","name":"Wentylator schody","server":"a63d025f.26b9e","version":3,"debugenabled":false,"service_domain":"switch","service":"turn_off","entityId":"switch.sonoff_10009a745c","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":750,"y":300,"wires":[[]]},{"id":"9c498b242a3a04ec","type":"api-call-service","z":"a80753bf052cf429","name":"Wentylator schody","server":"a63d025f.26b9e","version":3,"debugenabled":false,"service_domain":"switch","service":"turn_on","entityId":"switch.sonoff_10009a745c","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":510,"y":120,"wires":[["d1057b0d955bdb4c","68e3f6943d04dfa7"]]},{"id":"68e3f6943d04dfa7","type":"function","z":"a80753bf052cf429","name":"","func":"msg.payload =\n{\n \"data\":\n {\n \"message\": \"włączono wentylację\"\n }\n}\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":680,"y":60,"wires":[["5e00113e5787d6a9"]]},{"id":"ff2fad8068247457","type":"server-state-changed","z":"a80753bf052cf429","name":"Czujnik wilgotności w salonie","server":"a63d025f.26b9e","version":3,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"sensor.temperatura_i_wilgotnosc_humidity","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"50","halt_if_type":"num","halt_if_compare":"gte","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":60,"wires":[["9c498b242a3a04ec"],[]]},{"id":"1d199fce0b0dc4d0","type":"api-call-service","z":"a80753bf052cf429","name":"","server":"a63d025f.26b9e","version":3,"debugenabled":false,"service_domain":"","service":"","entityId":"","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":320,"y":460,"wires":[[]]},{"id":"382b9ffa.f7c7d","type":"server","name":"Home Assistant","version":2,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":false,"cacheJson":false,"heartbeat":false,"heartbeatInterval":30},{"id":"a63d025f.26b9e","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}]
Wyeksportuj flow jako plik lub użyj opcji “Tekst sformatowany”