equation-connect
    Preparing search index...

    equation-connect

    Equation Connect

    Tests codecov Documentation npm version

    This is a library for the Reverse Engineered Equation & Rointe Connect Firebase API.

    The Equation Connect is an app for controlling wifi radiators, like the Emisor fluido EQUATION Adagio 1250w from Leroy Merlin. The library is also compatible with Rointe Connect since it uses the same infrastructure, but different connection paramters.

    • providing an open source web alternative to the proprietary mobile app
    • remote backlight setup
    • access to temperature sensors
    • improving the interoperability (Nest, HomeAssistant...)
    yarn add equation-connect
    

    Here's a basic example for logging and retrieving installations information.

    import { createClient } from "equation-connect";

    const showInstallations = async (email, password) => {
    const client = createClient();
    const user = await client.login(email, password);
    const installations = await client.getInstallations(user.uid);
    console.log(installations);
    };
    showInstallations(process.env.EMAIL, process.env.PASSWORD);

    Explore the documentation for more: https://andremiras.github.io/equation-connect.js

    The library includes a CLI tool that is useful for debugging.

    yarn cli login --email $EMAIL --password $PASSWORD
    yarn cli getInstallations --email $EMAIL --password $PASSWORD
    yarn cli getDevice --email $EMAIL --password $PASSWORD --device-id $DEVICE_ID
    yarn cli setDevicePower --email $EMAIL --password $PASSWORD --device-id $DEVICE_ID --value true
    yarn cli setDevicePreset --email $EMAIL --password $PASSWORD --device-id $DEVICE_ID --value comfort
    yarn cli setDeviceTemperature --email $EMAIL --password $PASSWORD --device-id $DEVICE_ID --value 20
    yarn cli setDeviceMode --email $EMAIL --password $PASSWORD --device-id $DEVICE_ID --value manual

    Or with npx once the library is installed:

    npx equation-connect getDevice --email $EMAIL --password $PASSWORD --device-id $DEVICE_ID
    

    Use --config rointe to connect to Rointe instead of Equation:

    yarn cli login --email $EMAIL --password $PASSWORD --config rointe