- Add complete homeassistant skill source to skills/ directory - Includes all scripts, references, and automation templates - Matches format of other skills in repository
33 lines
993 B
YAML
33 lines
993 B
YAML
automation:
|
|
- alias: "Temperature-Based Climate Control"
|
|
id: climate_control_template
|
|
description: "Adjust climate control based on temperature"
|
|
|
|
trigger:
|
|
- trigger: numeric_state
|
|
entity_id: sensor.REPLACE_WITH_TEMPERATURE_SENSOR
|
|
below: 19 # Adjust threshold temperature
|
|
|
|
condition:
|
|
# Optional: Only when someone is home
|
|
- condition: state
|
|
entity_id: person.REPLACE_WITH_PERSON
|
|
state: "home"
|
|
|
|
action:
|
|
- action: climate.set_hvac_mode
|
|
target:
|
|
entity_id: climate.REPLACE_WITH_CLIMATE_DEVICE
|
|
data:
|
|
hvac_mode: heat # heat, cool, heat_cool, off, etc.
|
|
|
|
- action: climate.set_temperature
|
|
target:
|
|
entity_id: climate.REPLACE_WITH_CLIMATE_DEVICE
|
|
data:
|
|
temperature: 21 # Target temperature
|
|
|
|
- action: notify.notify
|
|
data:
|
|
message: "Heating turned on. Temperature: {{ states('sensor.REPLACE_WITH_TEMPERATURE_SENSOR') }}°C"
|