gvigroux / hon

Support of all Haier, Candy, Hoover appliances integrated in the official hOn mobile app. Direct access to all possible services and parameters
MIT License
118 stars 45 forks source link

Start and end time when launching washing program #86

Closed Heronimonimo closed 1 year ago

Heronimonimo commented 1 year ago

Hi!

What a great integration, especially with the addition of being able to launch specific programs.

Would it be possible to add a start time when calling the default service that sets a program? That would be the last bit I need to replace using the app with my own HA setup.

gvigroux commented 1 year ago

You should be able to do that by using the "delayTime" value. Can you please try ? I think it's the delay before starting in Minutes

Heronimonimo commented 1 year ago

Just tested, this did not work. The machine started directly without any delay. parameters: '{''delayTime'':''120''}' But might be to wrong syntax used.

gvigroux commented 1 year ago

can you please copy/paste the notification giving details about this specific program ? all parameters will be listed

Heronimonimo commented 1 year ago

Here you go:

Program [hqd_eco_40_60_degrees]
Parameters:
delayTime: [0 - 1410] - Default: 0
delayStatus: [0 - 1] - Default: 0
permanentPressStatus: [0 - 1] - Default: 0

Not sure what the delayStatus does. Do you know?

gvigroux commented 1 year ago

I don't know but sounds promising :) I would say: {'delayTime':'10','delayStatus':'1'}

Heronimonimo commented 1 year ago

Tried this, it said minimal increment for delayTime is 30. Then ran it with 30 which still resulted in it starting directly.

gvigroux commented 1 year ago

strange, I do believe the delayTime is in Minute and I guess you also put the delayStatus to 1. Any other parameter like "prTime" ?