daikin/api

Manage your Daikin air conditional.

1.1.1 2021-05-21 12:59 UTC

This package is auto-updated.

Last update: 2021-09-21 13:41:29 UTC


README

Basic usage

<?php
require_once('vendor/autoload.php');

use Daikin\SendAirconControlInfo;
use Daikin\Connect;
use Daikin\Enums\Mode;
use Daikin\GetAirconModelInfo;
use Daikin\GetBasicInformation;
use Daikin\GetRemoteMethod;
use Daikin\GetAirconSensorInfo;
use Daikin\Enums\Power;

$test = new Connect('192.168.1.117'); //the IP of the AIRCON

var_dump((new GetBasicInformation($test))->format());
var_dump((new GetRemoteMethod($test))->format());
var_dump((new GetAirconModelInfo($test))->format());
var_dump((new GetAirconSensorInfo($test))->format());
var_dump((new SendAirconControlInfo($test))->push([
     'pow' => Power::OFF,
     'mode' => Mode::COLD,
     'stemp' => 20,
     'shum' => 0,
     'f_rate' => 'B',
     'f_dir' => 3,
]));