Giter Club home page Giter Club logo

baxi-node-red's Introduction

baxi-node-red

A node red flow to communicate with Baxi thermostat Mago (BDR Thermea compatible)

Introduction

After the implementation of the My Baxi app, the node red script I found online didn't work anymore since Baxi (aka BDR Thermea Group) moved their platform to Azure and implemented OAuth 2.0 authentication protocol. After some more searching, I discovered this repository https://github.com/msvisser/remeha_home for integrate the Remeha Thermostat (same BRD Thermea Group) in Home Assistant.

After reverse engineering the python code, changed all the "remeha" strings to "baxi", with some help of Postman, I was able to replicate the integration for Node-Red.

(BTW if you want to use the msvisser's HA integration for Baxi, just replace the strings in all the files, as mentioned earlier).

How it works

Get Token Once

the first part gets the first access token through a four step http request. The node automatically inject the request once at startup and store the tokens for later use.

Notice to set your Baxi email and password (the same used to access the "My Baxi" app) in the function node called "Step 2".

Get Refresh Token every 1h

The second Part request a new access token every hour and store the received tokens in the flow.

Get All Data From Thermostat

This part get all the possible data from the thermostat, you can see all the available information published by the thermostat in the Data Debug Node. The flow stores the climate-zone-id needed for the commands/requests to the thermostat.

Commands

With the following commands you'll be able to controll the themostat.

Manual Manually change the setpoint of the thermostat indefinitely

temporary-override Change the setpoint of the thermostat until the next schedule occurs

schedule Reset to the shedule you choose (I have only one, so I set "1" to "heatingProgramId" in the function flow

anti-frost Turn Off the thermostat

Fireplace Enable/Disable the fireplace mode

Node-Red Flow

The Node-Red Flow

Finally here you have the flow: https://github.com/alessandromatera/baxi-node-red/blob/main/baxi-node-red-flow.json Just copy and paste in your Node-Red

Enjoy!

baxi-node-red's People

Contributors

alessandromatera avatar

Watchers

 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.