Skip to content

Commit

Permalink
refine saswell
Browse files Browse the repository at this point in the history
  • Loading branch information
Yonsm committed Dec 12, 2023
1 parent b418b50 commit 1840d7e
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 24 deletions.
9 changes: 6 additions & 3 deletions configuration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,12 @@ fan: !include fans.yaml
mqtt: !include mqtt.yaml

climate:
# - platform: zhisaswell
# username: !secret saswell_username
# password: !secret saswell_password
- platform: zhisaswell
name: 客厅地暖
host: 192.168.1.56
- platform: zhisaswell
name: 主卧地暖
host: 192.168.1.57
- platform: zhimodbus
name: [餐厅空调, 客厅空调, 主卧空调, 儿童房空调]
fan_mode: { registers: [6, 10, 14, 18] }
Expand Down
2 changes: 1 addition & 1 deletion modules/ZhiSaswell
40 changes: 20 additions & 20 deletions mqtt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,26 +88,26 @@ sensor:
state_topic: device/zm1/b0f893249132/sensor
value_template: '{{ value_json.formaldehyde }}'
unit_of_measurement: mg/m³
# - name: 过道温度
# device_class: temperature
# state_topic: device/zm1/b0f8931ea148/sensor
# value_template: '{{ value_json.temperature }}'
# unit_of_measurement: °C
# - name: 过道湿度
# device_class: humidity
# state_topic: device/zm1/b0f8931ea148/sensor
# value_template: '{{ value_json.humidity }}'
# unit_of_measurement: '%'
# - name: 过道空气质量
# device_class: pm25
# state_topic: device/zm1/b0f8931ea148/sensor
# value_template: '{{ value_json.PM25 }}'
# unit_of_measurement: µg/m³
# - name: 过道甲醛
# icon: mdi:biohazard
# state_topic: device/zm1/b0f8931ea148/sensor
# value_template: '{{ value_json.formaldehyde }}'
# unit_of_measurement: mg/m³
- name: 过道温度
device_class: temperature
state_topic: device/zm1/b0f8931ea148/sensor
value_template: '{{ value_json.temperature }}'
unit_of_measurement: °C
- name: 过道湿度
device_class: humidity
state_topic: device/zm1/b0f8931ea148/sensor
value_template: '{{ value_json.humidity }}'
unit_of_measurement: '%'
- name: 过道空气质量
device_class: pm25
state_topic: device/zm1/b0f8931ea148/sensor
value_template: '{{ value_json.PM25 }}'
unit_of_measurement: µg/m³
- name: 过道甲醛
icon: mdi:biohazard
state_topic: device/zm1/b0f8931ea148/sensor
value_template: '{{ value_json.formaldehyde }}'
unit_of_measurement: mg/m³

switch:
- name: 餐厅筒灯
Expand Down

0 comments on commit 1840d7e

Please sign in to comment.