Skip to content

Commit

Permalink
🖥️ add support for nineam.desk.hoo01 (#1317)
Browse files Browse the repository at this point in the history
  • Loading branch information
al-one committed Sep 15, 2023
1 parent 779f648 commit a3c5805
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions custom_components/xiaomi_miot/core/device_customizes.py
Original file line number Diff line number Diff line change
Expand Up @@ -834,6 +834,13 @@
'miio_event_human_visit_details_template': 'mxiang_cateye_human_visit_details',
},

'nineam.desk.hoo01': {
'state_property': 'standing_desk.moving_status',
'sensor_properties': 'current_height,fault',
'switch_properties': 'on,lock_status',
'select_properties': 'mode,desk_control',
'number_properties': 'target_height,stand_height,sit_height,interval',
},
'novo.curtain.n21': {
'chunk_properties': 1,
'exclude_miot_properties': 'fault',
Expand Down
3 changes: 2 additions & 1 deletion custom_components/xiaomi_miot/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,9 @@ async def async_setup_platform(hass, config, async_add_entities, discovery_info=
elif srv.name in ['illumination_sensor']:
if spec.name not in ['illumination_sensor']:
continue
elif srv.name in ['pet_feeder']:
elif srv.name in ['pet_feeder', 'table']:
# no readable properties in mmgg.feeder.petfeeder
# nineam.desk.hoo01
pass
elif not srv.mapping():
continue
Expand Down

0 comments on commit a3c5805

Please sign in to comment.