eq3-bluetooth-thermostat
Use this library to control your "equiva Bluetooth Smart" or "eQ-3 Bluetooth Smart" radiator thermostats with javascript. Works both in the Browser (with Web Bluetooth) and with Node.js (using Bluez, linux only).
At the moment only manual mode is supported, no timers or vacation mode.
Based on the great API write-up in Heckie75/eQ-3-radiator-thermostat.
nodejs library usage
requires a modern Bluez version with BLE support
setup:
$ npm i eq3-bluetooth-thermostat webbluetooth-bluez
minimal example:
const getStatus = ;const getBluetoothDevice = ;const dbus = ; async { let bus = dbus; let device = await ; console; bus;};
web usage
; // ... let device = await navigatorbluetooth; console;
See examples/thermostat.html for a more complete example.
bonus: cli tool
$ npm i -g eq3-bluetooth-thermostat webbluetooth-bluez
$ eq3-thermostat
Usage: eq3-thermostat <device address> get-status
set-temperature <temperature>
enable-boost
disable-boost
on
off
$ eq3-thermostat 01:23:45:67:89:AB get-status
{ status:
{ manual: true,
holiday: false,
boost: false,
dst: true,
openWindow: false,
lowBattery: false },
valvePosition: 0,
targetTemperature: 21.5 }
API
; ;;;;