-
Notifications
You must be signed in to change notification settings - Fork 14
Advanced Use Cases Dynamic Temperature Thresholds
Adjust temp_low, temp_high, and outside_threshold from a dashboard slider without opening the integration options each time. The adaptive_cover_pro.set_climate service accepts all three fields, validates them, and persists the result across restarts.
In Settings β Helpers β Create Helper β Number, add:
| Helper | Min | Max | Step | Unit | Initial value |
|---|---|---|---|---|---|
input_number.acp_temp_low |
0 | 90 | 0.5 | Β°C | 21 |
input_number.acp_temp_high |
0 | 90 | 0.5 | Β°C | 25 |
Or declare them in configuration.yaml:
input_number:
acp_temp_low:
name: ACP β Low temperature threshold
min: 0
max: 90
step: 0.5
unit_of_measurement: "Β°C"
initial: 21
acp_temp_high:
name: ACP β High temperature threshold
min: 0
max: 90
step: 0.5
unit_of_measurement: "Β°C"
initial: 25automation:
- alias: ACP β sync temperature thresholds from sliders
trigger:
- platform: state
entity_id:
- input_number.acp_temp_low
- input_number.acp_temp_high
condition:
- condition: template
value_template: >
{{ states('input_number.acp_temp_low') | float <
states('input_number.acp_temp_high') | float }}
action:
- service: adaptive_cover_pro.set_climate
target:
entity_id: cover.your_cover # or use area_id / device_id
data:
temp_low: "{{ states('input_number.acp_temp_low') | float }}"
temp_high: "{{ states('input_number.acp_temp_high') | float }}"The condition block is optional. set_climate already rejects calls where temp_low β₯ temp_high with a service error, but the condition prevents the error notification appearing in the HA UI when someone drags the sliders into an invalid state.
Add a third helper (input_number.acp_outside_threshold) and extend the automation:
action:
- service: adaptive_cover_pro.set_climate
target:
entity_id: cover.your_cover
data:
temp_low: "{{ states('input_number.acp_temp_low') | float }}"
temp_high: "{{ states('input_number.acp_temp_high') | float }}"
outside_threshold: "{{ states('input_number.acp_outside_threshold') | float }}"Once the helpers exist, add a standard Entities card or a custom button card pointing at the two input_number entities. HA renders input_number helpers as sliders automatically.
-
Runtime Configuration Services: full
set_climatefield reference - Configuration β Climate: climate mode options UI
- Advanced Use Cases: all advanced use case recipes
π Home Β· β¨ Features Β· π° What's New
π Getting Started
- Installation
- Migrating from Custom Repository
- Migrating from Adaptive Cover
- First-Time Setup
- Cover Types
π§ Core Concepts
π Cover Types
βοΈ Configuration
- Sun Tracking
- Position
- Glare Zones
- Automation
- Custom Position
- Force Override
- Weather Safety
- Climate
- Blindspot
- Summary Screen
- Debug & Diagnostics
π Entities & Services
- Entities
- Proxy Cover Entity
- Position Verification
- My Position Support (Somfy RTS)
- Runtime Configuration Services
π οΈ Operations
π§ Advanced Use Cases
- Dynamic Temperature Thresholds
- Dynamic Tracking Window
- Bedroom Sleep Mode
- Handling Variable Cloud Cover
- Venetian Tilt-Only on Overcast Days
π¨ Dashboard
π§ͺ Testing & Simulation
π Reference
π©βπ» For Developers