Giter Site home page Giter Site logo

whr_930's Introduction

WHR 930

Manage a Storkair WHR 930 system using MQTT.

See also my blog posting I wrote about the WHR 930

Installation

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 clone the repository and install the required dependencies:

For installation, you can choose between installing the bridge as a system service or use Docker.

Installing as system service

Follow these steps to clone the repository, install required dependencies, configure the service and install it:

git clone https://github.com/Mosibi/whr_930.git
sudo apt-get install python3-serial python3-pip python3-yaml
cd whr_930
vi src/config.yaml
sudo pip3 install -r src/requirements.txt
sudo make install
sudo systemctl start whr930.service

Using Docker

Follow these steps to clone the repository, configure the service and run it through Docker.

git clone https://github.com/Mosibi/whr_930.git
cd whr_930
vi src/config.yaml
docker build -t wtw-bridge .
docker run -d --device=/dev/ttyUSB0 wtw-bridge

Or include it in a docker-compose.yml as follows:

wtw-bridge:
  build: ./whr_930
  restart: always
  devices:
    - /dev/ttyUSB0

Home Assistant configuration

Image

Copy src/wtw.yaml in the config/includes directory of your home assistant installation and modify the file configuration yaml to include the following:


homeassistant:
  < ... your other config settings under homeassistant ... >
  packages:
    wtw: !include includes/wtw.yaml

Add the content of src/lovelace.yaml to your current dashboard configuration, it will place the WTW configuration in a separate tab.

Voice control integration

When you integrate Amazon Alexa or Google Home or some other voice control method, it is possible to set the ventilation to a certain level using a voice command. In includes/wtw.yaml a virtual fan is created which can be called from the emulated_hue component or Home Assistant Cloud to execute the voice command.

To use with the emulated_hue component, add the following to your configuration.yaml and let Alexa do a discovery of the devices (Alexa discover devices). For Google Home users it may work, but there is a big warning on the emulated_hue page which states that new users have to use the google_assistant or the Home Assistant Cloud integration

emulated_hue:
  advertise_ip: <ip address>
  expose_by_default: false
  exposed_domains:
    - fan
  entities:
    fan.ventilation:
      hidden: false

iamhaller learned me that with Home Assistant Cloud you have to configure Google Home or Alexa after which you can expose the virtual fan. Image

External resources

I've extended the possibilities of the standard Lovelace interface using multiple plugins. Visit those pages and follow the installation instructions for them:

Note: the lovelace-wtw repo links points to my own fork of Tim's code. I created a pull request for his version to make it compatible with my code. When that PR is accepted, I will use his version.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.