forked from dhewg/esphome-miot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
zhimi.humidifier.ca4.yaml
156 lines (144 loc) · 3.07 KB
/
zhimi.humidifier.ca4.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
# https://home.miot-spec.com/spec/zhimi.humidifier.ca4
external_components:
source: github://dhewg/esphome-miot@main
esphome:
name: living_room_air_humidifier
friendly_name: Living Room Air Humidifier
comment: Smartmi Evaporative Humidifier 2 (zhimi.humidifier.ca4)
project:
name: "dhewg.esphome-miot"
version: "zhimi.humidifier.ca4"
esp32:
board: esp32doit-devkit-v1
framework:
type: esp-idf
sdkconfig_options:
CONFIG_FREERTOS_UNICORE: y
advanced:
ignore_efuse_mac_crc: true
logger:
level: INFO
api:
encryption:
key: "xxx"
reboot_timeout: 0s
services:
- service: mcu_command
variables:
command: string
then:
- lambda: 'id(miot_main).queue_command(command);'
ota:
- platform: esphome
password: "xxx"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
ap:
ssid: "Mihumidifier Fallback"
password: "xxx"
uart:
tx_pin: GPIO17
rx_pin: GPIO16
baud_rate: 115200
miot:
id: miot_main
switch:
- platform: "miot"
miot_siid: 2
miot_piid: 1
name: "Power"
icon: mdi:power
- platform: "miot"
miot_siid: 2
miot_piid: 8
name: "Dry"
icon: mdi:water-minus
- platform: "miot"
miot_siid: 4
miot_piid: 1
name: "Notification Sounds"
icon: mdi:volume-high
entity_category: config
- platform: "miot"
miot_siid: 6
miot_piid: 1
name: "Child Lock"
icon: mdi:lock
entity_category: config
- platform: "miot"
miot_siid: 7
miot_piid: 5
name: "Clean Mode"
icon: mdi:water-minus
entity_category: config
select:
- platform: "miot"
miot_siid: 2
miot_piid: 5
name: "Fan level"
icon: mdi:fan
options:
0: "Auto"
1: "Low"
2: "Medium"
3: "High"
- platform: "miot"
miot_siid: 5
miot_piid: 2
name: "Display brightness"
icon: mdi:brightness-6
entity_category: config
options:
0: "Dark"
1: "Glimmer"
2: "Brightest"
sensor:
- platform: "miot"
miot_siid: 2
miot_piid: 2
name: "Device Fault Code"
icon: mdi:fan-alert
entity_category: diagnostic
- platform: "miot"
miot_siid: 3
miot_piid: 7
name: "Temperature"
unit_of_measurement: "°C"
device_class: temperature
state_class: "measurement"
icon: mdi:thermometer
- platform: "miot"
miot_siid: 3
miot_piid: 9
name: "Relative Humidity"
unit_of_measurement: "%"
device_class: humidity
state_class: "measurement"
icon: mdi:water-percent
- platform: "miot"
miot_siid: 2
miot_piid: 7
name: "Water Level"
unit_of_measurement: "%"
state_class: "measurement"
icon: mdi:water-percent
filters:
- clamp:
min_value: 0
max_value: 100
ignore_out_of_range: true
- platform: "miot"
miot_siid: 2
miot_piid: 11
name: "Motor Speed"
unit_of_measurement: "rpm"
icon: mdi:fan
- platform: "miot"
miot_siid: 7
miot_piid: 1
name: "Actual Speed"
unit_of_measurement: "rpm"
icon: mdi:fan
- platform: internal_temperature
name: "MCU Temperature"