Andre0512 / hon

Home Assistant integration for Haier hOn: support for Haier/Candy/Hoover home appliances like washing machines and air conditioners in 28 languages.
MIT License
1.29k stars 2.47k forks source link

2024-10-28 13:33:39.023 WARNING (Dummy-41) [homeassistant.helpers.frame] Detected that custom integration 'hon' calls async_write_ha_state from a thread other than the event loop, which may cause Home Assistant to crash or data to corrupt. For more information, see https://developers.home-assistant.io/docs/asyncio_thread_safety/#async_write_ha_state at custom_components/hon/sensor.py, line 849: self.async_write_ha_state(), please report it to the author of the 'hon' custom integration #258

Closed FedericoBS closed 29 minutes ago

FedericoBS commented 1 hour ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

Additional context Add any other context about the problem here.

Home Assistant Logs Check System -> Logs if you can find any logs related to this integration and post it here.

Device Log Post your device info here (if available)

  1. Enable the "Show Device Info" button This button can be found in the diagnostic section of your device or in the entity overview if "show disabled entities" is enabled.
  2. Press the button to create a notification
  3. Open home assistant notifications and copy the message (Crtl+A, Ctrl+C)

Data Archive For further analysis, please add your appliance data archive here (if available) Navigate to Settings -> Device & Services -> Haier hOn -> your device and press the Create Data Archive button. Then open notifications to download the data zip archive. To attach the file:

FedericoBS commented 1 hour ago

wd_1313.zip

core 2024.10.4 supervisor 2024.10.3 os 13.2 frontend 20241002.4

Notifiche Lavasciuga Device Info


data:
  additional_data:
    dictionaryId: 286
    options: hygiene
  appliance:
    PK: user#eu-west-1:f6f83716-204c-43e8-8647-2fdbece91418
    SK: app#xx-xx-xx-xx-xx-xx
    applianceId: xx-xx-xx-xx-xx-xx#1970-01-01T00:00:00.0Z
    applianceModelId: 1313
    applianceStatus: 1
    applianceTypeId: 2
    applianceTypeName: WD
    attributes:
      acuVersion: 0.0.0
      chipset: 1
      dictionaryId: 286
      eppParserSet: 1
      fwLabel: iotfw_epp
      idfVersion: 4.4.4
      kernelVersion: 10.4.3
      lang: it-IT
      uiVersion: 23.04.13
    autoDetergentStatus: True
    autoSoftenerStatus: False
    brand: hoover
    code: CE0JPLE0200
    connectivity: wifi|ble
    defaultWarrantyYears: 2
    eepromId: 41
    eepromName: no_eeprom
    enrollmentDate: 1970-01-01T00:00:00.0Z
    firstEnrollment: True
    firstEnrollmentTBC: True
    fwVersion: 5.15.0
    id: 1313
    lastUpdate: 1970-01-01T00:00:00.0Z
    macAddress: xx-xx-xx-xx-xx-xx
    modelName: H7D 4128MBC-S
    nickName: Lavasciuga
    purchaseDate: 1970-01-01T00:00:00.0Z
    sections:
      chatbot: True
      demo: True
      double_pairing_hidden: True
      ecoDelayStart: True
      snap_wash: True
      statistics_wm_wd_eco_delay: True
      statistics_wm_wd_instant_consumption: True
      statistics_wm_wd_loading_percentage: True
      statistics_wm_wd_most_used_programs: True
      statistics_wm_wd_programs_counter: True
      statistics_wm_wd_temperature_usage: True
    series: h-wash700Pro
    sfPersonAccountId: 0016800000V8jsYAAR
    topics:
      publish:
      subscribe:
        - $aws/events/presence/disconnected/xx-xx-xx-xx-xx-xx
        - $aws/events/presence/connected/xx-xx-xx-xx-xx-xx
        - haier/things/xx-xx-xx-xx-xx-xx/event/appliancestatus/update
        - haier/things/xx-xx-xx-xx-xx-xx/event/discovery/update
    waterHard: 2
  attributes:
    active: True
    activity:
      activityExecutionStarted: 2024-10-28 12:02:59
      activityStarted: 1970-01-01T00:00:00.0Z
      applianceTypeName: WD
      attributes:
        anticrease: 1
        appVersion: 2.6.5
        autoDetergentStatus: 0
        autoSoftenerStatus: 1
        channel: mobileApp
        delayStatus: 0
        delayTime: 0
        deviceModel: pyhOn
        dirtyLevel: 2
        dryLevel: 1
        dryProgFlag: 0
        dryTime: 1
        dryType: S
        energyLabel: 0
        extraRinse1: 1
        extraRinse2: 0
        extraRinse3: 0
        lang: 1
        liquidDetergentDose: 2
        mobileOs: android
        nightWashStatus: 0
        origin: standardProgram
        osVersion: 999
        permanentPressStatus: 1
        powderDetergentDose: 2
        prCode: 205
        prPosition: 5
        prewash: 0
        principalUserId: 0016800000V8jsYAAR
        programFamily: [download]
        programName: IOT_WASH_100_CUSTOM_WASH
        programType: W+D
        remainingTimeMM: 194
        remoteCtrValid: 1
        spinSpeed: 1000
        stainType: 0
        suggestedLoadW: 6
        suggestedLoadWD: 4
        temp: 40
        waterHard: 2
      category: CYCLE
      macAddress: xx-xx-xx-xx-xx-xx
      resultCode: 0
      ttl: 1737892980
    commandHistory:
      command:
        ancillaryParameters:
          delayStatus: 0
          dryType: S
          energyLabel: 4
          liquidDetergentDose: 2
          powderDetergentDose: 2
          prPosition: 5
          programFamily: [download]
          programType: W+D
          remoteActionable: 1
          remoteVisible: 1
          suggestedLoadW: 6
          suggestedLoadWD: 4
          tempContribution: 1
        applianceOptions:
          opt1: prewash
          opt2: hygiene
          opt3: anticrease
          opt4: goodNight
          opt5: extraRinse1
          opt6: extraRinse2
          opt7: extraRinse3
          opt8: acquaplus
        applianceType: WD
        attributes:
          channel: mobileApp
          energyLabel: 0
          origin: standardProgram
        commandName: startProgram
        device:
          appVersion: 2.6.5
          deviceModel: pyhOn
          mobileId: homassistant
          mobileOs: android
          osVersion: 999
        macAddress: xx-xx-xx-xx-xx-xx
        parameters:
          antiAllergyStatus: 0
          anticrease: 1
          autoDetergentStatus: 0
          autoSoftenerStatus: 1
          childLock: 0
          creaseResistSoakStatus: 0
          delayTime: 0
          dirtyLevel: 2
          dryLevel: 1
          dryProgFlag: 0
          dryTime: 1
          extraRinse1: 1
          extraRinse2: 0
          extraRinse3: 0
          highWaterLevelStatus: 0
          nightWashStatus: 0
          operationName: grCHGWash
          permanentPressStatus: 1
          prCode: 205
          prewash: 0
          silentMode: 0
          spinSpeed: 1000
          steamWashStatus: 0
          temp: 40
          texture: 6
          weight: 5
        programName: PROGRAMS.WM_WD.IOT_WASH_100_CUSTOM_WASH
        timestamp: 1970-01-01T00:00:00.0Z
        transactionId: xx-xx-xx-xx-xx-xx_1970-01-01T00:00:00.0Z
      timestampAccepted: 1970-01-01T00:00:00.0Z
      timestampExecuted: 1970-01-01T00:00:00.0Z
    lastConnEvent:
      category: CONNECTED
      instantTime: 1970-01-01T00:00:00.0Z
      macAddress: xx-xx-xx-xx-xx-xx
      timestampEvent: 1730116683910
    parameters:
      airWashTempLevel: 0
      airWashTime: 0
      antiAllergyStatus: 0
      anticrease: 1
      autoDetergentStatus: 0
      autoSoftenerStatus: 1
      buzzerDisabled: 0
      creaseResistSoakStatus: 0
      currentElectricityUsed: 0.67
      currentWaterUsed: 25
      debugEnabled: 0
      delayTime: 0
      detPreW: 0
      detWarn: 0
      detergentPercent: 0
      detergentType: 1
      dirtyLevel: 2
      doorLockStatus: 1
      doorStatus: 0
      dryLevel: 1
      dryStatus: 1
      dryTime: 84
      errors: 00
      extraRinse1: 0
      extraRinse2: 0
      extraRinse3: 0
      fillR: 100
      highTransRate: 1
      highWaterLevelStatus: 0
      lang: 1
      laundryCycleStatus: 1
      lockStatus: 0
      loosenStatus: 1
      machMode: 2
      message: 0
      nightWashStatus: 0
      onOffStatus: 1
      pause: 0
      permanentPressStatus: 1
      prCode: 205
      prPhase: 2
      prewash: 0
      program1: 16
      program10: 0
      program11: 1
      program12: 2
      program13: 0
      program14: 2
      program15: 3
      program16: 1
      program17: 0
      program18: 0
      program19: 0
      program2: 0
      program20: 0
      program21: 0
      program22: 0
      program23: 1
      program24: 0
      program25: 1
      program26: 0
      program27: 0
      program28: 0
      program29: 4
      program3: 0
      program30: 0
      program31: 0
      program32: 2
      program33: 0
      program34: 0
      program35: 0
      program4: 0
      program5: 2
      program6: 1
      program7: 2
      program8: 0
      program9: 0
      programStats: 10;;;;2;1;2;;;;1;2;;2;3;1;;;;;;;1;;1;;;;4;;;2
      recommendedDetergentDoseL: 0
      recommendedDetergentDoseP: 0
      remainingRinseIterations: 2
      remainingStandbyTime: 80
      remainingTimeMM: 140
      remoteCtrValid: 1
      silentMode: 0
      softPreW: 0
      softWarn: 0
      spinSpeed: 1000
      stainType: 0
      standbyTimeExtended: 1
      statusSyncRate: 1440
      stdTransRate: 1
      steamStatus: 0
      temp: 40
      temp0to30: 8
      temp40: 24
      temp60to90: 6
      testCmdReceiveStatus: 0
      texture: 6
      totalElectricityUsed: 73.31
      totalWashCycle: 32
      totalWaterUsed: 5666
      transMode: 0
      waterHard: 2
    pause: False
    programName: synthetic_and_coloured
    resultCode: 0
  pauseProgram:
    parameters:
      pause: 1
  resumeProgram:
    parameters:
      pause: 0
  settings:
    custom:
      category: setConfig
    parameters:
      httpEndpoint: 0
      mqttEndpoint: 0
  startProgram:
    ancillaryParameters:
      delayStatus: 0
      dryType: C
      energyLabel: 3
      liquidDetergentDose: 4
      powderDetergentDose: 4
      prPosition: 1
      programCluster: traditional
      programFamily: [dashboard]
      programIntensity: intensiveWashing
      programType: W+D
      remoteActionable: 1
      remoteVisible: 1
      suggestedLoadW: 12
      suggestedLoadWD: 8
      tempContribution: 1
    custom:
      favourite: 1
      program: Cotone
    parameters:
      antiAllergyStatus: 0
      anticrease: 1
      autoDetergentStatus: 0
      autoSoftenerStatus: 1
      childLock: 0
      creaseResistSoakStatus: 0
      delayTime: 0
      dirtyLevel: 2
      dryLevel: 1
      dryProgFlag: 0
      dryTime: 30
      extraRinse1: 1
      extraRinse2: 0
      extraRinse3: 0
      highWaterLevelStatus: 0
      nightWashStatus: 0
      operationName: grCHGWash
      permanentPressStatus: 1
      prCode: 205
      prewash: 0
      silentMode: 0
      spinSpeed: 1000
      steamWashStatus: 0
      temp: 40
      texture: 6
      weight: 5
    remainingTimes:
      remainingTime: 163
  statistics:
    drawerCleaning:
      count: 38
      percentage: 38
      remaining: 62
      tot: 100
    drumCleaning:
      count: 38
      percentage: 38
      remaining: 62
      tot: 100
    filterCleaning:
      count: 38
      percentage: 38
      remaining: 62
      tot: 100
    lastCheckup: 1970-01-01T00:00:00.0Z
    loadingPercentage:
      - current: 0
        date: 1970-01-01T00:00:00.0Z
        max: 0
      - current: 0
        date: 1970-01-01T00:00:00.0Z
        max: 0
      - current: 0
        date: 1970-01-01T00:00:00.0Z
        max: 0
      - current: 0
        date: 1970-01-01T00:00:00.0Z
        max: 0
      - current: 8
        date: 1970-01-01T00:00:00.0Z
        max: 8
    mostUsedPrograms:
      - count: 7
        prCode: 201
        prPosition: 1
        programName: PROGRAMS.WM_WD.IOT_WASH_BATHROBE
        programType: W+D
      - count: 6
        prCode: 201
        prPosition: 1
        programName: PROGRAMS.WM_WD.IOT_WASH_COLORED_ANTI_STAIN
        programType: W+D
      - count: 4
        prCode: 229
        prPosition: 29
        programName: PROGRAMS.WM_WD.IOT_WASH_ANTI_MITES
        programType: W+D
      - count: 3
        prCode: 215
        prPosition: 15
        programName: PROGRAMS.WM_WD.ALL_IN_ONE_49
        programType: W+D
      - count: 2
        prCode: 201
        prPosition: 1
        programName: PROGRAMS.WM_WD.COTTONS
        programType: W+D
    programsCounter: 39
    resultCode: 0
    temperatureUsage:
      temp0to30: 9
      temp40: 24
      temp60to90: 6
  stopProgram:
    parameters:
      onOffStatus: 0
commands:
  settings:
    category:
      - setConfig
  startProgram:
    anticrease:
      max: 1
      min: 0
      step: 1
    autoDetergentStatus:
      max: 1
      min: 0
      step: 1
    autoSoftenerStatus:
      max: 1
      min: 0
      step: 1
    creaseResistSoakStatus:
      max: 1
      min: 0
      step: 1
    delayStatus:
      max: 1
      min: 0
      step: 1
    delayTime:
      max: 1410
      min: 0
      step: 30
    dirtyLevel:
      max: 3
      min: 1
      step: 1
    dryLevel:
      max: 4
      min: 0
      step: 1
    dryProgFlag:
      max: 1
      min: 0
      step: 1
    dryTime:
      max: 120
      min: 0
      step: 30
    energyLabel:
      max: 5
      min: 3
      step: 1
    extraRinse1:
      max: 1
      min: 0
      step: 1
    extraRinse2:
      max: 1
      min: 0
      step: 1
    extraRinse3:
      max: 1
      min: 0
      step: 1
    nightWashStatus:
      max: 1
      min: 0
      step: 1
    permanentPressStatus:
      max: 1
      min: 0
      step: 1
    prewash:
      max: 1
      min: 0
      step: 1
    program:
      - 100% Su Misura
      - 20_degrees_new_energy_label
      - Accappatoi e Spugne
      - Anti-acari
      - Antimacchia colorati
      - Autocare
      - Camicie
      - Cotone
      - Lavasciuga 59'
      - Lenzuola Colorate
      - Rapid Care 44'
      - active_wash
      - all_in_one_49
      - all_in_one_59
      - allergy_care_pro
      - autocare
      - autoclean
      - care_14
      - care_30
      - care_44
      - cottons
      - drain_spin
      - eco_40_60_new_energy_label
      - fitness_care
      - handwash_wool
      - high_dry
      - iot_checkup
      - iot_dry_air_refresh
      - iot_dry_anti_mites
      - iot_dry_baby
      - iot_dry_backpacks
      - iot_dry_bathrobe
      - iot_dry_bed_linen
      - iot_dry_cotton_dry
      - iot_dry_cuddly_toys
      - iot_dry_curtains
      - iot_dry_dehumidifier
      - iot_dry_delicate_tablecloths
      - iot_dry_delicates_antiallergy
      - iot_dry_denim_jeans
      - iot_dry_easy_iron_cotton
      - iot_dry_easy_iron_synthetics
      - iot_dry_gym_fit
      - iot_dry_lingerie
      - iot_dry_mixed_dry
      - iot_dry_rapid_60_min_delicates
      - iot_dry_shirts
      - iot_dry_swimsuits_and_bikinis
      - iot_dry_synthetic_dry
      - iot_dry_tablecloths
      - iot_dry_technical_fabrics
      - iot_dry_warm_embrace
      - iot_dry_wool_dry
      - iot_wash_100_custom_wash
      - iot_wash_and_dry
      - iot_wash_anti_mites
      - iot_wash_baby_sanitizer
      - iot_wash_backpacks
      - iot_wash_bathrobe
      - iot_wash_bed_linen
      - iot_wash_big_single_load
      - iot_wash_bleaching
      - iot_wash_blood_stains
      - iot_wash_cashmere
      - iot_wash_chocolate_stains
      - iot_wash_cold_wash
      - iot_wash_colored
      - iot_wash_colored_anti_stain
      - iot_wash_colored_delicate
      - iot_wash_coloured
      - iot_wash_coloured_bed_linen
      - iot_wash_coloured_curtains
      - iot_wash_coloured_shirts
      - iot_wash_coloured_tableclothes
      - iot_wash_cotton
      - iot_wash_cuddly_toys
      - iot_wash_curtains
      - iot_wash_dark
      - iot_wash_darks_and_coloured_44
      - iot_wash_darks_and_coloured_59
      - iot_wash_darks_and_coloured_xl
      - iot_wash_dash_clean_cycle
      - iot_wash_dash_cold_cycle
      - iot_wash_dash_fresh_cycle
      - iot_wash_delicate
      - iot_wash_delicate_antiallergy
      - iot_wash_delicate_colors
      - iot_wash_delicate_dark
      - iot_wash_delicate_tablecloths
      - iot_wash_delicate_whites
      - iot_wash_denim_jeans
      - iot_wash_diving_suits
      - iot_wash_down_jackets
      - iot_wash_duvet
      - iot_wash_fruit_stains
      - iot_wash_handwash
      - iot_wash_handwash_colored
      - iot_wash_handwash_dark
      - iot_wash_lingerie
      - iot_wash_masks_refresh
      - iot_wash_masks_sanification
      - iot_wash_mats
      - iot_wash_men_s_trousers
      - iot_wash_mix_and_coloured_44
      - iot_wash_mix_and_coloured_59
      - iot_wash_mix_and_coloured_xl
      - iot_wash_mixed
      - iot_wash_new_clothes
      - iot_wash_perfect_white
      - iot_wash_pets
      - iot_wash_pets_hair_removal
      - iot_wash_pets_odours_stains_removal
      - iot_wash_playsuits
      - iot_wash_quick_drum_cleaner
      - iot_wash_rapid_14
      - iot_wash_rapid_30
      - iot_wash_rapid_44
      - iot_wash_rapid_59
      - iot_wash_resistant_colored
      - iot_wash_resistant_dark
      - iot_wash_resistant_whites
      - iot_wash_rinse
      - iot_wash_shirts
      - iot_wash_silk
      - iot_wash_ski_suit
      - iot_wash_spin
      - iot_wash_sport
      - iot_wash_sport_anti_odor
      - iot_wash_stains_remover
      - iot_wash_super_saving
      - iot_wash_swimsuits_and_bikinis
      - iot_wash_synthetic
      - iot_wash_tablecloths
      - iot_wash_technical_fabrics
      - iot_wash_technical_jackets
      - iot_wash_trainers
      - iot_wash_whites
      - iot_wash_whites_44
      - iot_wash_whites_59
      - iot_wash_whites_xl
      - iot_wash_wine_stains
      - iot_wash_wool
      - low_dry
      - night_and_day
      - rapid_wash_and_dry_59_min
      - rinse
      - soft_care
      - steam_care_pro_cotton
      - steam_care_pro_delicates
      - steam_care_pro_synthetic
      - synthetic_and_coloured
      - tumbling
      - wool_dry
    programCluster:
      - delicate
      - quick
      - traditional
      - delicate_quick_traditional
    programFamily:
      - dashboard
      - hidden
      - guided
      - dashboard_hidden_guided
    silentMode:
      max: 1
      min: 0
      step: 1
    spinSpeed:
      - 0
      - 400
      - 600
      - 800
      - 1000
      - 1200
      - 1400
    temp:
      - 0
      - 20
      - 30
      - 40
      - 60
      - 90
szczukot commented 40 minutes ago

Duplicated https://github.com/Andre0512/hon/issues/243

FedericoBS commented 29 minutes ago

ops. sorry!