1.0.14 • Published 8 months ago

oj-electronics-thermostat v1.0.14

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
8 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

8 months ago

1.0.13

8 months ago

1.0.12

8 months ago

1.0.11

8 months ago

1.0.10

8 months ago

1.0.9

8 months ago

1.0.8

8 months ago

1.0.7

8 months ago

1.0.6

8 months ago

1.0.5

8 months ago

1.0.3

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago