hon icon indicating copy to clipboard operation
hon copied to clipboard

h0n entities are not refreshing properly

Open look791 opened this issue 7 months ago • 6 comments

there are some diffs between diagnostic/sensor status data in entities shared by h02 integration and native h0n application from haier, for example elapsed time or machine status, in attached screen there is diff 12min(h0n app) vs 14min(HA)

Image Image Image

look791 avatar May 26 '25 11:05 look791

I have the same problem. I am using a Haier air conditioner. The temperature does not update. The commands work well.

v0.14.0 Core 2025.5.3 Supervisor 2025.05. Operating System 15.2 Frontend 20250516.0

mdolejsi1 avatar May 29 '25 05:05 mdolejsi1

Following for the fix. Entities are not updating unless manually reloaded the integration

jnparungao avatar May 29 '25 16:05 jnparungao

Yes, I confirm that. So the solution is a script (automation) to reload the entire integration, for example, every minute?

mdolejsi1 avatar May 29 '25 16:05 mdolejsi1

could you share this script? working well?

look791 avatar May 30 '25 13:05 look791

I have automation. The base is an entity that I query for status and thus force an integration update. Advantage: it works :) Disadvantage: Load time is 30s There are no values in the lovelace at the time of loading (30s)

‐--‐-------------- automation-------------------

alias: Pravidelné znovunačtení integrace Haier (flexibilní interval) triggers:

  • minutes: /5 seconds: 0 id: trigger_5_min trigger: time_pattern
  • seconds: 0 id: trigger_60_min trigger: time_pattern hours: /1 conditions: [] actions:
  • choose:
    • conditions:
      • condition: trigger id: trigger_5_min
      • condition: time after: "06:00:00" before: "22:00:00" sequence:
      • target: entity_id: sensor.obyvaci_pokoj_cilova_teplota data: {} alias: Znovunačtení Haier (den - každých 5 min) action: homeassistant.reload_config_entry
    • conditions:
      • condition: trigger id: trigger_60_min
      • condition: or conditions:
        • condition: time after: "22:00:00"
        • condition: time before: "06:00:00" sequence:
      • target: entity_id: sensor.obyvaci_pokoj_cilova_teplota data: {} alias: Znovunačtení Haier (noc - každých 60 min) action: homeassistant.reload_config_entry mode: single

mdolejsi1 avatar May 31 '25 04:05 mdolejsi1

I disabled unused entities. The integration update speed is shorter.

mdolejsi1 avatar May 31 '25 04:05 mdolejsi1