al-one / hass-xiaomi-miot

Automatic integrate all Xiaomi devices to HomeAssistant via miot-spec, support Wi-Fi, BLE, ZigBee devices. 小米米家智能家居设备接入Hass集成
https://miot-spec.com
Apache License 2.0
4.59k stars 650 forks source link

米家直流变频循环落地扇电池版温湿度传感器实体缺失 #632

Closed ChristianSwift closed 1 year ago

ChristianSwift commented 2 years ago

dmaker.fan.p220

preset_modes: Straight Wind, Natural Wind, Smart, Sleep
oscillating: true
percentage: 100
percentage_step: 1
preset_mode: Straight Wind
model: dmaker.fan.p220
lan_ip: 10.4.0.163
mac_address: 58:B6:23:11:BA:FE
entity_class: MiotFanEntity
miot_type: urn:miot-spec-v2:device:fan:0000A005:dmaker-p220:1
fan.on: true
fan.fan_level: 4
fan.mode: 0
fan.horizontal_swing: true
horizontal_swing_included_angle-2-5: 120
fan.vertical_swing: true
vertical_swing_included_angle-2-8: 35
dm_service.speed_level: 100
dm_service.swing_updown_manual.error: -4003 Property/Action/Event does not exist
dm_service.swing_lr_manual.error: -4003 Property/Action/Event does not exist
dm_service.on: false
dm_service.temperature: 28
dm_service.off: false
dm_service-8.temperature: 23
dm_service.swing_all.error: -4003 Property/Action/Event does not exist
off_delay_time: 0
temperature-9-1: 25.8
relative_humidity-9-2: 57
physical_controls_locked: false
alarm: true
indicator_light.on: true
state_updater: lan
sub_entities: off_delay_time-3.off_delay_time-1, physical_controls_locked-7.physical_controls_locked-1, indicator_light-4
friendly_name: 电风扇
supported_features: 11
image
al-one commented 2 years ago

你可以通过自定义sensor_properties选项来添加温湿度传感器。

另外该设备还有两个可写的temperature属性,不知道是干嘛的,可以通过自定义number_properties来控制它们: