Hey everyone, I wanted to share my recent project where I set up an automated lighting system based on room humidity. It’s been a fun challenge and I thought I’d walk through my process in case anyone else is looking to do something similar or just wants some tips!
So, the goal was simple: have my lights automatically adjust their brightness based on the room’s humidity level. I have a sensor.multi_sensor that tracks humidity from 0-100%, and a Qubino dimmer 0-10V connected to my lighting system. The idea is that when humidity increases, the lights dim slightly, and when it decreases, they brighten up. It’s a subtle effect, but I think it adds a nice touch to the room’s ambiance.
The Setup:
I started by checking if my devices were correctly paired and recognized by my system. Once that was confirmed, I moved on to creating the automation rule. I used the state platform trigger for the sensor, which would monitor any changes in humidity. The action was straightforward: set the dimmer’s level based on the sensor’s value, scaled appropriately since the sensor outputs 0-100% and the dimmer uses 0-255.
The Challenge:
At first, I wasn’t sure if I was mapping the values correctly. I tried a few different calculations, but the lights weren’t responding as expected. After some research and a bit of trial and error, I landed on the formula sensor.multi_sensor * 255/100. This seemed to give a smooth transition between brightness levels without any abrupt jumps.
The Outcome:
Now, whenever the humidity changes, the lights adjust automatically. It’s a small detail, but it makes a big difference in how comfortable the room feels. Plus, seeing the automation work perfectly every time is pretty satisfying!
Tips for Others:
- Test Incrementally: Don’t try to set everything up at once. Test each part of your system separately to make sure it’s working before moving on to the next.
- Understand Your Devices: Take the time to understand the ranges and outputs of your sensors and actuators. This will save you a lot of frustration down the line.
- Keep It Simple: Unless you’re aiming for something complex, start with a basic setup and build from there. It’s easier to troubleshoot and refine.
I’d love to hear about anyone else’s automation projects, especially if they involve environmental sensors or lighting systems. What cool automations have you set up recently? Let’s share and inspire each other!