Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

salus-it600

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

salus-it600

A JavaScript package to communicate with Salus internet connected thermostats.

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Client for Salus iT600

A JavaScript package to communicate with Salus internet connected thermostats.

Installation

npm install salus-it600

Usage

Salus authentication requires a username and password. This is exchanged for a short-lived security token. There is no way to refesh the tokens, so unfortunately we need to keep the username and password in memory.

All request methods are promise-based.

const Salus = require("salus-it600");
const salus = new Salus({ username: "example@email.com", password: "secret" });

salus.devices().then(console.log);

Limitations

This library is provided "as-is" with limited testing. Currently only thermostats connected to under-floor heating, using Celsius (i.e. not Fahrenheit) have been tested.

Methods

devices

List all thermostats associated with the account.

await salus.devices();
Return
[{
    id: 'a0b1',
    name: 'Given Room Name',
    current: 18,
    target: 21,
    mode: 'AUTO_HIGH',
    heating: true
}, ... ]

setTarget

Set the target temperature for a thermostat. Requires the id of the thermostat to modify, from devices.

await salus.setTarget({ id: "a0b1", temperature: 18 });

The return value from the API is always 0, even if the command is unsuccessful.

setMode

Sets the operating mode for the thermostat. Requires the id of the thermostat to modify, from devices.

await salus.setMode({ id: "a0b1", mode: "PARTY" });

The return value from the API is always 0, even if the command is unsuccessful.

Modes

Thermostats can be set to the following modes:

  • AUTO_HIGH
  • AUTO_MEDIUM
  • AUTO_LOW
  • HIGH
  • MEDIUM
  • LOW
  • PARTY
  • AWAY
  • FROST

Thermostats will be in one of the above modes, or return one of these additional modes:

  • OFFLINE
  • ON
  • UNDEFINED

FAQs

Package last updated on 02 Jul 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc