-
-
Notifications
You must be signed in to change notification settings - Fork 773
Open
Labels
FAQFrequently Asked QuestionsFrequently Asked Questions
Description
自v0.6.5
版本开始,本插件支持通过UI管理自定义选项(自定义属性),具体步骤如下:
- 再次添加
Xiaomi Miot Auto
集成,或点击这里 Customizing device (自定义设备)
<推荐>- 选择要自定义的设备型号
- 指定设备型号支持通配符如:
brand.device.*
*.device.*
Customizing entity (自定义实体)
- 选择实体类型
- 选择要自定义的实体
- 重复以上步骤就可自定义其他实体或设备
- 通过UI自定义的选项会覆盖
customize.yaml
和configuration.yaml
中的自定义 - 如果想删除(恢复默认)某个自定义选项,请在输入框输入一个空格
xiaomi-mito-customize.mp4
选项说明:
选项 | 类型 | 示例 | 作用实体 | 添加版本 | 说明 |
---|---|---|---|---|---|
attributes_template |
template | * | 格式化实体属性 | ||
auto_cloud |
bool | true |
* | 本地不可用时自动切换云端模式(电视/投影默认true ) |
|
binary_sensor_attributes |
list|string | smoke_status |
* | 将实体属性转为二元传感器 | |
binary_sensor_properties |
list|string | is_volume_muted |
* | 将miot属性转为二元传感器 | |
button_actions |
list|string | start_cook,pause |
* | 将miot action转为按钮实体 | |
button_properties |
list|string | motor_control,reset |
* | 将miot属性转为按钮实体 | |
check_lan |
bool | false |
* | 云端接入的wifi设备检查本地连接性 | |
chunk_properties |
integer | 10 |
* | 每次向设备查询的属性数 | |
cloud_delay_update |
integer | 3 |
* | 云端接入的设备操作后延迟更新状态 | |
cover_properties |
list|string | motor_control |
* | 将miot属性转为cover 实体 |
|
device_class |
string | energy |
* | 实体类型 | |
entity_category |
string | config |
* | 实体分类 | |
exclude_miot_properties |
list|string | zone_points |
* | 排除部分miot属性 | |
exclude_miot_services |
list|string | custom,extend |
* | 排除部分miot服务 | |
extend_miot_specs |
list|string | * | 拓展miot规格 | ||
fan_properties |
list|string | drying_level |
* | 将miot属性转为风扇实体 | |
fan_services |
list|string | air_fresh |
* | 将miot服务转为风扇实体 | |
ignore_offline |
bool | true |
* | 忽略该设备离线时在HA的通知 | |
interval_seconds |
integer | 30 |
* | 轮询间隔(秒) | |
light_services |
list|string | light_indicator |
* | 将miot服务转为灯实体 | |
main_miot_services |
list|string | switch-2 |
* | 指定miot主服务 | |
micloud_statistics |
list[dict] | * | 获取云端统计,如用电量 | ||
miio_cloud_props_template |
template | * | 云端属性解析模板 | ||
miio_cloud_props |
list|string | event.7,event.11 |
* | 获取云端属性 | |
miio_cloud_records |
list|string | prop.power_cost:31 |
* | 获取云端设备日志 | |
miio_commands |
dict|json | * | 通过miio命令获取属性 | ||
miio_properties |
list|string | power,battery |
* | 获取miio属性 | |
miot_cloud_action |
bool | false |
* | 通过云端执行miot操作 | |
miot_cloud_write |
bool | false |
* | 通过云端改变miot属性 | |
miot_cloud |
bool | false |
* | 通过云端模式接入设备 | |
miot_did |
string | mitv.abcdef |
* | 指定设备did | |
miot_local_mapping |
dict|json | * | 指定本地模式下的miot规格 | ||
miot_local |
bool | true |
* | 通过本地模式接入设备 | |
miot_mapping |
dict|json | * | 指定miot规格 | ||
miot_type |
string | urn:miot-spec-v2:device:xxx |
* | 指定miot规格urn | |
number_properties |
list|string | speed,speaker.volume |
* | 将miot属性转为number 实体 |
|
number_select_properties |
list|string | water_level |
* | 将miot属性转为number 实体或select 实体 |
|
parallel_updates |
integer | 3 |
* | 并行请求数量 | |
select_properties |
list|string | mode,heat_level |
* | 将miot属性转为select 实体 |
|
sensor_attributes |
list|string | power_cost_today |
* | 将实体属性转为传感器实体 | |
sensor_properties |
list|string | temperature,humidity |
* | 将miot属性转为传感器实体 | |
stat_power_cost_key |
string | 2.2 |
* | 统计用电量的key | |
stat_power_cost_type |
string | stat_day_v3 |
* | 统计用电量的类型 | |
switch_properties |
list|string | on,heater,alarm |
* | 将miot属性转为开关实体 | |
text_actions |
list|string | play_text |
* | 将miot action转为文本框实体 | |
unreadable_properties |
bool | true |
* | 读取不可读的属性(默认不读) | |
motion_timeout |
integer | 60 |
binary_sensor | 人体传感器超时 | |
reverse_state |
bool | true |
binary_sensor | 反转状态 | |
time_start_offset |
integer | -864000 |
binary_sensor | ||
use_ble_object |
bool | true |
binary_sensor | ||
disable_check_stream |
bool | true |
camera | ||
keep_streaming |
bool | false |
camera | ||
motion_stream_slice |
integer | -1 |
camera | ||
sub_motion_stream |
bool | false |
camera | 创建新的camera实体接入移动侦测回放 | |
use_alarm_playlist |
bool | false |
camera | ||
use_motion_stream |
bool | true |
camera | 使用移动侦测回放作为视频源 | |
use_rtsp_stream |
bool | false |
camera | ||
video_attribute |
integer | 1 |
camera | ||
bind_sensor |
list|string | sensor.temp_entity |
climate | 为温控实体绑定温湿度传感器实体 | |
turn_on_hvac |
string | heat |
climate | 以指定的HVAC模式打开温控器 | |
auto_position_reverse |
bool | false |
cover | ||
close_cover_value |
integer | 3 |
cover | ||
close_texts |
list|string | Close,Down |
cover | 关闭cover实体的miot属性值描述 | |
closed_position |
integer | 5 |
cover | 当前位置≤此值时显示已关闭 | |
closed_status |
list|string | Closed,Down |
cover | 包含miot属性值描述时显示已关闭 | |
cover_position_mapping |
dict|json | cover | |||
deviated_position |
integer | 3 |
cover | 当前位置偏差值 | |
disable_target_position |
bool | false |
cover | ||
motor_reverse |
bool | false |
cover | 反转电机状态 | |
open_cover_value |
integer | 1 |
cover | ||
open_texts |
list|string | Open,Up |
cover | 开启cover实体的miot属性值描述 | |
position_reverse |
bool | false |
cover | 目标位置反转 | |
stop_cover_value |
integer | 2 |
cover | ||
target2current_position |
bool | false |
cover | 使用目标位置作为当前位置 | |
disable_location_name |
bool | true |
device_tracker | 禁止显示具体地址 | |
disable_preset_modes |
list|string|bool | true |
fan | 禁用预设模式 | |
percentage_property |
string | speed_percentage |
fan | 无极风速(0~100)的属性名称 | |
target_humidity_ratio |
float | 0.1 |
humidity | 目标湿度比率 | |
brightness_for_off |
integer | 0 |
light | 通过亮度值关闭灯光 | |
brightness_for_on |
integer | 1 |
light | 通过亮度值开启灯光 | |
color_temp_reverse |
bool | false |
light | 反转色温 | |
yeelight_smooth_off |
integer | 3000 |
light | 易来灯缓灭 | |
yeelight_smooth_on |
integer | 2000 |
light | 易来灯缓开 | |
bind_xiaoai |
string | media_player.xiaoai_id |
media_player | 绑定小爱音箱,用于打开电视 | |
mitv_lan_host |
string | 192.168.31.66 |
media_player | 小米电视局域网IP | |
screenshot_compress |
integer | 50 |
media_player | 指定电视/投影屏幕截图的压缩率 默认为50%,100时质量最高 | |
source_list_append |
bool | true |
media_player | 是否保留原输入源 | |
sources_via_apps |
list|string | 桌面,米家,云视听极光,设置 |
media_player | 将电视APP附加到输入源 | |
sources_via_keycodes |
list|string | power,enter,back |
media_player | 将遥控按键附加到输入源 | |
television_name |
string | 客厅小米电视 |
media_player | 电视名称,用于小爱开机 | |
turn_off_screen |
bool | true |
media_player | 关闭电视/投影时发送熄屏指令 | |
xiaoai_silent |
bool | true |
media_player | 通过小爱开电视时静默执行 | |
restore_state |
bool | true |
number | 保留实体状态 | |
exclude_type |
list|integer | [13] |
sensor | 排除指定类型的米家通知 | |
filter_home |
string | 我家 |
sensor | 米家通知实体指定家庭 | |
start_cook_params |
list,string | [0,1] |
sensor | ||
state_class |
string | measurement |
sensor | 实体状态分类 | |
state_property |
string | temperature |
sensor | 指定miot属性值作为实体状态 | |
unit_of_measurement |
string | kWh |
sensor | ||
value_ratio |
float | 0.01 |
sensor | 数值比率 | |
descriptions_for_off |
list|string | switch | |||
descriptions_for_on |
list|string | switch | |||
feeding_measure |
integer | switch | 指定喂食量 | ||
silent_execution |
integer|bool | true |
text | 静默执行小爱音箱语音指令 |
Metadata
Metadata
Assignees
Labels
FAQFrequently Asked QuestionsFrequently Asked Questions