Code Monkey home page Code Monkey logo

smart-home-vallox's Introduction

Stefans Smart Home Vallox Client

CI Quality Gate Status Coverage EPL-2.0

This is a client that controls Vallox MV ventilation units.

Motivation

I own a Vallox ValloPlus 270 MV and wanted to connect it to my own smart home system.

For this use case I needed a simple and clean Java/Kotlin client.

Credits

This project is based on the work of Björn Brings for the OpenHab ValloxMV Binding.

I extracted the communication logic, converted everything to Kotlin and refactored it to be usable without OpenHab.

Supported devices

  • Vallox 270 MV
  • Vallox 350 MV
  • Vallox 510 MV

Usage

This is a sample how to getting started.

val uri = ValloxClient.createURI("192.168.0.31")

val valloxClient: ValloxClient = ValloxClientImpl(uri)

/* Set Profile to "At home" */
valloxClient.switchProfile(ValloxProfile.AT_HOME)

/* Set fan speed of "At home" profile to 50% */
valloxClient.setFanSpeed(ValloxProfile.AT_HOME, 50)

/* Set target temperature of "At home" profile to 21° C */
valloxClient.setTargetTemperature(ValloxProfile.AT_HOME, 21)

val valloxStatus = valloxClient.readStatus()

println("Returned Status: $valloxStatus")

The interface ValloxClient has many more methods.

Dependencies

If you want to use it you need these additional dependencies on your classpath.

implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.10"
implementation "org.eclipse.jetty.websocket:websocket-jetty-client:11.0.3"
implementation "org.slf4j:slf4j-simple:1.7.30"

smart-home-vallox's People

Contributors

dependabot[bot] avatar stefanoltmann avatar

Stargazers

 avatar

Watchers

 avatar  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.