Skip to content

Advanced Use Cases Dynamic Temperature Thresholds

Jason Rhubottom edited this page May 7, 2026 · 2 revisions

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.


Step 1: Create the helpers

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: 25

Step 2: Wire the automation

automation:
  - 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.

Extending to outdoor threshold

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 }}"

Adding a dashboard card

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.


Related pages

Clone this wiki locally