Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Program phase does not trigger automation #143

Open
itnassol opened this issue Jul 18, 2024 · 8 comments
Open

Program phase does not trigger automation #143

itnassol opened this issue Jul 18, 2024 · 8 comments

Comments

@itnassol
Copy link

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.

@deezid
Copy link

deezid commented Jul 20, 2024

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

@deezid
Copy link

deezid commented Jul 20, 2024

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

@itnassol
Copy link
Author

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.

@deezid
Copy link

deezid commented Jul 21, 2024

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

@deezid
Copy link

deezid commented Jul 21, 2024

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

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

@deezid
Copy link

deezid commented Jul 21, 2024

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') }}

@gvigroux
Copy link
Owner

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)

@Breakingx
Copy link

Breakingx commented Oct 1, 2024

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants