🚿 Bathroom Humidity Exhaust Fan

@MAdbUSU

Could you please provide us your YAML of the automation? This YAML code are the settings you have selected in the automation so I can help. To do this go into your automation, top right 3 dots, Edit in YAML, copy all the code, come back to the forum and in your reply at the top tool bar click on “</>” and paste code in there.

Blacky :smiley:

1 Like
description: ""
alias: Bathroom Humidity Exhaust Fan
use_blueprint:
  path: Blackshome/bathroom-humidity-exhaust-fan.yaml
  input: {}

@MAdbUSU

You need to set up all the inputs and create a Derivative Sensor Helper

Step 1 = Click here
Step 2 = Click here

Blacky :smiley:

it’s strange because i try to fill all the settings in blueprints when i click save, i didn’t get error, but when i come back to see if the setting are save, they are not save.

ok i will try to take the steps you advice.

@MAdbUSU

After saving a blueprint automation, you’ll find it listed under the Automation’s tab, not the Blueprints tab. A blueprint acts as a reusable template, allowing you to create multiple automations from it. For example, you could use the same blueprint to set up automations for three different bathrooms.

Once saved, each automation will appear under the Automation’s tab, where you can view and adjust its specific settings.

It might feel a bit confusing at first, but I hope this explanation clarifies things!

Blacky :smiley:

Oh, now it’s more clear, found it in automation TAB, i will post YAML file

alias: Bathroom Humidity Exhaust Fan
description: ""
use_blueprint:
  path: Blackshome/bathroom-humidity-exhaust-fan.yaml
  input:
    trigger: sensor.senzor_de_umiditate_derivative
    bathroom_humidity_sensor: sensor.sonoff_temp_bucatarie_humidity
    manual_trigger:
      - switch.ventilator_baie_mare_switch_0
    manual_trigger_default_time_delay: 5
    manual_trigger_winter_time_delay: 5
    include_manual_trigger: enable_manual_trigger_time_delay
    fan_switch:
      area_id: baie_mare
      device_id: 436181267fd1aadc7eb96180cad80e5c
      entity_id: switch.ventilator_baie_mare_switch_0
    include_manual_fan_switch: enable_manual_fan_switch_auto_off
    manual_fan_switch:
      - switch.ventilator_baie_mare_switch_0
    manual_fan_switch_time_delay: 5

so for this fan i have a push button to control it, so i want to use this push button every time i think it’s necessary.

but with the current setting when i press the PB (shelly 1PM) the shelly start to flicker very fast on/off i don’t think it’s suppose to work like that.

i don’t know what option to use ?
if i disable both like in screenshoot fan works, but i need to set a working time like 5min when i press PB.


@MAdbUSU

I have adjusted your automation YAML.

  1. Fan Input: Only entities are supported; areas, devices, or labels cannot be included. I have adjusted this for you.
  2. In Manual Trigger and Manual Fan Switch it cannot be your actual Fan Switch entity; it must be a completely different entity. I have removed this and disabled these options. You will need to find a different switch other than the fan switch. You could add a toggle helper but it will not be a physical switch but this may be a good way to test it out. When selecting the entity if you scroll down to the bottom you will see Create new Toggle Helper, this will create one for you and then you add it into a dashboard.
alias: Bathroom Humidity Exhaust Fan
description: ""
use_blueprint:
  path: Blackshome/bathroom-humidity-exhaust-fan.yaml
  input:
    trigger: sensor.senzor_de_umiditate_derivative
    bathroom_humidity_sensor: sensor.sonoff_temp_bucatarie_humidity
    manual_trigger_default_time_delay: 5
    fan_switch:
      entity_id: switch.ventilator_baie_mare_switch_0

Blacky :smiley:

Hi Blacky,
Thank you for helping me.
I just want to point out , manual trigger work with phisical push button, i test it with delay time 5 min and works.

Now i think i need a little bit a fine tuning, i will explain why:
i take 2 showers with 5 min interval (i will post screenshoot)
the automation starts but only works for 5 min i will aspect to work till humidity falls back to normal levels :thinking:

here automation stop for few seconds then restarts for 5 min

current config:

alias: Bathroom Humidity Exhaust Fan
description: ""
use_blueprint:
  path: Blackshome/bathroom-humidity-exhaust-fan.yaml
  input:
    trigger: sensor.senzor_de_umiditate_derivative
    bathroom_humidity_sensor: sensor.sonoff_temp_bucatarie_humidity
    manual_trigger:
      - switch.ventilator_baie_mare_switch_0
    manual_trigger_default_time_delay: 5
    manual_trigger_winter_time_delay: 5
    include_manual_trigger: disable_manual_trigger
    fan_switch:
      area_id: baie_mare
      device_id: 436181267fd1aadc7eb96180cad80e5c
      entity_id: switch.ventilator_baie_mare_switch_0
    include_manual_fan_switch: enable_manual_fan_switch_auto_off
    manual_fan_switch:
      - switch.ventilator_baie_mare_switch_0
    manual_fan_switch_time_delay: 5

@MAdbUSU

I try and explain.

Your Fan is switch.ventilator_baie_mare_switch_0.
Your Manual Fan Switch is switch.ventilator_baie_mare_switch_0.

When you turn ON your manual switch the fan runs for 5 min as per your settings.
When the automation turns the fan ON it is the same as the manual fan switch, so it activates the manual fan switch and it runs for 5 min. This is what you are seeing.

If you would like to use the same entity for the fan and manual fan switch input then I do have a solution for your click here. It will show you how to do this. You will need a file editor to access your config file, click here as HA shows you how to do this.

Also note you can not use areas or devices in the fan input.

Blacky :smiley:

1 Like

Ok , i finish create and set-up binary sensor, i didn’t test yet
here is current yaml config:

alias: Bathroom Humidity Exhaust Fan
description: ""
use_blueprint:
  path: Blackshome/bathroom-humidity-exhaust-fan.yaml
  input:
    trigger: sensor.senzor_de_umiditate_derivative
    bathroom_humidity_sensor: sensor.sonoff_temp_bucatarie_humidity
    manual_trigger:
      - switch.ventilator_baie_mare_switch_0
    manual_trigger_default_time_delay: 5
    manual_trigger_winter_time_delay: 5
    include_manual_trigger: disable_manual_trigger
    fan_switch:
      entity_id: switch.ventilator_baie_mare_switch_0
    include_manual_fan_switch: enable_manual_fan_switch_auto_off
    manual_fan_switch:
      - binary_sensor.manual_fan_switch
    manual_fan_switch_time_delay: 5

  • hope it’s looking OK now :saluting_face:

And i think it’s working well now :hugs:
@Blacky thank very much !

@MAdbUSU

That look a lot better. Glad you got it all working now. It is an automation I really love.

Tidy Up: In your Manual Trigger remove the entity switch.ventilator_baie_mare_switch_0 in Manual Trigger this option is disabled so it wont do anything but it will help the performance of the automation.

TIP: If you are doing back to back showers then the Maximum Humidity Option is what will keep the fan going. You have already enter in your humidity sensor so if and when you are ready consider this option.

Enjoy

Blacky :smiley:

Any update on resolving the errors within logs caused by the manual switches?

Logger: homeassistant.components.homeassistant
Source: components/homeassistant/__init__.py:144
integration: Home Assistant Core Integration (documentation, issues)
First occurred: 5 December 2024 at 19:47:09 (9 occurrences)
Last logged: 08:23:11

The service homeassistant.turn_off does not support entities binary_sensor.manual_en_suite_fan_switch
The service homeassistant.turn_off does not support entities binary_sensor.manual_bathroom_fan_switch

@GTunney

This is because it is a binary sensor and you can’t turn them ON or OFF. I do have another blueprint that I have not released yet. It just creates a manual switch like the template binary sensor so you can use it in this blueprint. If you like I can provide the link so you can test it out. It does the same as the template binary sensor but works a lot better. Let us know what you would like to do.

Blacky :smiley:

Yes happy to test this out.

Any specific steps I need to do to migrate from one to the other?

Will I need to remove my manual switch config from the configuration.yaml?

@GTunney

I will PM you with what you will need to do including the link.

Blacky :smiley:

Hey @Blacky

I’ve noticed after updating to the latest version of the blueprint, that a HA restart seens to trigger the automation? I saw the mention of a bugfix relating to HA restarts and manual switches being ON, so wondering if this is still happening in my case? The latest automation trace shows:


And my automation config is:

alias: Bathroom Humidity Exhaust Fan
description: ""
use_blueprint:
  path: Blackshome/bathroom-humidity-exhaust-fan.yaml
  input:
    triggers: sensor.bathroom_humidity
    fan_switch:
      entity_id: switch.extractor_fan_shelly_switch_0
    bathroom_humidity_sensor: sensor.ble_bath_d8df_humidity
    time_out: 55
    include_max_humidity: maximum_humidity_enabled
    max_humidity: 85
    include_lights: lights_disabled
    rising_humidity: 2
    time_delay: 10
    include_manual_triggers: disable_manual_triggers
    manual_triggers: []
    manual_triggers_default_time_delay: 5
    manual_triggers_winter_time_delay: 5
    manual_fan_switch_time_delay: 15
    include_manual_fan_switch: enable_manual_fan_switch_auto_off
    manual_fan_switch:
      - switch.zigbee_button_switch
    automation_link:
      - input_boolean.demister_link
    include_automation_link: enable_automation_link

@Scoff

Hi Scott, what is happening when you restart HA your humidity is above 85 so it turns the fan ON but you don’t have a Derivative Sensor so it will never drop below -1 because it has no entity and then just times out on your safeguard of 55 min.

You should really create and use a Derivative Sensor for the automation. It is in the FAQ.

Blacky :smiley:

Hi. The blueprint looks great & is very well explained; thank you.
However I have failed to get it to save when I enter entity id’s for the derivative trigger & the fan
sensor.drev_shower
sensor.3_shower_humidity
switch.mss710_9d5c_outlet1

I have also tried renaming the sensor to
sensor.shower_humidity

& loading from the blueprint from the community forum & Github, but each time I get" Message malformed: extra keys not allowed @ data[‘triggers’] "

I can’t work out what’s wrong - I guess something in my naming doesn’t fit the syntax, but I’ve no idea what.

  • Core2024.8.3
  • Supervisor2024.11.4
  • Operating System12.3
  • Frontend20240809.0
    Raspberry PI 3b with HA install.

help would be much appreciated

Thanks
S