Skip to content

Configure a timeout to fallback into using the internal temperature sensor

Eric Chavet edited this page Jan 30, 2024 · 1 revision

Caution: this is not compatible with the way to manage internal or external sensor described in this page.

First, import a home assistant temperature sensor:

  - platform: homeassistant
    id: ha_cdeg_sejour_et_cuisine
    entity_id: sensor.cdeg_sejour_et_cuisine
    internal: true
    on_value:
      then:
        - lambda: |-
            id(use_your_heatpump_id).set_remote_temperature(x);

or define a physical sensor:

sensor:
  - platform: pvvx_mithermometer
    mac_address: "A4:C1:38:XX:XX:XX"
    temperature:
      name: Thermometer
      id: temperature
      device_class: temperature
      state_class: measurement
      filters:
        throttle_average: 90s
      on_value:
        then:
          - lambda: 'id(use_your_heatpump_id).set_remote_temperature(x);'

Then just configure the climate component to fallback using internal temperature sensor if no external update is done for a given period. Here we use a 30 minutes timeout.

uart:
  id: HP_UART
  baud_rate: 2400
  tx_pin: GPIO17
  rx_pin: GPIO16

climate:
  - platform: cn105  
    name: ${friendly_name}
    id: "use_your_heatpump_id"
    remote_temperature_timeout: 30min
    update_interval: 10s