beta? sure, let me know. Is there anything else I could send you (traces for instance) that could help?
Thanks I just PM you for your trace line
Edit: I think I found it but will wait for your trace.
Hello. Please tell me what the reason may be. Xiaomi ordinary zigbee sensor, ordinary xiaomi zigbee socket. Automation is set up and running, while the time limit is 15 minutes. when 15 minutes have passed, the ventilation is turned off. The problem is that if the humidity is still high, the automation does not work the second time.
Thanks a lot for the answer.
When we are having back to back showers the humidity doesnât drop enough to trigger the automation again. For this it is best to also use the âMaximum Humidity Optionâ. In order for this to trigger the humidity must be below your setting and rise above it.
To use this feature you must enter in the humidity sensor you are using for the âHumidity Derivative Sensorâ. Then for summer and winter settings you have the option to enable the maximum humidity option as shown below and enter in a humidity % that suits you. If the slider doesnât allow you to enter in the setting you require then just simply type the value in.
Hope this helps
Blacky
thank you. Iâll try to do it
FAQ - Only Selecting Scripts
If only selecting a script in âFan Switchâ and âFan Speed - Low Speed Switchâ, it is recommended to enter in a dummy toggle helper to help the automation function correctly. It allows the by-pass and the built in Home Assistant restart safe guard option to function correctly.
If you have entered in a entity, example âFan or Switchâ then you donât need to enter in a toggle helper as the fan or switch will be sufficient. It only applies if you are just using scripts only.
Below show an example of just scripts entered and then scripts with toggle helpers.
Just Scripts
Scripts with Toggle Helpers
How to create a Toggle Helper
-
Go to Settings / Devices & Services / click on the âHelpersâ tab / click â+ CREATE HELPERâ and select âToggleâ.
-
In the name area, enter a name that best suits you. For this example we will put âBathroom Fan High Speed Toggle Helperâ and âBathroom Fan Low Speed Toggle Helperâ. Then click create for each toggle helper.
-
Now just enter in your toggle helpers into the automation as shown above.
Enjoy
Blacky
Back to FAQ: Click Here
FAQ - How Do I Use The Automation Link
This allows you to link your other automations so they will be automatically disabled. This is useful if you are using one of my other blueprints to control the lights, switches and or scenes in your bathroom and you would like to disable it when this automation is ON. It allows you to keep the bathroom lights ON when you are in the shower and your motion sensor is unable to detect motion.
If you are using my Sensor Light blueprint to control your lights in the bathroom sometimes when you are in the shower the motion sensor canât detect your movement (behind a shower screen or even glass) and your lights turn OFF when showering . Using this option allows you to disable the sensor light blueprint while you are in the shower so the lights will stay ON . When you have finished and the falling humidity % has been achieved or the safe guards set time has passed you can set a separate time delay that allows you time to dry yourself before stepping out where the motion sensor can detect you again. It will then turn the âAutomation Link - By-pass Controlâ OFF enabling your Sensor Light automation to function as per normal and your light will then turn OFF controlled by the sensor light automation
How to create a Automation Link - By-pass Control Toggle Helper and set it up
Below is an example on how to create the toggle helper and set it up between both automations.
-
Go to Settings / Devices & Services / click on the âHelpersâ tab / click â+ CREATE HELPERâ and select âToggleâ.
-
In the name area, enter a name that best suits you. For this example we will put "Bed 2 Ensuite - Bathroom Fan Automation Link - Bypassâ. I also selected and icon that suits me. Then click create.
-
Enter in the "Bed 2 Ensuite - Bathroom Fan Automation Link - Bypassâ toggle helper into the Sensor Light blueprint automation that controls your bathroom lights as shown below into option 1, 2 or 3. I have chosen to enable option â1 - Enable the By-pass - Turn lights ONâ.
-
Then in this blueprint âBathroom Humidity Exhaust Fanâ, enable the automation link option, enter in the "Bed 2 Ensuite - Bathroom Fan Automation Link - Bypassâ toggle helper into the âAutomation Link - By-pass Controlâ and set your time delay to your liking.
-
That is it, your done. Your sensor light automation will now be disabled when you are in the shower keeping your light ON
Enjoy
Blacky
Back to FAQ: Click Here
New Features
-
Automation Link Option - This allows you to link your other automations so they will be automatically disabled. This is useful if you are using one of my other blueprints to control the lights, switches and or scenes in your bathroom and you would like to disable it when this automation is ON. It allows you to keep the bathroom lights ON when you are in the shower and your motion sensor is unable to detect motion.
For more information on the Automation Link Option Click Here
Bugs Fixes
- Major upgrade to HA restart safe guard. This fixed a lot of bugs including when using scripts to control your fan.
- Trigger Sensor By-pass. A lot of bugs fixed here.
If you like this blueprint? Consider hitting the button in the top post
If you like my blueprints, and would like to show your support or just say thank you? Click Here
Enjoy
Blacky
Hello. Tell me please. Is it possible to set the threshold for turning on the fan to 70%?
if you mean, you want the fan to come on when it reaches 70% humidity regardless of derivative, then yes set as below
set your humidity sensor
set Use The Maximum Humidity Option (Optional)
to Enable
and then set the Maximum Humidity
to 70
%
the slider will not go below 95%, so just click in the text field and enter 70
then save.
Thank you very much. I thought that the red stripe indicates an error.)))))
New Features
-
Manual Fan Switch Option - This allows you to add a switch to turn the fan ON and OFF manually and still allows the automation to be triggered, taking control of your fan . This is useful in removing any unwanted fumes from deodorant, hairspray, toilet etc. The auto off time delay in option 2 makes sure you never forget to turn the fan OFF.
The switch can be:
- Switch
- Binary sensor
- Input boolean
Please Note: The switch can not be the actual fan switch and must be independent. If you use the actual fan switch then the automation will not work.
What can this now do?
- If you have a toilet in the bathroom you can now have a physical manual switch on the wall, or a sensor that can turn the fan on for a set time period. If you then have a shower the automation will take control of your fan.
- Getting ready for the day and you spray deodorant or hairspray and would like to remove the fumes?.. you can now turn the fan ON and OFF or use the auto OFF option and it will run for X amount of time.
- Getting in the shower and you would just like to start the fan manually from the start and not wait for the trigger to then have the automation take control, this is now possible.
- Turn the fan ON and OFF in HA or with a local switch + opt to use a time delay option, this is now possible.
- Cancel the automation with a local fan switch or in HA dashboard, turn the switch ON and OFF. It may restart depending on site conditions.
It can do more but I think you get the idea.
If you like this blueprint? Consider hitting the button in the top post
If you like my blueprints, and would like to show your support or just say thank you? Click Here
Enjoy
Blacky
Hi Blacky,
I have a % controlled fan. I would like to go to 100% when showering and then go to 20% when finished.
I have set up two helpers
afzuig100: fan goes to 100%
afzuig20: fan goes to 20%
when I switch afzuig100 on afzuig20 goes to off en vice versa.
how can ik make my setup work with your wonderful blueprint?
what should i put as entities below?
Fan Switch: afzuig100%
input - Fan Speed - Low Speed Switch (Optional):
Input - Fan Speed - Switch Off (Optional):
Use The Fan Speed Options (Optional):
@fransiefrans I have something similar. Created scripts for High, Medium and Low, like this:
alias: Ventilatie High
sequence:
- service: fan.turn_on
data:
percentage: 100
target:
entity_id: fan.mechanical_ventilation
mode: single
icon: mdi:fan-speed-3
The Blacky script is calling this:
fan_switch:
entity_id:
- script.ventilatie_high
- input_boolean.bathroom_fan_high_speed_toggle_helper
fan_speed_low:
- script.ventilatie_medium
- input_boolean.bathroom_fan_low_speed_toggle_helper
fan_speed_off:
- script.ventilatie_low
New Features
- Input - Fan Speed - Switch Off (Optional) - This now allows you to add a input boolean.
If you like this blueprint? Consider hitting the button in the top post
If you like my blueprints, and would like to show your support or just say thank you? Click Here
Enjoy
Blacky
Hi
First please update to version 2.2. I have now added the ability to add your helper into âInput - Fan Speed - Switch Off (Optional)â.
Q: How do you update the blueprint and not delete / recreate existing automations?
A Please follow these steps Click Here
Once updated then you would do this.
Then for normal (summer) this.
If using winter mode, then this.
.If this doesnât work for you, you can create scripts for 100% and 20% like @balk77 suggested above and enter them into the same areas. If you do use scripts then you will need to enter in a toggle helper (that controls nothing, just a dummy toggle) into âFan Switchâ only. You do not need to add a toggle helper into âInput - Fan Speed - Switch Off (Optional)â
Hope this helps, and let us know how you go.
Blacky
PS: If you would like to share how you created helpers to control your fan % then I am sure it would help the community.
I have scripts running to control fan speed and valves all together.
For the fan speed on, the automation triggers a script which essentially does 3 things:
- Opens the valve for the appropriate room (set valve percentage to 100%)
- Increases the speed of the central motor to 80%
The third one was a bit more complex where I had to think a bit more I have 3 valves for 3 rooms which are permantly open for 20% (functioning as air circulation).
When the automation is triggered I want to close the valves in the other 2 rooms, as I donât want all heat to be sucked out of that room (because there is only 1 central motor which ups to 80% capacity).
Therefore the 3rd thing the script does is check if there are any other automations currently running in the other 2 rooms, then it shouldnât close their valves. If not, it can safely close them.
The fan script off is doing the same:
- It sets the valve of the relevant room back to 20% open
- If no other automation is running for the other 2 rooms it sets the motor back to 20% capacity and sets the valves of the other 2 rooms back from 0% to 20%
It stil has a few improvements I could make such as: if the script off runs in the above described way and there is an automation running in another room, it should not put the valve to 20%, but rather fully close it.
But thatâs probably something for later
Just posting my set up now as promised. I will update this in the next few weeks as I am waiting for some items so I only need to use one ESP32.
thank you for the script. Iâm trying the 2.2 version. if this does not work, Iâll try the script.