Code Monkey home page Code Monkey logo

pyecovent's Introduction

pyEcoventV2

Python3 library for single-room energy recovery ventilators from Vents / Blauberg / Flexit

Install

pip3 install pyEcoventV2

Example usage

from ecovent import Fan
""" Create a new fan with IP Address """
""" The Fan object takes 'host', 'name', 'port' as arguments """
""" 'host' (IP address) is the only mandatory argument """
""" 'name' is optional and will default to ecofan """
""" 'port' is also optional and will default to 4000 """"
fan=Fan("192.168.0.22")

""" Optinally create a Fan with a name  
fan=Fan("192.168.0.22", "Cellar Fan")

""" Update the current values of the fan """
fan.update()


""" Print the current configured values """
print(fan.state)
print(fan.speed)
print(fan.man_speed)
print(fan.airflow)
print(fan.humidity)

""" Set speed to medium (low=1 / medium=2 / high=3) """
fan.set_speed(2)
print(fan.speed)

""" Set fan state to off/on """
fan.set_state_off()
fan.set_state_on()

""" Set manual speed to 123 (valid values 22 -> 255) """
fan.set_man_speed(123)
print(fan.man_speed)

""" Set airflow to 'Air Supply' (ventilation=0 / heat recovery=1 / air supply=2)"""
fan.set_airflow(2)
print(fan.airflow)

Intended usage

The intended usage of this library is to include ventilation fans from Vents / Blauberg / Flexit in https://www.home-assistant.io/

Tested fans

This library has only been tested on the following fans:

Fans from Flexit are identical and should work, but this is not yet tested:

Changelog

  • v 0.9.9. -- initialize _battery_voltage with 0 not None

pyecovent's People

Contributors

aglehmann avatar gody01 avatar simeneide avatar

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.