I have this exact same setup except using the Aeotec sensor, and the outside humidity sensor being my Ecobee that is right outside the bathroom door. Since I also have a motion sensor and disable it when the door is closed to prevent the “wave arms in the air on the toilet” scenario, it took me 4 automations.
I’d be interested in how to make use of the mold sensor for the bathroom. Do you use outdoor temperature from outside the house or from the rest of the house when calculating bathroom mold indicator?
alias: "Bathroom Humidity High"
trigger:
platform: numeric_state
entity_id: sensor.bathroom_motion_relative_humidity
above: 70
action:
- service: switch.turn_on
entity_id: switch.bathroom_fan_switch
- service: input_boolean.turn_on
entity_id: input_boolean.humidity_purge
- service: automation.turn_off
entity_id: automation.bathroom_motion_sensor_off
alias: "Bathroom Humidity Low"
trigger:
- platform: numeric_state
entity_id: sensor.bathroom_motion_relative_humidity
below: 66
- platform: template
value_template: "{{ states.sensor.bathroom_motion_relative_humidity.state | float - states.climate.ecobee.attributes.actual_humidity | float < 9 }}"
condition:
condition: and
conditions:
- condition: state
entity_id: input_boolean.humidity_purge
state: "on"
- condition: state
entity_id: binary_sensor.bathroom_door_sensor
state: "on"
action:
- service: input_boolean.turn_off
entity_id: input_boolean.humidity_purge
- service: switch.turn_off
entity_id: switch.bathroom_sink_switch
- service: switch.turn_off
entity_id: switch.bathroom_fan_switch
- service: automation.turn_on
entity_id: automation.bathroom_motion_sensor_off
alias: "Open Bathroom Door With Humidity"
trigger:
platform: state
entity_id: binary_sensor.bathroom_door_sensor
to: "on"
condition:
condition: state
entity_id: input_boolean.humidity_purge
state: "on"
action:
- service: automation.turn_on
entity_id: automation.bathroom_humidity_low
alias: "Open Bathroom Door No Humidity"
trigger:
platform: state
entity_id: binary_sensor.bathroom_door_sensor
to: "on"
condition:
condition: state
entity_id: input_boolean.humidity_purge
state: "off"
action:
- service: automation.turn_on
entity_id: automation.bathroom_motion_sensor_off
- service: automation.turn_on
entity_id: automation.bathroom_humidity_low