OK! Will do - I think it wouldnât let me pick a manual_fan_switch through the UI if the domain type was == light.
I figured I didnât need any actions in there, since we were just using it for state - is that not the case? I thought you were just monitoring for state?
It will not allow you to pick a light domain through the UI but you can edit the YAML and add your light in this blueprint⌠for that input it will still work. I run filters sometimes so it is easier to pick your entity and I though most people wouldnât use a light there but it is okay to do so.
Normally when you add these turn on or off actions you have actions. What you can do when developing templates like this is to add your light and you template to the UI then turn the light ON and see what happens to the template. Then if needed you can edit them and see what happens remembering you will have to reload templates every time you edit them. To do this go into developer tools . YAML tab > then select âTemplate Entitiesâ. A HA restart will also do the same thing.
@blacky - sorry it took me a little while to get back to playing with this!
Iâm still having the same issue. YAML below.
When I walk into the bathroom, sensor trips, fan comes on. If I then decide I want the light, and turn ON the light, fan stays on. If I then walk out, turn the light off, fan stays on - and never turns off again.
I have tested it here again trying every option and the fan always turns OFF. Can you check to make sure nothing else it keeping it ON (anther automation).
Hi @Blacky ; again, finally got back to testing this, and not seeing âexpectedâ behaviour. Iâve got my master fan down the bottom.
For clarity, there are 2 Shelly relays - a 1pm and a dimmer in there; 1pm runs the fan, dimmer runs the lights. Theyâre on separate switches. It may be important to note that the presence sensor and switch are both inside the bathroom, so itâs hard to press the light switch without triggering the presence sensor.
Based on the config below, I am definitely seeing unexpected behaviour:
If I trip the sensor, fan works - every time. If I donât touch the light, the fan will go off with the time delay. So far, so good.
If I trip the sensor, then turn the light on manually, the fan will eventually go off when the presence sensor stops detecting motion, but so will the light. Example log entry - Iâm not sure how the automation is turning off the light, given that I havenât selected any option.
Master Bathroom Light turned off triggered by automation Master Bathroom Exhaust Fan triggered by state of Master Bathroom Motion Sensor Presence
19:28:09 - 19 hours ago
Lastly, if I trip the sensor, then turn the light on manually, then turn the light off manually, the fan will not turn off by itself - requires manual intervention.
What other information can I provide to help troubleshoot?
Thanks for providing this detail of what is happening including your YAML. It really helps me.
Correct
Correct
Not correct
All is good in the design of the blueprint but it look like you would like a different option / way in how it should work. Please look at removing / disabling the manual light control and use option 1 in the bypass. Then in âBy-pass Switch - Turn Fan ONâ enter in your âlight.master_bathroom_lightâ. The only thing that may happen is when you turn your light OFF the fan may turn OFF instantly if the presence sensor is not detecting motion. I could add a extra input to fix this but let us know if this works for you. Note you could also use the âEnable the by-pass auto off - Turn fan ON optionâ and set a âBy-pass Auto OFF - Time Delayâ if the light was left ON accidentally.
Please let us know how you go as I do value feedback.
Hi,
I would really like to use the inverted mode in combination with the âtrigger wait optionâ, which is exclusive for the ânormal Modeâ.
Means that the fan should only be switched on if the trigger wait time has passed and the light is switched off (after leaving).
I havenât found a solution for this. Does anyone have an idea?
Iâm using the Toilet Exhause Fan blueprint. The complication is my ON/OFF switch actually has the power control for the fan built-in. So if someone turns OFF the switch then the fan stays OFF.
Question: If someone turns OFF the fan switch while itâs running, How do I make the fan turn back on, if the timer is still counting down?
Edit : Iâm using v2. 0
Not clear to me whether v.2.x updates have a way to override the human who turns OFF the switch, but I want it to run for the full timer amount of time.
Thanks, Iâm curious though ⌠The âswitchâ is a wireless smart switch that reports itâs power state to HA, its power can be turned ON/OFF thru HA, and ALSO the bathroom user can push the switch buttons ON/OFF (the entity state change reported to HA). The switch = Lutron PD-8ANS-XX
What we want is for the fan to always remain on during the delay time. If the switch entity state changes to OFF during delay time for any reason, then the Blueprint should turn it back ON.
Maybe you could point me to where in your Blueprint code I could look to see about altering it to force ON always during delay time?
Edit: thinking about it, maybe it would require re-entrance of the code, or else some nested looping. Maybe not yet possible with Blueprint YAML?
Collapsible Sections - Added collapsible sections to the blueprint. This enhancement improves the blueprint user interface by making it cleaner and more organized, allowing sections to be collapsed.
This feature was introduced in Home Assistant 2024.6, so you must have this version or later for the blueprint to work.
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
Safeguard - If your trigger is a light and it remains ON (keeping the fan ON), you can set a maximum run time to automatically turn both the light and fan OFF. No more getting cross at the children for leaving the light ON⌠Family peace is restored . The new feature is found in the Triggers section.
Maintenance
From time to time HA updates their YAML and the way they would like to wright code⌠so we updated the code to follow their road map. We will be doing this through all of our blueprint as we update them.
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
Question : Why can the blueprint only switch on one entity? My ventilation connected to KNX has lo-mid-hi, now it switches on only the low. I would like to use it in the shower and sync it to the bathroom light and then switch multiple entities to on.
Feature request to make it perfect : enable for example one entity in the first X minutes the light is on but when the light remains on, switch on more, additional entities. Thanks!!