Skip to content

API library for interacting with Daikin One+ thermostats

License

Notifications You must be signed in to change notification settings

redgoose/daikin-skyport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Daikin Skyport API

Overview

Daikin Skyport is a library for interacting with Daikin One+ devices/thermostats.

This library uses an undocumented API that is currently used by the Daikin One Home mobile app. As such, the API could change at any moment and break this library.

For a more stable, but less feature rich library based on published docs, check out the Daikin Skyport Integrator API.

Installation

go get -u github.com/redgoose/daikin-skyport

Usage

This library requires the email and password associated with your Daikin account.

d := daikin.New("your@email.com", "yourPassword")

List devices

devices, err := d.GetDevices()

Get device info

deviceInfo, err := d.GetDeviceInfo("0000000-0000-0000-0000-000000000000")

Set cooling temperature

params := daikin.SetTempParams{CoolSetpoint: 17.5}
err := d.SetTemp(deviceId, params)

Direct JSON requests

You can use the built-in functions like above or make direct JSON requests using the UpdateDeviceRaw function.

err := d.UpdateDeviceRaw("0000000-0000-0000-0000-000000000000", `{"mode": 2, "lightBarBrightness" : 2}`)

You can include as many properties as you need in a single request as long as it is valid.

Full docs can be found here.

Testing

Run all tests from the root folder by running:

go test -v

License

MIT © redgoose, see LICENSE for details.

About

API library for interacting with Daikin One+ thermostats

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages