In my bathroom I want to automate ventilation based on humidity level. My fan has 2 speeds and is controlled by a Fibaro FGS223 switch. Humidity is measured by an Aeotec Multisensor 6 that runs on power via USB (so no batteries).
I also use Reactor plugin for several automations.
I read the thread HOW-TO: Time Series - Reactor - Ezlo Community
I like this way to steer the fan based on spikes in the humidity levels. I also have concluded that you cannot use a fixed humidity level because of the seasonal influences (winter-summer). But even from day to day it can vary. In Holland we had very nice sunny weather past week and basic humidity level in the bathroom was say 43%. But today it has rained whole day and the basic level increased to 58%.
But my big question is: how can I stop the fan automatically when humidity level is (almost) back on the starting level ?
Start the fan is easy, from the moment there is activity in the bathroom (motion, lights on) and humidity starts increasing → just start the fan at a certain difference between max and min in a certain period (“range”)
But when you take a shower or a bath the humidity level will stay on a high level for as long as the shower or bath lasts. So in that period the “range” will be very small but the fan should be on max level.
When you are finished the humidity level will decrease fast during first 10-15 minutes (1% per minute) and then decreases very slowly (only 0,1-0,2% per minute).
I don’t know how to do this using this method.
My alternative idea is to get the humidity level at te moment activity starts in the bathroom (I want to use a virtual switch for that: “BathroomActive|”.
That HumidtyStart level must be determined once at the beginning and then remain unchanged.
Also I would use a variable “HumidityDIFF” as an expression which is Current Humidity Level minus HumidityStart.
This way I could start fan at low speed at the beginning of the activity, set it at high speed when the HumidityDIFF is for example > 3.
When the HumidityDIFF is < 3 again set the fan back on low speed.
My Question is how can I define a variable Humidity Start without updates during the activity ?
Who can help ?