Skip to content

Commit

Permalink
🔣 add support for xiaomi.controller.86v1 (#1390)
Browse files Browse the repository at this point in the history
  • Loading branch information
al-one committed Nov 14, 2023
1 parent 7aae5ed commit 3e77571
Show file tree
Hide file tree
Showing 2 changed files with 10 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 @@ -1158,6 +1158,13 @@
'exclude_miot_services': 'iot_linkage,machine_state,flag_bit',
'exclude_miot_properties': 'enhance.timer',
},
'xiaomi.controller.86v1': {
'switch_properties': 'mute,sleep_mode,auto_screen_off,auto_screen_brightness,touch_sound,key_name_display',
'select_properties': 'mode,mibrain_level,mico_level,display_state,wallpaper',
'number_properties': 'speaker.volume,brightness,theme',
'button_actions': 'homepage,light',
'text_actions': 'play_text,execute_text_directive',
},
'xiaomi.tv.*': {
'auto_cloud': True,
'switch_properties': 'is_on',
Expand Down
4 changes: 3 additions & 1 deletion custom_components/xiaomi_miot/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ async def async_setup_platform(hass, config, async_add_entities, discovery_info=
if 'miir.' in model:
entities.append(MiirMediaPlayerEntity(config, srv))
continue
if not srv.mapping() and not srv.get_action('play'):
if model in ['xiaomi.controller.86v1']:
pass
elif not srv.mapping() and not srv.get_action('play'):
continue
if spec.get_service('television', 'projector', 'tv_box'):
entities.append(MitvMediaPlayerEntity(config, srv))
Expand Down

0 comments on commit 3e77571

Please sign in to comment.