Manage a Storkair WHR 930 system using MQTT.
This (python) code uses some libraries that need to be installed. Assuming you are using a Raspberry Pi or another Debian based Linux distribution, the following command's will install the dependencies
$ sudo apt-get install python3-serial python3-pip python3-yaml
$ sudo pip3 install paho-mqtt
After installing the dependencies, clone this repository and modify the MQTT settings in src/whr930.py and run sudo make install
.
$ git clone https://github.com/Mosibi/whr_930.git
$ vi src/whr930.py
$ sudo make install
$ sudo systemctl start whr930.service
input_number:
set_wtw_ventilation_level:
name: Set ventilation level
initial: 2
min: 0
max: 3
step: 1
mode: box
automation:
- alias: Ventilation level slider moved in GUI
trigger:
platform: state
entity_id: input_number.set_wtw_ventilation_level
action:
service: mqtt.publish
data_template:
topic: house/2/attic/wtw/set_ventilation_level
retain: false
payload: "{{ states('input_number.set_wtw_ventilation_level') | int }}"
customize:
sensor.wtw_intake_fan_speed:
icon: mdi:fan
sensor.wtw_exhaust_fan_speed:
icon: mdi:fan
sensor:
- platform: mqtt
state_topic: "house/2/attic/wtw/outside_air_temp"
name: "WTW Outside Temperature"
qos: 0
unit_of_measurement: '°C'
- platform: mqtt
state_topic: "house/2/attic/wtw/supply_air_temp"
name: "WTW Supply Temperature"
qos: 0
unit_of_measurement: '°C'
- platform: mqtt
state_topic: "house/2/attic/wtw/return_air_temp"
name: "WTW Return Temperature"
qos: 0
unit_of_measurement: '°C'
- platform: mqtt
state_topic: "house/2/attic/wtw/exhaust_air_temp"
name: "WTW Exhaust Temperature"
qos: 0
unit_of_measurement: '°C'
- platform: mqtt
state_topic: "house/2/attic/wtw/ventilation_level"
name: "WTW Ventilation Level"
qos: 0
- platform: mqtt
state_topic: "house/2/attic/wtw/filter_status"
name: "WTW Filter Status"
qos: 0
- platform: mqtt
state_topic: "house/2/attic/wtw/intake_fan_speed"
name: "WTW Intake Fan Speed"
qos: 0
unit_of_measurement: '%'
- platform: mqtt
state_topic: "house/2/attic/wtw/exhaust_fan_speed"
name: "WTW Exhaust Fan Speed"
qos: 0
unit_of_measurement: '%'