hon icon indicating copy to clipboard operation
hon copied to clipboard

Program phase does not trigger automation

Open itnassol opened this issue 1 year ago • 9 comments

So the system lets me start the machine in any program, and when the program is over Washing Machine Program phase changes to ready. It shows ready...

image

If I add that to an automation, there is no option for ready.

image

even if I type it in it doesn't trigger the automation

image

Any ideas? Cheers.

itnassol avatar Jul 18 '24 13:07 itnassol

Same here. Apperantely every single sensor only outputs some random looking numbers. No idea what to do with that :(

deezid avatar Jul 20 '24 14:07 deezid

would really love to know if there is a way to give the numbers of the following sensors some meaning so I can use it for automations and my button card... Screenshot 2024-07-20 at 17 45 01 Screenshot 2024-07-20 at 17 44 32 Screenshot 2024-07-20 at 17 44 20

deezid avatar Jul 20 '24 14:07 deezid

Ok so you can use the numbers to trigger the automations. tried it this morning works well, as far as turning them into something more easy to read, I am sure you can build a template for that, I will try that later and let you know.

itnassol avatar Jul 21 '24 08:07 itnassol

Working on a spreadsheet with the different program and mode codes right now https://docs.google.com/spreadsheets/d/13wfEgifyedUi9tCbetDZ9cWN4MffdONW0luWqEVW7uU/edit?usp=sharing

deezid avatar Jul 21 '24 09:07 deezid

Nvm. The modes are already inside the other integration by @Andre0512

https://github.com/Andre0512/hon/blob/main/custom_components/hon/const.py

deezid avatar Jul 21 '24 09:07 deezid

Screenshot 2024-07-21 at 12 31 26

Sooo, created some new template sensors, optimized for the template helper tool, so they can be added to the device directly. Feel free to use them.

New template sensors:

Washing Machine Program Phase 2:

{% set phase = states('sensor.washing_machine_program_phase') | int %}
{% set phases = {
    0: "ready",
    1: "washing",
    2: "washing",
    3: "spin",
    4: "rinse",
    5: "rinse",
    6: "rinse",
    7: "drying",
    8: "drying",
    9: "steam",
    10: "ready",
    11: "spin",
    12: "weighting",
    13: "weighting",
    14: "washing",
    15: "washing",
    16: "washing",
    17: "rinse",
    18: "rinse",
    19: "scheduled",
    20: "tumbling",
    24: "refresh",
    25: "washing",
    26: "heating",
    27: "washing"
} %}
{{ phases.get(phase, 'unknown') }}

Washing Machine Mode 2:

{% set mode = states('sensor.washing_machine_mode') | int %}
{% set modes = {
    0: "ready",
    1: "ready",
    2: "running",
    3: "pause",
    4: "scheduled",
    5: "scheduled",
    6: "error",
    7: "ready",
    8: "test",
    9: "ending"
} %}
{{ modes.get(mode, 'unknown') }}

Can't find any info about the program codes though... :( Anyway, here is the short version that can be updated in the future: Washing Machine Program Code 2:

{% set program_code = states('sensor.washing_machine_program_code') | int %}
{% set program_codes = {
    124: "Smart",
    136: "Cotton"
} %}
{{ program_codes.get(program_code, 'unknown') }}

deezid avatar Jul 21 '24 09:07 deezid

Hi all, coming back from a long pause. Thanks for all these infos! I decided to return the numerical value because that's the only info I received from hOn app but I agree it's not really user friendly.

I will check how to integrate that (but I only have an AC so I'm not able to test)

gvigroux avatar Sep 10 '24 13:09 gvigroux

Hi all, coming back from a long pause. Thanks for all these infos! I decided to return the numerical value because that's the only info I received from hOn app but I agree it's not really user friendly.

I will check how to integrate that (but I only have an AC so I'm not able to test)

I do have a washing and dryer machine. Let me know if I can help!

Breakingx avatar Oct 01 '24 06:10 Breakingx

Hi, for automation you need to pit in the decimal number in program Mode:

Mode 1 ready 2 running 3 paused 4 scheduled 5 scheduled 6 error 7 finished 8 test 9 ending

For me following yaml Code worked:

image

grizzly1105 avatar Dec 05 '24 19:12 grizzly1105