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.
go get -u github.com/redgoose/daikin-skyport
This library requires the email and password associated with your Daikin account.
d := daikin.New("your@email.com", "yourPassword")
devices, err := d.GetDevices()
deviceInfo, err := d.GetDeviceInfo("0000000-0000-0000-0000-000000000000")
params := daikin.SetTempParams{CoolSetpoint: 17.5}
err := d.SetTemp(deviceId, params)
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.
Run all tests from the root folder by running:
go test -v
MIT © redgoose, see LICENSE for details.