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

更新后扫地机器人viomi.vacuum.v7缺失两个实体 s_area/s_time #2212

Closed
ptbsare opened this issue Dec 28, 2024 · 6 comments
Closed

Comments

@ptbsare
Copy link
Contributor

ptbsare commented Dec 28, 2024

Device model / 设备型号

viomi.vacuum.v7

Component version / 插件版本

1.0.7

HA core version / HA版本

2025.1 beta

Integrated mode / 集成方式

Automatic (自动模式)

The problem / 问题详情

viomi.vacuum.v7 更新后扫地机器人viomi.vacuum.v7缺失两个entity sensor.viomi_v7_4c26_miio_s_area sensor.viomi_v7_4c26_miio_s_time
0.7.x 正常
更新后出现
#1579 类似

Entity attributes / 实体属性

Home Assistant Logs / 系统日志

更新后扫地机器人viomi.vacuum.v7缺失两个entity sensor.viomi_v7_4c26_miio_s_area sensor.viomi_v7_4c26_miio_s_time

@ptbsare
Copy link
Contributor Author

ptbsare commented Dec 29, 2024

为不可用状态,并非集成不提供

model: viomi.vacuum.v7
app_link: ""
miot_type: urn:miot-spec-v2:device:vacuum:0000A006:viomi-v7:2
available: true
home_room: ""
vacuum.status: 6
vacuum.mode: 1
viomi_vacuum.main_brush_life: 63
viomi_vacuum.side_brush_life: 26
viomi_vacuum.hypa_life: 26
viomi_vacuum.mop_life: 0
battery_level: 100
state_updater: local
vacuum.status_desc: Charging
miio.run_state: 5
miio.mode: 0
miio.err_state: 2105
miio.battary_life: 100
miio.box_type: 3
miio.mop_type: 0
miio.s_time: 65
miio.s_area: 51.39
miio.suction_grade: 1
miio.water_grade: 12
miio.remember_map: 1
miio.has_map: 1
miio.is_mop: 0
miio.has_newmap: 1
clean_area: 51.39
clean_time: 65
converters:
  - button.info
  - sensor.battery_level
  - sensor.vacuum.status
  - sensor.viomi_vacuum.main_brush_life
  - sensor.viomi_vacuum.side_brush_life
  - sensor.viomi_vacuum.hypa_life
  - sensor.viomi_vacuum.mop_life
  - select.vacuum.mode
  - button.vacuum.start_sweep
  - button.vacuum.stop_sweeping
  - button.vacuum.start_sweep_mop
  - button.vacuum.start_mop
  - button.vacuum.pause_sweeping
  - button.battery.start_charge
  - sensor.miio.s_area
  - sensor.miio.s_time
customizes:
  binary_sensor_properties: mop_status
  sensor_properties: vacuum.status,main_brush_life,side_brush_life,hypa_life,mop_life
  select_properties: mode,sweep_mop_type,sweep_type,clean_times
  number_properties: volume
  button_actions: >-
    start_sweep,stop_sweeping,stop_and_gocharge,start_only_sweep,start_mop,start_sweep_mop,pause_sweeping,continue_sweep,start_dust_arrest,start_mop_wash,start_dry,start_eject,stop_mop_wash,stop_dry,back_mop_wash,start_charge,identify,reset_mop_life,reset_brush_life,reset_filter_life,reset_dust_bag_life
  configuration_entities: reset_mop_life,reset_brush_life,reset_filter_life,reset_dust_bag_life
  chunk_coordinators:
    - interval: 10
      props: status,cleaning_area,cleaning_time,charging_state
      notify: true
    - interval: 15
      props: mode,sweep_mop_type,sweep_type,clean_times
  sensor_attributes: miio.s_area,miio.s_time
device_class: update
friendly_name: 客厅扫地机器人 信息

Screenshot_2024-12-29-18-26-06-291_com android chrome

@al-one
Copy link
Owner

al-one commented Dec 30, 2024

升级到master分支,并迁移到sensor.viomi_v7_4c26_clean_area/time实体。

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

@ptbsare
Copy link
Contributor Author

ptbsare commented Dec 30, 2024

更新后提供entity 名字变了,但是依然是不可用

2024-12-30 15:51:07.398 INFO (SyncWorker_32) [custom_components.xiaomi_miot.core.miio2miot] viomi.vacuum.v7: Got miio props for miot: {'suction_grade': 1, 'run_state': 4, 'battary_life': 48, 'main_brush_life': 62, 'side_brush_life': 25, 'hypa_life': 25, 'mop_life': 0, 'mode': 0, 'err_state': 2102, 'box_type': 3, 'mop_type': 0, 's_time': 62, 's_area': 47.51, 'water_grade': 12, 'remember_map': 1, 'has_map': 1, 'is_mop': 0, 'has_newmap': 1}
2024-12-30 15:51:07.399 INFO (MainThread) [custom_components.xiaomi_miot.core.device.viomi.vacuum.v7] Device updated: {'sensor.vacuum.status': 'go charging', 'only_info': False}
2024-12-30 15:51:07.399 DEBUG (MainThread) [custom_components.xiaomi_miot.core.hass_entity] sensor.viomi_v7_4c26_status: Entity state updated: go charging

@al-one
Copy link
Owner

al-one commented Dec 31, 2024

再次更新 master 分支

@al-one al-one changed the title 更新后扫地机器人viomi.vacuum.v7缺失两个entity sensor.viomi_v7_4c26_miio_s_area sensor.viomi_v7_4c26_miio_s_time 更新后扫地机器人viomi.vacuum.v7缺失两个实体 s_area/s_time Dec 31, 2024
@ptbsare
Copy link
Contributor Author

ptbsare commented Jan 1, 2025

可以了,就是两个entity默认名字都叫 客厅扫地机器人 None
不过已经不影响使用了
sensor.viomi_v7_4c26_clean_time
sensor.viomi_v7_4c26_clean_area

@ptbsare
Copy link
Contributor Author

ptbsare commented Jan 11, 2025

Confirm Fixed in v1.0.8 HA 2025.1.0

@ptbsare ptbsare closed this as completed Jan 11, 2025
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

2 participants