1.0.14 • Published 10 months ago

oj-electronics-thermostat v1.0.14

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
10 months ago

OJ Electronics Thermostat Controls

I am not fully aware of all the devices that use the same api, but HeatMat and OJ Electronics both provide a thermostat that uses the same backend but with different customer codes:

This library supports

Customer Ids

So far I am aware of two customer ids

Thermostat BrandCustomer Code
HeatMat99
Oj Electronics1

Create a Session

const API_KEY = 'f219aab4-9ac0-4343-8422-b72203e2fac9';
const USERNAME = '<your username>';
const PASSWORD = '<your password>';

const CUSTOMER_ID = 1;

const api = OJElectronics(API_KEY, CUSTOMER_ID);
const session = await api.session(USERNAME, PASSWORD);

Session Information

const groups = await session.groups();

const firstGroup = groups[0];

await firstGroup.ecoMode();

Thanks to this forum post for the API details: https://community.home-assistant.io/t/mwd5-wifi-thermostat-oj-electronics-microtemp/445601

1.0.14

10 months ago

1.0.13

10 months ago

1.0.12

10 months ago

1.0.11

10 months ago

1.0.10

10 months ago

1.0.9

10 months ago

1.0.8

10 months ago

1.0.7

10 months ago

1.0.6

10 months ago

1.0.5

10 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago