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

宠物喂食器2无法控制 数据也不对 #2036

Closed
LOVE2CMOL opened this issue Dec 7, 2024 · 9 comments
Closed

宠物喂食器2无法控制 数据也不对 #2036

LOVE2CMOL opened this issue Dec 7, 2024 · 9 comments

Comments

@LOVE2CMOL
Copy link

LOVE2CMOL commented Dec 7, 2024

Device model / 设备型号

xiaomi.feeder.pi2001

Component version / 插件版本

1.0.2

HA core version / HA版本

2024.11.2

Integrated mode / 集成方式

Automatic (自动模式)

The problem / 问题详情

宠物喂食器2无法控制 各种数据也不对
image
1e88929c65b2d445bcea4642ff93cf20
4db7356c0151292b2f24b735d24294f2
image

Entity attributes / 实体属性

button.xiaomi_pi2001_746b_info
button.xiaomi_pi2001_746b_pet_food_out
button.xiaomi_pi2001_746b_reset_desiccant_life
button.xiaomi_pi2001_746b_weigh_manual_calibrate
number.xiaomi_pi2001_746b_target_feeding_measure
sensor.xiaomi_pi2001_746b_battery_level
sensor.xiaomi_pi2001_746b_desiccant_left_level
sensor.xiaomi_pi2001_746b_desiccant_left_time
sensor.xiaomi_pi2001_746b_device_fault
sensor.xiaomi_pi2001_746b_pet_feeder
sensor.xiaomi_pi2001_746b_pet_food_left_level
switch.xiaomi_pi2001_746b_compensate_switch
switch.xiaomi_pi2001_746b_physical_control_locked
switch.xiaomi_pi2001_746b_prevent_accumulation

Home Assistant Logs / 系统日志

2024-12-07 13:47:34.682 INFO (MainThread) [custom_components.xiaomi_miot.core.device.xiaomi.feeder.pi2001] Device updated: {'compensate_switch-5-12': 0, 'prevent_accumulation-5-14': 1, 'desiccant.desiccant_left_level': 0, 'desiccant.desiccant_left_time': 0, 'battery_level': False, 'physical_controls_locked': True, 'pet_feeder.fault': 'null', 'pet_feeder.pet_food_left_level': 'normal', 'target_feeding_measure-2-7': 1, 'pet_feeder.status': '正常'}
2024-12-07 13:47:34.682 DEBUG (MainThread) [custom_components.xiaomi_miot.core.hass_entity] sensor.xiaomi_pi2001_746b_pet_feeder: Entity state updated: 正常
2024-12-07 13:47:34.682 DEBUG (MainThread) [custom_components.xiaomi_miot.core.hass_entity] sensor.xiaomi_pi2001_746b_battery_level: Entity state updated: False
2024-12-07 13:47:34.682 DEBUG (MainThread) [custom_components.xiaomi_miot.core.hass_entity] sensor.xiaomi_pi2001_746b_device_fault: Entity state updated: null
2024-12-07 13:47:34.682 DEBUG (MainThread) [custom_components.xiaomi_miot.core.hass_entity] sensor.xiaomi_pi2001_746b_pet_food_left_level: Entity state updated: normal
2024-12-07 13:47:34.682 DEBUG (MainThread) [custom_components.xiaomi_miot.core.hass_entity] sensor.xiaomi_pi2001_746b_desiccant_left_level: Entity state updated: 0
2024-12-07 13:47:34.682 DEBUG (MainThread) [custom_components.xiaomi_miot.core.hass_entity] sensor.xiaomi_pi2001_746b_desiccant_left_time: Entity state updated: 0
2024-12-07 13:47:34.683 DEBUG (MainThread) [custom_components.xiaomi_miot.core.hass_entity] switch.xiaomi_pi2001_746b_physical_control_locked: Entity state updated: True
2024-12-07 13:47:34.683 DEBUG (MainThread) [custom_components.xiaomi_miot.core.hass_entity] switch.xiaomi_pi2001_746b_compensate_switch: Entity state updated: 0
2024-12-07 13:47:34.683 DEBUG (MainThread) [custom_components.xiaomi_miot.core.hass_entity] switch.xiaomi_pi2001_746b_prevent_accumulation: Entity state updated: 1
2024-12-07 13:47:34.683 DEBUG (MainThread) [custom_components.xiaomi_miot.core.hass_entity] number.xiaomi_pi2001_746b_target_feeding_measure: Entity state updated: 1
2024-12-07 13:47:34.683 DEBUG (MainThread) [custom_components.xiaomi_miot.core.hass_entity] button.xiaomi_pi2001_746b_info: Entity state updated: 宠物喂食器2
2024-12-07 13:47:34.683 DEBUG (MainThread) [custom_components.xiaomi_miot.core.device.xiaomi.feeder.pi2001] Finished fetching dc:ed:83:b1:73:7b-dc1f23039d985e31c2f815e820a5576e-update_miot_status data in 1.340 seconds (success: True)
2024-12-07 13:47:34.683 DEBUG (MainThread) [custom_components.xiaomi_miot.core.coordinator] 宠物喂食器2(xiaomi.feeder.pi2001): Coordinator updated: ['dc:ed:83:b1:73:7b-dc1f23039d985e31c2f815e820a5576e-update_miot_status', <custom_components.xiaomi_miot.core.miot_spec.MiotResults object at 0x7fe7d0e04c80>]

@LOVE2CMOL
Copy link
Author

LOVE2CMOL commented Dec 10, 2024

补充
重新添加后

不能出粮食
设定出粮量 过段时间会重置为1
干燥剂剩余量 信息获取有误
干燥剂剩余时间 信息获取有误

image

其它正常

@al-one
Copy link
Owner

al-one commented Dec 11, 2024

提供 Info 实体属性以及更多 debug 日志。

@LOVE2CMOL
Copy link
Author

LOVE2CMOL commented Dec 11, 2024

info: 宠物喂食器2
model: xiaomi.feeder.pi2001
did: 644128486
mac: DC:ED:83:B1:75:7B
lan_ip: 192.168.83.55
app_link: mihome://device?uid=xxxx&did=644228123
miot_type: urn:miot-spec-v2:device:pet-feeder:0000A06C:xiaomi-pi2001:2
available: true
home_room: 家 客厅
icon: mdi:information
updater: local
updated_at: 2024-12-11 15:46:36.072279+08:00
converters: info, pet_feeder.status, physical_controls_locked, battery_level, pet_feeder.fault, pet_feeder.pet_food_left_level, desiccant.desiccant_left_level, desiccant.desiccant_left_time, compensate_switch-5-12, prevent_accumulation-5-14, target_feeding_measure-2-7, pet_feeder.pet_food_out, pet_feeder.weigh_manual_calibrate, desiccant.reset_desiccant_life
customizes: 
chunk_properties: 1
number_properties: target_feeding_measure
button_actions: pet_food_out,reset_desiccant_life,weigh_manual_calibrate
sensor_properties: pet_food_left_level,fault,desiccant_left_level,desiccant_left_time
switch_properties: compensate_switch,prevent_accumulation

compensate_switch-5-12: 0
prevent_accumulation-5-14: 1
desiccant.desiccant_left_level: 0
desiccant.desiccant_left_time: 0
battery_level: false
physical_controls_locked: true
pet_feeder.fault: 0
pet_feeder.pet_food_left_level: 0
target_feeding_measure-2-7: 19
pet_feeder.status: 0
feeder_schedule-5-1: [0,08000300,12000200,18000200]
add_meal_state-5-3: 1
plan_process_display-5-4: 0
food_intake_rate-5-5: 10
food_intake_state-5-6: 0
max_schcdule_num-5-7: 35
schedule_state-5-8: 0
add_meal_cycle-5-10: 8
food_out_progress-5-11: 100
schedule_progress-5-15: 0
add_meal_triggertime-5-16: 0
set_screen_display-5-18: 0
physical_controls_locked.mode: 0
pet_feeder-2.food_out_status: 0
add_meal_notify_status-2-13: 0
pet_feeder-2.food_heap_status: 0
pet_feeder.eaten_food_measure: 0
pet_feeder-2.eaten_food_measure: 0
eaten_food_measure-2-22: 21
eaten_food_measure-2-23: 0
pet_feeder-2.status: 0
pet_feeder-2.status-28: 0
pet_feeder-2.status-29: 0
pet_feeder-2.status-31: 0
pet_feeder-2.status-32: 0
desiccant.reset_desiccant_life: null
pet_feeder.pet_food_out: null
device_class: update
friendly_name: 宠物喂食器2 信息

@LOVE2CMOL
Copy link
Author

LOVE2CMOL commented Dec 11, 2024

@al-one
Copy link
Owner

al-one commented Dec 12, 2024

desiccant.desiccant_left_level: 0
desiccant.desiccant_left_time: 0

设备返回的数字就是 0

@LOVE2CMOL
Copy link
Author

LOVE2CMOL commented Dec 12, 2024

设备返回的数字就是 0

行吧
其实更加重要的是 不能控制出粮

@al-one
Copy link
Owner

al-one commented Dec 13, 2024

尝试master分支。

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

@al-one
Copy link
Owner

al-one commented Dec 14, 2024

v1.0.5已修复

@LOVE2CMOL
Copy link
Author

确认修复

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

2 participants