Hey everyone, I wanted to share my recent success with setting up some smart home automation. It’s been a bit of a learning curve, but I’m thrilled with how everything is coming together!
First, I’ve been working on integrating some motion sensors into my bathroom setup. I’ve got a Vision ZP3111 multisensor installed, and it’s been a game-changer for automating the exhaust fan. The goal was to have the fan turn on when humidity reaches 65% and shut off when it drops below 60%. But I also wanted to add a failsafe in case someone manually turns it on—so after five minutes, it turns off automatically to save energy.
I’ve been staring at the automation rules for hours, tweaking conditions and triggers. Here’s what I ended up with:
yaml
-
id: ‘4685773456356’
alias: Auto bathroom fan shutoff
trigger:- platform: template
value_template: “{% if states.sensor.vision_zp3111_multisensor_4in1_relative_humidity.state | float < 60.0 %}true{% endif %}” - platform: state
entity_id: switch.ge_45609_onoff_relay_switch_switch_3
to: ‘on’
for: minutes: 5
condition:
condition: and
conditions:- condition: template
value_template: “{% if states.sensor.vision_zp3111_multisensor_4in1_relative_humidity.state | float < 60.0 %}true{% endif %}” - condition: state
entity_id: switch.ge_45609_onoff_relay_switch_switch_3
state: ‘on’
for: minutes: 5
action:
- condition: template
- service: switch.turn_off
entity_id: switch.ge_45609_onoff_relay_switch_switch_3
- platform: template
-
id: ‘2345677453356’
alias: Auto bathroom fan
trigger:- platform: template
value_template: “{% if states.sensor.vision_zp3111_multisensor_4in1_relative_humidity.state | float > 65.0 %}true{% endif %}”
action: - entity_id: switch.ge_45609_onoff_relay_switch_switch_3
service: switch.turn_on
- platform: template
The best part? It works like a charm! The fan kicks in when humidity spikes, runs until it’s dry, and even shuts off if someone forgets to turn it off manually. It’s these little automations that make the smart home feel truly smart.
I’d love to hear how others are automating their bathrooms or managing humidity. Do you have any tips or tricks for perfecting these kinds of automations? Drop them in the comments below—I’m always looking to learn more!
Cheers,
[Your Name]