Hi Guys,
I want to have a flow which tells via Alexa-Routine that the room humidty in bathroom drops below 50% (to remember me to close the window after daily showering) but only if it was higher before.
To be honest I’ve no clue how to manage that at the moment. Do you have some hints for me which leads me in the right direction?
This was my starting - but of course this triggers always if humidity changes -->
[{"id":"7bf9c73d.cc7968","type":"server-state-changed","z":"b701708f.d6fa2","name":"Badezimmer Luftfeuchtigkeit <50%","server":"cdcde6c6.b307a8","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"sensor.xiaomi_mija_temperature_01_humidity","entityidfiltertype":"exact","outputinitially":false,"state_type":"num","haltifstate":"50","halt_if_type":"num","halt_if_compare":"lt","outputs":2,"output_only_on_state_change":true,"x":180,"y":60,"wires":[["eee2552d.1736b8"],[]]},{"id":"3f04b7b9.f48ae8","type":"delay","z":"b701708f.d6fa2","name":"","pauseType":"delay","timeout":"7","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":540,"y":60,"wires":[["9d0117db.751c38"]]},{"id":"eee2552d.1736b8","type":"rbe","z":"b701708f.d6fa2","name":"","func":"rbe","gap":"","start":"","inout":"out","property":"payload","x":410,"y":60,"wires":[["3f04b7b9.f48ae8"]]},{"id":"9d0117db.751c38","type":"alexa-remote-routine","z":"b701708f.d6fa2","name":"","account":"67422e97.c87f7","routineNode":{"type":"speakAtVolume","payload":{"type":"regular","text":{"type":"str","value":"Die Luftfeuchtigkeit im Badezimmer ist wieder unter 50%. Das Fenster kann wieder geschlossen werden."},"volume":{"type":"num","value":"100"},"mode":"set","devices":["G090XG079414118F"]}},"x":750,"y":60,"wires":[[]]},{"id":"cdcde6c6.b307a8","type":"server","z":"","name":"HA (MULATZ)","legacy":false,"hassio":false,"rejectUnauthorizedCerts":false,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true},{"id":"67422e97.c87f7","type":"alexa-remote-account","z":"","name":"Alexa-Account","authMethod":"proxy","proxyOwnIp":"192.168.100.208","proxyPort":"3456","cookieFile":"/root/.node-red/alexa-remote/auth.txt","refreshInterval":"3","alexaServiceHost":"layla.amazon.de","amazonPage":"amazon.de","acceptLanguage":"de-DE","userAgent":"","useWsMqtt":"on","autoInit":"on"}]
The delay is only to give the Alexa-node time to initialize after deployment
Thx in advance for any input!
Cheers
Florian