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
141 stars 53 forks source link

Feature Request #44

Closed schorschi1981 closed 1 year ago

schorschi1981 commented 1 year ago

Hey Great Work so far do you think there is a way to initiate wash programs via home assistant?

TolianIPB commented 1 year ago

Hello, Thanks a lot for the integration. If the author has time, then I ask you to add the Quartz and Nano Aqua functions for the air conditioner model AS25S2SF1FA . I really want to set up automation for these modes.

Sincerely, all the best!

gvigroux commented 1 year ago

I've added the possibility to send a custom request to any devices; you should be able to do whatever you want. It's only in branch: https://github.com/gvigroux/hon/tree/Full-rework

TolianIPB commented 1 year ago

I've added the possibility to send a custom request to any devices; you should be able to do whatever you want. It's only in branch: https://github.com/gvigroux/hon/tree/Full-rework

Hello, Thanks for your reply. In some HUCK integrations, you can select a branch by clicking on reinstall. I have HaOs and manual GIT Clone does not work correctly. Hardcoding will most likely be overwritten after the integration update. Adding a repository manually also fails, it says that this "gvigroux/hon" repository already exists (the beginning of the link matches).

There may be some other way to change the branch that I don't know about.

It would be very convenient and kind of you if you could select a branch when pressing reinstall.

My thanks.

gvigroux commented 1 year ago

I've updated the main branch :) So just update the code

TolianIPB commented 1 year ago

I've updated the main branch :) So just update the code

Thank you sow much for update. Thre is Helth option in the Phone App and the Helth in remote. Helth turns Quartz and Nano Aqua functions. I made an automatisation for Helth In hOn App. It will be cool to make the same in Home Assistant. I've made upgrade of hOn integration. I've deleted devices and added them again. I fonded many new sesors. But I didn't found Helth, Quartz and Nano Aqua functions. Maybe it's not a priority now for you. But I would be happy if these features someday appear in the integration.

Sincerely

gvigroux commented 1 year ago

I need to analyse some logs to understand. Please add this to the configuration.yaml and restart HA

logger: logs: custom_components.hon: info After go to the log page '/config/logs' and click to access all logs. Share any of the logs starting with: [custom_components.hon.hon] {"payload":

Thanks!

schorschi1981 commented 1 year ago

now im completely lost because im not familiar with coding in home assistant. now i have a binary sensor "remote" but i cant do anything with it. sry ;-)

gvigroux commented 1 year ago

In fact I need some logs to understand how your machine works. You don't have to develop anything :) Are you able to modify your configuration.yaml ?

TolianIPB commented 1 year ago

In any case, thank you very much for your integration. No one has done more for hOn for HA than you.

In fact I need some logs to understand how your machine works. You don't have to develop anything :) Are you able to modify your configuration.yaml ?

Of course, there is no problem to modify the configuration.yaml and collect logs. I will be very glad to be helpful. I have HaOS on Raspberry 4. To be honest, I've been working as a senior system administrator for a long time. Home Assistant is like a hobby for me.

Sincerely

TolianIPB commented 1 year ago

logger: logs: custom_components.hon: info After go to the log page '/config/logs' and click to access all logs. Share any of the logs starting with: [custom_components.hon.hon] {"payload":

I've added this to configuration.yaml and restarted my HA. logger: logs: custom_components.hon: info

I turned on and off the health mode on the air conditioners from the application from the phone. Turned on and off the air conditioners from the Home Assistant.

I have three identical conditioners: kabinet_kondei spalnia_kondei gostevaia_kondei

It was written in the logs - "healthMode":"1"

hOn_log.zip

I really hope this will be helpful.

schorschi1981 commented 1 year ago

In fact I need some logs to understand how your machine works. You don't have to develop anything :) Are you able to modify your configuration.yaml ?

2023-03-26 21:46:32.096 INFO (MainThread) [custom_components.hon.hon] {"payload":{"resultCode":"0","shadow":{"parameters":{"voiceStatus":{"parNewVal":"0","lastUpdate":"2022-12-29T16:01:50Z"},"forceDelete":{"parNewVal":"0","lastUpdate":"2022-12-29T16:01:50Z"},"dryLevel":{"parNewVal":"0","lastUpdate":"2022-12-29T16:01:50Z"},"airWashTime":{"parNewVal":"0","lastUpdate":"2022-12-29T16:01:50Z"},"softWarn":{"parNewVal":"0","lastUpdate":"2022-12-29T16:01:46Z"},"loosenStatus":{"parNewVal":"0","lastUpdate":"2023-03-24T18:45:09Z"},"temp40":{"parNewVal":"52","lastUpdate":"2023-03-09T16:32:31Z"},"strongStatus":{"parNewVal":"0","lastUpdate":"2022-12-29T16:01:50Z"},"weight":{"parNewVal":"2.00","lastUpdate":"2023-03-26T13:24:46Z"},"intelligenceStatus":{"parNewVal":"0","lastUpdate":"2022-12-29T16:01:50Z"},"purifiedWashStatus":{"parNewVal":"0","lastUpdate":"2022-12-29T16:01:50Z"},"temp":{"parNewVal":"30","lastUpdate":"2023-03-26T08:22:24Z"},"voiceModuleVolume":{"parNewVal":"0","lastUpdate":"2022-12-29T16:01:50Z"},"washSpeed":{"parNewVal":"0","lastUpdate":"2022-12-29T16:01:50Z"},"machMode":{"parNewVal":"1","lastUpdate":"2023-03-26T14:31:00Z"},"buzzerDisabledCurrent":{"parNewVal":"0","lastUpdate":"2022-12-29T16:01:50Z"},"errors":{"parNewVal":"00","lastUpdate":"2023-03-19T11:08:10Z"},"remoteCtrValid":{"parNewVal":"0","lastUpdate":"2023-03-26T08:22:21Z"},"autoDetergentStatus":{"parNewVal":"0","lastUpdate":"2022-12-29T16:01:50Z"},"soakWashStatus":{"parNewVal":"0","lastUpdate":"2022-12-29T16:01:50Z"},"buzzerDisabled":{"parNewVal":"1","lastUpdate":"2022-12-29T16:01:50Z"},"haier_DetergentWeight":{"parNewVal":"0","lastUpdate":"2022-12-29T16:01:50Z"},"totalWaterUsed":{"parNewVal":"6617","lastUpdate":"2023-03-26T14:26:06Z"},"message":{"parNewVal":"0","lastUpdate":"2023-01-01T09:07:34Z"},"temp0to30":{"parNewVal":"72","lastUpdate":"2023-03-26T14:29:02Z"},"spinSpeed":{"parNewVal":"1000","lastUpdate":"2023-03-26T09:17:11Z"},"detergentPercent":{"parNewVal":"0","lastUpdate":"2022-12-29T16:01:50Z"},"highTransRate":{"parNewVal":"1","lastUpdate":"2022-12-29T15:59:55Z"},"currentWaterUsed":{"parNewVal":"0","lastUpdate":"2023-03-26T14:31:00Z"},"autoDisinfectantStatus":{"parNewVal":"0","lastUpdate":"2022-12-29T16:01:50Z"},"cloudProgSrc":{"parNewVal":"0","lastUpdate":"2023-03-26T14:31:00Z"},"prCode":{"parNewVal":"136","lastUpdate":"2023-03-26T14:31:00Z"},"dryCleaningNeeded":{"parNewVal":"0","lastUpdate":"2022-12-29T16:01:50Z"},"dryProgFlag":{"parNewVal":"0","lastUpdate":"2022-12-29T16:01:50Z"},"program19":{"parNewVal":"1","lastUpdate":"2023-03-04T06:45:41Z"},"program18":{"parNewVal":"0","lastUpdate":"2022-12-29T16:01:46Z"},"program17":{"parNewVal":"1","lastUpdate":"2023-03-06T16:14:42Z"},"programStats":{"parNewVal":"4d;8;;;;4;3;3;;8;;;11;1;3;2;1;;1;;3;1;;4","lastUpdate":"2023-03-26T14:29:02Z"},"program16":{"parNewVal":"2","lastUpdate":"2023-03-04T08:01:52Z"},"autoSoftenerStatus":{"parNewVal":"0","lastUpdate":"2022-12-29T16:01:50Z"},"program11":{"parNewVal":"0","lastUpdate":"2022-12-29T16:01:46Z"},"program10":{"parNewVal":"8","lastUpdate":"2023-03-19T15:55:31Z"},"totalWashCycle":{"parNewVal":"121","lastUpdate":"2023-03-26T14:29:02Z"},"program15":{"parNewVal":"3","lastUpdate":"2023-03-09T16:32:31Z"},"detergentBStatus":{"parNewVal":"0","lastUpdate":"2022-12-29T16:01:50Z"},"program14":{"parNewVal":"1","lastUpdate":"2023-02-05T09:33:34Z"},"program13":{"parNewVal":"17","lastUpdate":"2023-03-06T10:00:39Z"},"program12":{"parNewVal":"0","lastUpdate":"2022-12-29T16:01:46Z"},"laundryCycleStatus":{"parNewVal":"0","lastUpdate":"2023-03-26T14:31:00Z"},"standbyTimeExtended":{"parNewVal":"0","lastUpdate":"2023-03-26T14:31:00Z"},"actualWeight":{"parNewVal":"0","lastUpdate":"2023-03-26T14:31:00Z"},"speedUpStatus":{"parNewVal":"0","lastUpdate":"2022-12-29T16:01:50Z"},"operationName":{"parNewVal":"","lastUpdate":"2023-03-24T08:48:53Z"},"program22":{"parNewVal":"1","lastUpdate":"2022-12-29T18:49:49Z"},"program21":{"parNewVal":"3","lastUpdate":"2023-03-17T14:44:37Z"},"program20":{"parNewVal":"0","lastUpdate":"2022-12-29T16:01:46Z"},"defSetAllowed":{"parNewVal":"0","lastUpdate":"2022-12-29T16:01:50Z"},"program25":{"parNewVal":"0","lastUpdate":"2022-12-29T16:01:46Z"},"program24":{"parNewVal":"4","lastUpdate":"2023-02-22T06:42:52Z"},"program23":{"parNewVal":"0","lastUpdate":"2022-12-29T16:01:46Z"},"voiceModuleWakeStatus":{"parNewVal":"0","lastUpdate":"2022-12-29T16:01:50Z"},"currentWashCycle":{"parNewVal":"32","lastUpdate":"2023-03-26T14:29:02Z"},"transMode":{"parNewVal":"0","lastUpdate":"2022-12-29T15:59:55Z"},"currentElectricityUsed":{"parNewVal":"0.00","lastUpdate":"2023-03-26T14:31:00Z"},"washerDryIntensity":{"parNewVal":"1","lastUpdate":"2022-12-29T16:01:50Z"},"steamStatus":{"parNewVal":"0","lastUpdate":"2022-12-29T16:01:50Z"},"delayStatus":{"parNewVal":"0","lastUpdate":"2023-03-23T07:08:37Z"},"haier_SoftenerWeight":{"parNewVal":"0","lastUpdate":"2022-12-29T16:01:50Z"},"debugEnabled":{"parNewVal":"0","lastUpdate":"2022-12-29T15:59:55Z"},"dirtyLevel":{"parNewVal":"0","lastUpdate":"2022-12-29T16:01:50Z"},"remainingStandbyTime":{"parNewVal":"0","lastUpdate":"2023-03-26T13:26:10Z"},"stdTransRate":{"parNewVal":"1","lastUpdate":"2022-12-29T15:59:55Z"},"testCmdReceiveStatus":{"parNewVal":"0","lastUpdate":"2022-12-29T16:01:50Z"},"clothesAnionStatus":{"parNewVal":"0","lastUpdate":"2022-12-29T16:01:50Z"},"stainType":{"parNewVal":"0","lastUpdate":"2022-12-29T16:01:50Z"},"nightWashStatus":{"parNewVal":"0","lastUpdate":"2022-12-29T16:01:50Z"},"energySavingStatus":{"parNewVal":"0","lastUpdate":"2022-12-29T16:01:50Z"},"remainingRinseIterations":{"parNewVal":"0","lastUpdate":"2023-03-26T14:21:04Z"},"voiceModuleDataDef":{"parNewVal":"130","lastUpdate":"2022-12-29T16:01:50Z"},"pause":{"parNewVal":"1","lastUpdate":"2023-03-26T14:31:00Z"},"doorStatus":{"parNewVal":"0","lastUpdate":"2022-12-29T16:01:50Z"},"remainingTimeMM":{"parNewVal":"180","lastUpdate":"2023-03-26T14:31:04Z"},"texture":{"parNewVal":"1","lastUpdate":"2023-03-26T09:17:11Z"},"program4":{"parNewVal":"0","lastUpdate":"2022-12-29T16:01:46Z"},"cloudProgId":{"parNewVal":"0","lastUpdate":"2023-03-24T18:47:07Z"},"voiceModuleWakeUp":{"parNewVal":"0","lastUpdate":"2022-12-29T16:01:50Z"},"program3":{"parNewVal":"0","lastUpdate":"2022-12-29T16:01:46Z"},"program6":{"parNewVal":"4","lastUpdate":"2023-01-10T16:44:53Z"},"program5":{"parNewVal":"0","lastUpdate":"2022-12-29T16:01:46Z"},"doorLockStatus":{"parNewVal":"0","lastUpdate":"2023-03-26T14:29:04Z"},"program8":{"parNewVal":"3","lastUpdate":"2023-01-03T11:31:46Z"},"program7":{"parNewVal":"3","lastUpdate":"2023-03-01T10:30:32Z"},"detWarn":{"parNewVal":"0","lastUpdate":"2022-12-29T16:01:46Z"},"antiAllergyStatus":{"parNewVal":"0","lastUpdate":"2022-12-29T16:01:50Z"},"creaseResistSoakStatus":{"parNewVal":"0","lastUpdate":"2022-12-29T16:01:50Z"},"program9":{"parNewVal":"0","lastUpdate":"2022-12-29T16:01:46Z"},"lockStatus":{"parNewVal":"0","lastUpdate":"2022-12-29T16:01:50Z"},"remainingMainWashTime":{"parNewVal":"160","lastUpdate":"2023-03-26T14:31:00Z"},"program2":{"parNewVal":"8","lastUpdate":"2023-03-22T11:09:12Z"},"program1":{"parNewVal":"77","lastUpdate":"2023-03-26T14:29:02Z"},"permanentPressStatus":{"parNewVal":"0","lastUpdate":"2023-03-24T18:45:09Z"},"prPhase":{"parNewVal":"0","lastUpdate":"2023-03-26T14:31:00Z"},"highWaterLevelStatus":{"parNewVal":"0","lastUpdate":"2022-12-29T16:01:50Z"},"dryStatus":{"parNewVal":"0","lastUpdate":"2022-12-29T16:01:50Z"},"dryTime":{"parNewVal":"0","lastUpdate":"2022-12-29T16:01:50Z"},"airWashTempLevel":{"parNewVal":"0","lastUpdate":"2022-12-29T16:01:50Z"},"voiceModuleOnOffStatus":{"parNewVal":"1","lastUpdate":"2022-12-29T16:01:50Z"},"temp60to90":{"parNewVal":"12","lastUpdate":"2023-03-24T10:48:42Z"},"uvSterilizationStatus":{"parNewVal":"0","lastUpdate":"2022-12-29T16:01:50Z"},"shoesAnionStatus":{"parNewVal":"0","lastUpdate":"2022-12-29T16:01:50Z"},"detergentType":{"parNewVal":"1","lastUpdate":"2022-12-29T16:01:50Z"},"totalElectricityUsed":{"parNewVal":"91.54","lastUpdate":"2023-03-26T14:27:07Z"}}},"activity":{},"commandHistory":{"command":{"macAddress":"94-3c-c6-f4-b1-6c","commandName":"startProgram","applianceOptions":{"haier_SoakPrewashSelection":"haier_SoakPrewashSelection"},"programName":"PROGRAMS.WM_WD.HQD_SMART","ancillaryParameters":{"remoteActionable":"1","programType":"W","remoteVisible":"1","programIntensity":"standard","energyLabel":"0","prPosition":"1","suggestedLoadW":9,"antiWrinkle":"1","programCluster":"traditional","powderDetergentDose":"4","liquidDetergentDose":"4","programFamily":"[dashboard]","ecoDelayStart":"0","tempContribution":"1"},"applianceType":"WM","attributes":{"prStr":"Smart A.I.","channel":"mobileApp","energyLabel":"0","origin":"standardProgram"},"device":{"appVersion":"1.53.7","deviceModel":"iPhone14,2","osVersion":"16.3.1","mobileId":"0DEC63FA-0E0F-40B9-AE1D-48E487026EF7","mobileOs":"ios"},"parameters":{"haier_MainWashSpeed":"50","creaseResistSoakStatus":"0","haier_SoakPrewashSelection":"0","prCode":"124","soakWashStatus":"0","strongStatus":"0","energySavingStatus":"0","spinSpeed":"1000","haier_MainWashWaterLevel":"2","rinseIterationTime":"8","haier_SoakPrewashSpeed":"0","permanentPressStatus":"1","nightWashStatus":"0","intelligenceStatus":"0","haier_SoakPrewashStopTime":"0","weight":"5","highWaterLevelStatus":"0","voiceStatus":"0","haier_SoakPrewashTime":"0","autoDisinfectantStatus":"0","cloudProgSrc":"2","haier_SoakPrewashRotateTime":"0","cloudProgId":"255","haier_SoakPrewashTemperature":"0","dryProgFlag":"0","dryLevel":"0","haier_RinseRotateTime":"20","uvSterilizationStatus":"0","delayStatus":"0","dryTime":"0","dryLevelAllowed":"0","rinseIterations":"2","lockStatus":"0","mainWashTime":"15","autoSoftenerStatus":"0","washerDryIntensity":"1","autoDetergentStatus":"0","antiAllergyStatus":"0","speedUpStatus":"0","temp":"30","haier_MainWashRotateTime":"20","detergentBStatus":"0","ironRemindStatus":"0","haier_MainWashStopTime":"5","texture":"1","steamLevel":"0","operationName":"grOnlineWash","haier_RinseSpeed":"50","haier_ConstantTempStatus":"1","haier_RinseStopTime":"5","delayTime":"0"},"transactionId":"94-3c-c6-f4-b1-6c_2023-03-24T11:07:21.258Z","timestamp":"2023-03-24T11:07:21.258Z"},"timestampAccepted":"2023-03-24T11:07:25.3Z","timestampExecuted":"2023-03-24T11:07:27.3Z"},"lastConnEvent":{"macAddress":"94-3c-c6-f4-b1-6c","category":"DISCONNECTED","instantTime":"2023-03-26T14:32:06Z","timestampEvent":1679841126003}},"authInfo":{}

TolianIPB commented 1 year ago

Hello, I've updated hOn integration to the last version. If more logs helps I am ready 👍

schorschi1981 commented 1 year ago

anything new?

gvigroux commented 1 year ago

I'm working on it :)

gvigroux commented 1 year ago

I've started to create a generic service to launch any supported program. Sorry it's longer than expected

schorschi1981 commented 1 year ago

no hurry i only wanted to know that i understand u right. im glad that u invest time for that.

gvigroux commented 1 year ago

There is now 1 service to launch any program and one to change any parameters. If you prefer a different way to integrate, you can propose by opening a new issue :)