Hello everyone, I’m thrilled to share my recent adventure with smart home automation using Fibaro motion sensors. I recently purchased a couple of these sensors with the goal of creating a seamless lighting system that adjusts based on motion detection. The idea is to have the lights dim when there’s no motion and brighten when someone enters the room. It sounds straightforward, but I’m running into a few hiccups that I need help sorting out.
Here’s what I’ve set up so far: I’ve installed the motion sensors in my bathroom and connected them to a Qubino Flush Dimmer, all managed through my Aeotec USB Z-Wave 5th Gen EU controller. I’m running Home Assistant 0.48 on a Raspberry Pi 2. The goal is to have the lights automatically adjust their brightness based on motion. When motion is detected, the lights should brighten to 150, and after 5 minutes of no motion, they should dim back down to 50. However, every time I test this setup, it crashes Home Assistant. That’s pretty frustrating!
I’m not entirely sure where I’m going wrong. I’ve looked at a few tutorials and posts where others have successfully set up similar automations, but their configurations seem a bit different from mine. Some use homeassistant_on services, which I don’t quite understand. I’m also confused about whether I should be using state or state_binary triggers. Should I consider using scenes or scripts instead? I’m eager to learn and figure this out, but I’m a bit overwhelmed with all the possibilities.
I’ve included my current automations.yaml setup below in case someone can spot what I’m missing:
yaml
-
alias: “Bathroom Lighting Brighten”
trigger:- platform: state
entity_id: sensor.bathroom_motion
from: ‘0’
to: ‘8’
action: - service: light.turn_on
data:
entity_id: light.bathroom_dimmer
brightness: 150 - delay: minutes: 5
- platform: state
-
alias: “Bathroom Lighting Dim”
trigger:- platform: state
entity_id: sensor.bathroom_motion
from: ‘8’
to: ‘0’
action: - service: light.turn_on
data:
entity_id: light.bathroom_dimmer
brightness: 50
- platform: state
I’m really hoping to get this working smoothly. Maybe I need to revisit how I’m structuring my automations or explore alternative methods. I’m open to any suggestions or resources that could help me refine this setup. Thanks in advance for your guidance and support!