Would be great to combine this with a humidity exhaust option to have both common use case in 1.
Humidity gets a bit tricky. I have a different blueprint for “Bathroom Exhaust Fan” it turns on a fan when humidity increases.
What is your scenario?
@Blacky I saw today your blueprint and find it a nice idee. But is it possible to turn the fan only on if the light is longer then 2 minutes on?
Hi @daschmidt
Thanks for your kind words, glad you like it.
Good idea I will add this option to the blueprint!
Working on it now.
Hi @daschmidt
Sorry for the delay. I have done all the code and just testing it now. I will upload it once all the testing is done.
FAQ
Q: Can we link the Toilet Exhaust Fan blueprint with the Bathroom Humidity Exhaust Fan blueprint as my bathroom has a toilet and a shower?
A Yes, please follow these steps Click Here.
Q: I am using the inverted trigger option and every time I turn OFF the by-pass the fan comes ON. Can I stop this from happening?
A Yes, use the wait time. If you would like it to work without waiting then set this time to “0”. This will stop the fan coming ON when turning the by-pass OFF and using the inverted trigger option.
Q: I am using a motion sensor and the trigger wait time but the fan never comes ON? or, I am using a motion sensor and the trigger wait time but the automation is not working correctly?
A Motion sensors tend to go ON and OFF (detected and clear) in a short time period. The trigger wait time requires the trigger to be ON and remain ON for a set amount of minutes before it will turn the fan ON. The trigger wait time is best suited when using a trigger like a light or a sensor that remains ON until you leave the bathroom. If you are keen to use some type of motion sensing maybe try using a presence detectors or maybe have a short delay OFF in your motion sensor.
Q: I would like to set a different value but the slider is not letting me?
A Just simply type the number value you would like in the field and click save. A red line will appear under the number you have entered but once you click save, exit the automation and go back into it the red line will not be there.
Added 2 new options
- The trigger (Light) must be ON for a set time (Trigger Wait Time) before the fan will turn ON. This is a good option if you are doing a number 1 and the fan is not required. If you are doing a number 2 then this normally takes longer than a number 1 so if the light is ON for X amount of time then the fan will come ON.
- You have the option to set a start time and an end time. This will only allow the automation to run between the time periods. This is a good option if you would like to disable the fan at night when everyone is sleeping so the fan noise doesn’t wake anyone up.
Enjoy
Blacky
thanks, will try it when I come home.
Tried it from away with my wife(she is home).
Something looksstrange. The fan go on when the light go on.
Take a look today evening when i come home
A short question if the fan is running and after 5min the light goes on again start the time again?
Tricky
If the fan goes ON and the wait time is 3 min and the delay time is 5 min. If you turn the light on again and the delay has 2 min left the fan will go OFF in the delay time(2 min) and the automation restarts from when the light was turned ON. If your in and out in 2 min the fan will go OFF as you exit and stay OFF. If you are longer than 3 min the fan will come ON again.
If you have 4 min left to go and your longer than 3 min the fan will stay ON and then go OFF on time delay once you turn the light OFF.
Hope that right… just run some checks and see how you go.
you have to select the option for “Trigger Wait Option (Optional)” & select “Use the wait time”
Hi, I’m newbie to HA. Thanks for your blueprints, they are perfect examples of automation. I have cloned this blueprint with a few changes.
- I have a standard dumb fan in ceiling with a smart switch behind it. But since I want to have the fans in the fan category, I used the helper to change the “switch” to “fan”. Item “switch.id” was hidden for selection, selecting “fan.id” doesn’t work in script. Because the “fan” category has its own on/off methods. Changing the on/off command in “actions” from “switch.turn_” to “fan.turn_” solved this problem. I don’t know if there is a more universal method of defining it, regardless of the switch category.
- The second version is to start the fan after the light goes out, not while the person is inside with the light on. Simply moved the order of actions - turning on the fan after turning off the light.
Firstly welcome to the community.
1: I will do an update that will resolve this and it will be plug and play. Thanks for letting me know.
2: No problem, the only problem I can see… if someone enters immediately after you done . But it HA so you can do anything you like .
Thanks for elegant solution for 1).
About 2) …
I have used the Sonoff Mini (in follow mode with a rocker-switch) as a switch element for the fan. At any time, anyone can manually turn off/on the fan locally. For example, if he doesn’t want to sit under a noisy fan.
I will probably change the logic to:
- trigger light on
- wait for some time (for case “2”)
- set fan on
- wait for light off
- set fan on
- wait for fan after-delay
- set fan off
If someone turns off the fan during the “mission”, it will be ensured that the fan starts for delay time when he leaves (light off). If the fan is still running, nothing happens, just a redundant command.
Better suggestion. Get a TVOC sensor (with temperature and humidity) and just use that to trigger the fan, when it detects the smelly side effects of a no. 2 in progress and/or your humidity going through the roof.
For detect smelly side effect you need right sensor (H2S, metan, …).
I have developed it for 3 more option if the trigger is inverted (light from on to off = fan on). I have done the testing and it works, but will probably do some more tests. Just need to clean it up before I release it (version 1.6). Once I am 100% happy I will release it. Probably be in a day or two.
Added “Trigger Options”. You can now select “Normal Mode” or “Invert Trigger”.
Normal Mode (Default) - This will start the fan when the trigger goes from an OFF to ON state. Example, Light turned ON or motion sensor detected.
Invert Trigger - This will start the fan when the trigger goes from an ON to OFF state. Example, Light turned OFF. It is not recommended to use this option when using a motion sensor.
Enjoy
Blacky
Fixed a bug when using “Trigger Wait Option”. In one scenario the fan would not turn off.
Enjoy
Blacky
New Features
-
By-pass Options - This allows you to add a by-pass to the automation. you have 3 by-pass options.
- Enable the By-pass - Turn fan ON
- Enable the By-pass - Turn fan OFF
- Enable the By-pass - Keep the fan current state
What can this now do?
- Allow manual control of you fan.
- Allow you to create a run on timer for the fan.
- Allow you to use this blueprint with my other blueprints.
Example on how to use it with my Bathroom Humidity Exhaust Fan
If you are using my “Bathroom Humidity Exhaust Fan” blueprint and you would like to give priority to it and disable this automation to then return back to normal when the “Bathroom Humidity Exhaust Fan” blueprint finishes then you would do the following.
-
First create a toggle helper and enter it into “Enable the By-pass - Turn fan ON” or “Enable the By-pass - Keep the fan current state” as shown below.
-
Then in my “Bathroom Humidity Exhaust Fan” blueprint you would enter this same helper into the “Fan Switch” as shown below.
-
If you are using low speed in my “Bathroom Humidity Exhaust Fan” blueprint you would enter this same helper into the “Fan Switch” & “Low Speed Switch” as shown below.
-
That is it your done
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