Import the Blueprint in your Home-Assistent Installation:
What This Blueprint Does:
This blueprint automatically adjusts your lights based on certain environmental conditions in your home. It keeps an eye on things like the temperature, humidity, and the levels of CO2, formaldehyde, and VOCs (pollutants in the air). Here’s how it works:
- Monitors Sensors: It constantly checks the readings from the sensors in your home that measure the air quality and temperature.
- Triggers Actions: If any of the readings go outside of the safe range (e.g., if the temperature is too high, or the air quality is bad), it does the following:
- Turns on the lights: The RGB strip and light group will turn on with a red color, signaling that something’s wrong.
- Adjusts the brightness of other lights in your home to a moderate level.
- Turns Lights Off: After 10 minutes, the lights will turn off automatically, saving energy.
How It Benefits Users:
- Smart Environmental Control: You don’t have to worry about checking the air quality or temperature all the time. The system does it for you and responds accordingly to make your home safer and more comfortable.
- Automatic Alerts: If things like the temperature or air quality go out of the safe zone, the lights will change color to red, giving you a visual warning.
- Energy Saving: The automation automatically turns off the lights after 10 minutes, so you don’t have to manually turn them off. This helps save electricity.
- Simplicity: The system runs on its own without you needing to intervene. If the conditions are right, the lights adjust automatically based on what the sensors detect.
In simple terms: This blueprint makes your home smarter by automatically adjusting the lights when something in the environment goes wrong, like bad air quality or high temperatures. It saves energy and gives you a visual alert when something needs your attention.
alias: Environmental Control Automation
description: "Automatically control lights based on air quality, temperature, and humidity."
trigger:
- platform: state
entity_id:
- sensor.airbox_formaldehyd
- sensor.airbox_kohlendioxid
- sensor.luftfeuchtigkeit
- sensor.temperatur
- sensor.vocs
action:
- choose:
- conditions:
- condition: numeric_state
entity_id: sensor.temperatur
above: 25
- condition: numeric_state
entity_id: sensor.luftfeuchtigkeit
above: 60
- condition: numeric_state
entity_id: sensor.airbox_kohlendioxid
above: 1000
- condition: numeric_state
entity_id: sensor.airbox_formaldehyd
above: 50
- condition: numeric_state
entity_id: sensor.vocs
above: 150
sequence:
- service: light.turn_on
target:
entity_id:
- light.rgb_strip
- light.lichtgruppe
data:
brightness: 255
rgb_color: [255, 0, 0] # Red for warning conditions
- service: light.turn_on
target:
entity_id:
- light.licht_1
- light.licht_2
- light.licht_3
data:
brightness: 150
- delay: "00:10:00"
- service: light.turn_off
target:
entity_id:
- light.rgb_strip
- light.lichtgruppe
- service: light.turn_off
target:
entity_id:
- light.licht_1
- light.licht_2
- light.licht_3
mode: restart
Note: I’m new to yAML myself so if anything won’t work as expected, please let me know.