Giter Club home page Giter Club logo

broker-ari's Introduction

broker-ari

This is an experiment to host an MQTT broker for Ariston water heater devices so it is possible to manage them over LAN (something every vendor should provide by default). It is also an API server that is compatible with the official API (https://www.ariston-net.remotethermo.com/api/v2/).

However, it is not feature complete, not well-tested and does not support all models.

Architecture

This software consists of three modules:

  • MQTT proxy
  • DNS server
  • API server

An MQTT broker is listening on :8883 and accepts connections from your Ariston devices. You need to tweak your network so that the broker-ari.everyware-cloud.com hostname gets resolved to the IP address where this MQTT broker of this software is listening. You may do that by configuring static IP settings on the appliance and set the DNS resolver to the IP address where the DNS server of this software is listening.

This software also supports relaying the MQTT messages to the official MQTT broker of the vendor back and forth. This feature is turned on by default. This means, if you use the official mobile app and it calls the official API (the real service), everything should just work smoothly.

The API server has been tested with the https://pypi.org/project/ariston/ client.

Supported operations

  • Retrieving temperatures (current/set)
  • Retrieving mode (e.g. BOOST)
  • Set mode
  • Set temperature

Tested appliances

  • Lydos Hybrid

Example

$ openssl req -nodes -x509 -sha256 -newkey rsa:2048 \
  -keyout  broker-ari.everyware-cloud.com.key \
  -out  broker-ari.everyware-cloud.com.crt \
  -days 356 \
  -subj "/C=NL/ST=Zuid Holland/L=Rotterdam/O=ACME Corp/OU=IT Dept/CN=broker-ari.everyware-cloud.com"  \
  -addext "subjectAltName = DNS:broker-ari.everyware-cloud.com" 
$ ./broker-ari --mqtt-broker-certificate-path ./broker-ari.everyware-cloud.com.crt --mqtt-broker-private-key-path ./broker-ari.everyware-cloud.com.key --api-username someuser --api-password somepass

broker-ari's People

Contributors

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