shenxn / ha-dyson

HomeAssitant custom integration for dyson
MIT License
312 stars 59 forks source link

Temperature trigger lags for several hours #132

Closed MrXlebNick closed 2 years ago

MrXlebNick commented 2 years ago

The automation is configured to be triggered when the temperature rises above 24 degrees, and it was triggered several hours after it actually happened.

The integration information: image

The configuration of the automation:

alias: Dyson - Turn on when too hot
description: ''
trigger:
  - platform: device
    device_id: 3c67276f07b37446e07791c0d8b441bb
    domain: climate
    entity_id: climate.pure_hot_cool_link
    type: current_temperature_changed
    above: 24
condition: []
action:
  - device_id: 3c67276f07b37446e07791c0d8b441bb
    domain: fan
    entity_id: fan.pure_hot_cool_link
    type: turn_on
  - device_id: 3c67276f07b37446e07791c0d8b441bb
    domain: climate
    entity_id: climate.pure_hot_cool_link
    type: set_hvac_mode
    hvac_mode: cool
mode: single

Temperature graph: image

Dyson's on/off timeline: image

The event that has turned the Dyson on: image Changed variables:

this:
  entity_id: automation.new_automation
  state: 'on'
  attributes:
    last_triggered: '2022-04-26T12:37:40.891183+00:00'
    mode: single
    current: 0
    id: '1650976349607'
    friendly_name: Dyson - Turn on when too hot
  last_changed: '2022-04-26T13:32:47.136634+00:00'
  last_updated: '2022-04-26T13:32:47.136634+00:00'
  context:
    id: 517382f678ea857a07bd3319d09cda2e
    parent_id: null
    user_id: null
trigger:
  id: '0'
  idx: '0'
  platform: device
  entity_id: climate.pure_hot_cool_link
  below: null
  above: 24
  from_state:
    entity_id: climate.pure_hot_cool_link
    state: 'off'
    attributes:
      hvac_modes:
        - 'off'
        - cool
        - heat
      min_temp: 1
      max_temp: 37
      fan_modes:
        - focus
        - diffuse
      current_temperature: 21.8
      temperature: 26
      current_humidity: 25
      fan_mode: focus
      hvac_action: 'off'
      friendly_name: Pure Hot+Cool Link
      supported_features: 9
    last_changed: '2022-04-26T13:20:23.545745+00:00'
    last_updated: '2022-04-26T13:21:08.048654+00:00'
    context:
      id: 673cefc1ec85229d2a2df892b9c1bfc9
      parent_id: null
      user_id: null
  to_state:
    entity_id: climate.pure_hot_cool_link
    state: 'off'
    attributes:
      hvac_modes:
        - 'off'
        - cool
        - heat
      min_temp: 1
      max_temp: 37
      fan_modes:
        - focus
        - diffuse
      current_temperature: 26.1
      temperature: 26
      current_humidity: 24
      fan_mode: focus
      hvac_action: 'off'
      friendly_name: Pure Hot+Cool Link
      supported_features: 9
    last_changed: '2022-04-26T13:20:23.545745+00:00'
    last_updated: '2022-04-26T17:07:42.048862+00:00'
    context:
      id: f8657a6d59f8214044eb1bc680637cc9
      parent_id: null
      user_id: null
  for: null
  description: numeric state of climate.pure_hot_cool_link
MrXlebNick commented 2 years ago

Possibly my mistake, it seems to work quite well when I replace the corresponding values in the trigger with these:

    entity_id: sensor.pure_hot_cool_link_temperature
    domain: sensor

I will monitor it for a while and get back to you if the issue still persists

MrXlebNick commented 2 years ago

Yep, seems to work