fineemb / lovelace-air-filter-card

用于Lovelace的小米空气净化器卡片
12 stars 9 forks source link

Suggestion: change to Speed #7

Closed pkishino closed 3 years ago

pkishino commented 4 years ago

Hello, Ive got one xiaomi air purifier 2s and one 3 now. The problem is the model 3 has changed to use numbers instead of string in the mode.. I started to adapt the card and such but got held up with other things. But looking at the attributes, I am not sure why you picked mode instead of speed? anyway, here is model 3 attributes:

speed_list: Auto, Silent, Favorite, Fan
speed: Auto
model: zhimi.airpurifier.ma4
temperature: 24.1
humidity: 62
aqi: 1
mode: 0
filter_hours_used: 135
filter_life_remaining: 96
favorite_level: 14
child_lock: true
led: true
motor_speed: 390
average_aqi: 1
purify_volume: 5306
use_time: 486600
buzzer: false
led_brightness: 1
filter_rfid_product_id: 0:0:30:33
filter_rfid_tag: 80:67:b7:da:40:fa:4
filter_type: regular
fan_level: 1
friendly_name: Air purity 3
supported_features: 1