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

After adding to HA, important objects are missing, such as washer_mode, drying_level, rinsh_times ... and others. #2207

Open
MikhailTeddy opened this issue Dec 26, 2024 · 9 comments

Comments

@MikhailTeddy
Copy link

MikhailTeddy commented Dec 26, 2024

Device model / 设备型号

Mijia Advanced Washer Dryer 10kg Pro mibx5.washer.f28

Component version / 插件版本

v1.0.6

HA core version / HA版本

2024.12.5

Integrated mode / 集成方式

Token

The problem / 问题详情

Here you helped a person with adding objects detergent_ ...
#1194
by adding lines to device_customizes.py : mibx5.washer.*.
I tried to comment out these lines. And without them, all the objects washer_mode, drying_level, rinsh_times ... appeared,
but detergent_ , reservation_ disappeared
So for myself, I made entries suitable for my machine:

'mibx5.washer.*': {
    'sensor_properties': 'detergent_left_level,run_status,left_time,door_state,fault',
    'switch_properties': 'laundry_beads,disinfectant_mode,self_delivery_auto_turnoff,on,ai_mode,high_water_switch,one_click_wash,sleep_mode,steam_sterilization,status',
    'select_properties': 'reservation_wash_status,reservation_left_time,detergent_self_delivery_level,rinsh_times,mode,drying_degree,drying_level,softener_self_delivery_level',
},

Almost everything became available to me in HA, it only remains to add drum cleaning and detergent tray cleaning, but I don't know how. I know that "Laundry cavity clean.card slot" is the choice of the tray for cleaning, 1 is Detergent; 2 is Fabric Softener

It seems that different entries are needed for different mibx5.washer.* (I have f28, the person has #1194 v10)
Please fix this in the next updates.

Entity attributes / 实体属性

Here is my machine's Info:

Xiaomi washing machine
Model
mibx5.washer.f28
Did
MAC
:__:__:_:__:__
Lan IP
1__.1__.1.__
App link
Miot type
urn:miot-spec-v2:device:washer:0000A01F:mibx5-f28:1
Available
true
Home room
Updater
local
Updated at
26 декабря 2024 г. в 20:38:08
Lighter.on
false
Laundry cavity clean.card slot
1
Clean lefttime-10-2
0
Extend func enabled-6-1
false
Plugin connect.factory deadline
19 700 101
Fabric softener left level-9-1
2
Softener self delivery level-9-3
1
Disinfectant mode-9-4
false
Fabric softener self delivery notify-9-5
false
Detergent left level-8-1
2
Detergent self delivery level-8-3
1
Detergent self delivery notify-8-4
false
Alarm
true
Physical controls locked
false
Washer.on
false
Washer.status
0
Washer.mode
24
Washer.fault
0
Washer.target temperature
40
Washer.rinsh times
2
Washer.spin speed
800
Washer.door state
2
Washer.left time
46
Washer.run status
0
Washer.soak time
0
Washer.has washed times
14
Washer.reservation wash status
3
Washer.reservation left time
0
Washer.steam sterilization
false
Washer.high water switch
false
Washer.run status list
0
Washer.wash time
46
Washer.sleep mode
false
Washer.shake time
0
Washer.drying level
0
Washer.drying time
0
Washer.child protected enabled
false
Washer.child protected status
false
Washer.shake disperse notify
false
Self delivery auto turnoff-2-31
true
Washer.laundry beads
false
Washer.drying degree
2
Washer.one click wash
false
Washer.ai mode
false
Washer.has dried times
0
Washer.blue oxygen
0
Washer.power consumption
0
Washer.water consumption
0
Converters
button.info, sensor.washer.status, switch.physical_controls_locked, sensor.washer.fault, sensor.washer.door_state, sensor.washer.left_time, sensor.washer.run_status, sensor.detergent_left_level-8-1, sensor.door_state, sensor.fault, sensor.run_status, sensor.left_time, switch.washer.on, switch.washer.status, switch.washer.steam_sterilization, switch.washer.high_water_switch, switch.washer.sleep_mode, switch.self_delivery_auto_turnoff-2-31, switch.washer.laundry_beads, switch.washer.one_click_wash, switch.washer.ai_mode, switch.disinfectant_mode-9-4, switch.lighter.on, select.washer.mode, select.washer.rinsh_times, select.washer.reservation_wash_status, select.washer.reservation_left_time, select.washer.drying_level, select.washer.drying_degree, select.detergent_self_delivery_level-8-3, select.softener_self_delivery_level-9-3, select.drying_level, select.drying_degree, select.washer.target_temperature, select.washer.spin_speed, select.washer.soak_time, select.washer.wash_time, select.washer.drying_time, select.target_temperature, select.spin_speed, select.drying_time, select.soak_time, select.wash_time, button.washer.stop_washing, button.washer.start_wash, button.washer.pause
Customizes
button_actions: start_wash,pause,stop_washing
sensor_properties: detergent_left_level,run_status,left_time,door_state,fault
switch_properties: >-
laundry_beads,disinfectant_mode,self_delivery_auto_turnoff,on,ai_mode,high_water_switch,one_click_wash,sleep_mode,steam_sterilization,status
select_properties: >-
reservation_wash_status,reservation_left_time,detergent_self_delivery_level,rinsh_times,mode,drying_degree,drying_level,softener_self_delivery_level
number_select_properties: target_temperature,spin_speed,soak_time,wash_time,drying_time

Home Assistant Logs / 系统日志

No response

@al-one
Copy link
Owner

al-one commented Dec 27, 2024

Try master branch.

wget -O - https://get.hacs.vip | DOMAIN=xiaomi_miot ARCHIVE_TAG=master bash -

@MikhailTeddy
Copy link
Author

Excellent! 58 objects.
Thank you!
wesher

@MikhailTeddy
Copy link
Author

Power consumption and water consumption are always 0. There is no such data in the app, perhaps it does not measure at the hardware level.
You can also add sensors: "has_dried_times" and "has_washed_times" - number of washes. The app suggests cleaning the drum every 40 washes.
The "start_clean" button does not work. "stop_clean" works the same way as "stop_washing".
If can do in HA "cleaning", you can also add select "card_slot" (1 - Softener; 2 - Laundry Detergent)
Cleaning looks like this in the app: "device cleaning > Drum cleaning or Drawer cleaning"
If you select "Drum cleaning" it shows has_washed_times and recommends cleaning every 40 washes, the "Start new" button
If you select "Drawer cleaning" it suggests selecting a "card_slot" and running "Start new"
image
image
image

@al-one
Copy link
Owner

al-one commented Dec 30, 2024

Try master branch again.

@MikhailTeddy
Copy link
Author

clean-start button no available
Sensors appeared: "Washer Has Dried Times", "Washer Has Dried Times"
The "Make Cabin Openable" button appeared
Select "laundry-cavity-clean card_slot" appeared

@MikhailTeddy
Copy link
Author

Probably you can do it like this:

'mibx5.washer.f28:clean_start': {
'action_params': GET THE PARAMETER card_slot HERE 1 is detergent 2 is Softener ,
},

....
....
'button_actions': '...,clean_start',
},

I don't know how to pass the parameter. I checked with 1 and 2, it works

@al-one
Copy link
Owner

al-one commented Dec 31, 2024

The clean-start button has been deprecated, migrate to select.

@MikhailTeddy
Copy link
Author

Oh...!
When the "clean start" button disappeared, I didn't notice that the "clean start" select appeared!
I thought the problem was not solved and continued wasting my and your time!
I apologize!
The tray cleaning starts immediately after selecting "clean start".
Thank you!

@MikhailTeddy
Copy link
Author

'mibx5.washer.f28': {
    'select_action': 'clean_start',

...

Correct to 'select_actions': 'clean_start',

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

No branches or pull requests

3 participants
@al-one @MikhailTeddy and others