first commit
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
fan:
|
||||
- platform: xiaomi_airfresh
|
||||
host: !secret breaser_ip
|
||||
token: !secret breaser_token
|
||||
name: AirFresh
|
||||
model: dmaker.airfresh.a1
|
||||
|
||||
input_boolean:
|
||||
airfresh_ptc:
|
||||
name: Бризер(подогрев)
|
||||
|
||||
automation:
|
||||
- alias: AirFreshPtcOn
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: input_boolean.airfresh_ptc
|
||||
to: 'on'
|
||||
action:
|
||||
service: fan.airfresh_set_ptc_on
|
||||
- alias: AirFreshPtcOff
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: input_boolean.airfresh_ptc
|
||||
to: 'off'
|
||||
action:
|
||||
service: fan.airfresh_set_ptc_off
|
||||
@@ -0,0 +1,19 @@
|
||||
fan:
|
||||
- platform: xiaomi_miio
|
||||
model: zhimi.airpurifier.mc1
|
||||
host: !secret purifier_ip
|
||||
token: !secret purifier_key
|
||||
|
||||
homeassistant:
|
||||
customize:
|
||||
fan.xiaomi_miio_device:
|
||||
friendly_name: Очиститель воздуха
|
||||
|
||||
sensor:
|
||||
- platform: template
|
||||
sensors:
|
||||
xiaomi_airpurifier_air_quality_pm25:
|
||||
friendly_name: "Air quality"
|
||||
value_template: "{{ state_attr('fan.xiaomi_miio_device', 'aqi') }}"
|
||||
unit_of_measurement: "μg/m³"
|
||||
icon_template: "mdi:weather-fog"
|
||||
Reference in New Issue
Block a user