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

Adding/finding recipes #51

Open
hearttheart opened this issue Sep 21, 2022 · 10 comments
Open

Adding/finding recipes #51

hearttheart opened this issue Sep 21, 2022 · 10 comments

Comments

@hearttheart
Copy link

Hi,

would really love to use the add-on, but don't know how I can add specific recipes I'm using currently (for instance basmati)?

Thank you!

@syssi
Copy link
Owner

syssi commented Sep 24, 2022

Could you tell me the model of your cooker? The recipes are model specific.

@hearttheart
Copy link
Author

It's a IHFB01CM
Looking for recipes for jasmine and basmati

@syssi
Copy link
Owner

syssi commented Sep 24, 2022

These are all recipes which are hardcoded into the android app (model normal1/normal2). Additional recipes can be retrieved from a remote server.

[
"010088010001000028000012000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000280a003c00089178320600001e8278666e041000826e00690fff96666e0469100082826e0069100069005a00000000000000b267",
"01010908000c000600000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000280a0f270300915573000000008278736e001000756e0028050075826e002810ff75276e0228100069005a00000000000000b9bf",
"010224001e001e001e010540000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000280a003c000f91416e080000008278736e001000756e00690f0c75506e0669100082826e08691000690250040000000000005fc3",
"010326001e0100000a010540000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000280a003c001e9155730e0000008278736e001000756e00690a0075826e006910ff756e6e0869100069005a000000000000000878",
"0003e2011e040000280080000190551c0601001e00000000000001b8551c0601002300000000000001e0561c0600002e000000000000ffff571c0600003000000000000000280a0082001e914e730e01001e82ff736e0610ff756e02690a1e75826e0269100f75826e0269100069005a0000000000000000cb",
"00040c180018000001000045000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000280a0082001e914e730801001e82ff736e0610ff756e02690a0f75826e0169101e75826e0169100069005a000000000000001ba2",
"0001e101000000000000800200a000690301037300000c5a020000eb006b0401037400000d5a0400012d006e0501037400000e5a0401ffff00700601047600000e5a0401052d0a123c0a1e91ff820e01ff05ff78826eff10ff786e02690f0dff826eff691000ff826eff69100069ff5aff00000000000091cc",
"0001e101000000000000800200a00069030103730000085a020000eb006b040103740000095a0400012d006e0501037400000a5a0401ffff00700601047600000c5a0401052d0a0f3c0a1e91ff820e01ff05ff78826eff10ff786e02690f0dff826eff691000ff826eff69100069ff5aff00000000000081e9",
"0001e101000000000000800200a00069030103730000065a020000eb006b040103740000075a0400012d006e050103740000085a0401ffff00700601047600000a5a0401052d0a0c3c0a1e91ff820e01ff05ff78826eff10ff786e02690f0dff826eff691000ff826eff69100069ff5aff000000000000348f",
"0002e100280000000000800200d20069030103730000075a0200012d006b040103740000075a02000182006e050003740000095a0401ffff0070060004760000095a040100280a063c0d1e91ff820e01ff05ff78826eff10ff786e02690f0dff826eff69100082826eff69100069ff5aff0000000000009ede",
"0001e101000000000000800200a000690301037300000c5a020000eb006b0401037400000d5a0400012d006e0401047600000e5a0401ffff00700601047600000e5a0401052d0a123c0a1e91ff820e01ff05ff78826eff10ff786e02690f0dff826eff691000ff826eff69100069ff5aff0000000000008b71",
"0001e101000000000000800200a00069030103730000085a020000eb006b040103740000095a0400012d006e0401047600000a5a0401ffff00700601047600000c5a0401052d0a0f3c0a1e91ff820e01ff05ff78826eff10ff786e02690f0dff826eff691000ff826eff69100069ff5aff0000000000009b54",
"0001e101000000000000800200a00069030103730000065a020000eb006b040103740000075a0400012d006e040104760000085a0401ffff00700601047600000a5a0401052d0a0c3c0a1e91ff820e01ff05ff78826eff10ff786e02690f0dff826eff691000ff826eff69100069ff5aff0000000000002e32",
"0002e100280000000000800200d20069030103730000075a0200012d006b040103740000075a02000182006e050003740000095a0401ffff0070060004760000095a040100280a063c0d1e91ff820e01ff05ff78826eff10ff786e02690f0dff826eff69100082826eff69100069ff5aff0000000000009ede",
"0104E1010A0000000000800200A00069030102780000085A020000EB006B040102780000085A0400012D006E0501027D0000065A0400FFFF00700601027D0000065A0400052D0A0F3C0A1E91FF820E01FF05FF78826EFF10FF786E02690F1EFF826EFF691400FF826EFF69100069FF5AFF00000000000042A7"
]

Recipe number 7, 8, 9, 10, 5 and 6 are assigned to buttons (riceId: 1). In case of riceId 2 the recipes 11, 12, 13, 14, 5 and 6 are applied. Does this help already? It's a bit hard to identify the name of each recipe.

@syssi
Copy link
Owner

syssi commented Sep 24, 2022

I have found my records from the past again: https://github.com/rytilahti/python-miio/blob/master/miio/data/cooker_profiles.json

Please use the recipes from the MODEL_NORMAL1 section.

@hearttheart
Copy link
Author

Thank you, that kind of helps. Any information on how the other recipes can be retrieved from the remote server?

@syssi
Copy link
Owner

syssi commented Sep 24, 2022

You could try to use mitmproxy to capture some traffic. What do you think?

@hearttheart
Copy link
Author

Unfortunately, that's beyond my skillset. ;-) Thank you for the plugin, though!

@syssi
Copy link
Owner

syssi commented Sep 24, 2022

It looks like the custom recipes feature was removed from the MiHome app (if the german Xiaomi Cloud is used).Do you see more feature if you use the chinese server?

mihome-cooker

@hearttheart
Copy link
Author

Yes -

Server: China / Language: English: There are a couple more recipes (also for "Thai rice")
Server: China / Language: Chinese: Huge variety of recipes, camera function (for scanning bar codes) is also available.

The device has to be re-registered if the country is switched.

@madmalkav
Copy link

Following this, as I'm trying to find out how to make my device to cook western rice to western tastes 😅

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

3 participants