2017 © Pedro Peláez
 

symfony-bundle sdk-domoticz-bundle

PHP Domoticz API Bundle for symfony.

image

dodev34/sdk-domoticz-bundle

PHP Domoticz API Bundle for symfony.

  • Sunday, October 1, 2017
  • by dodev34
  • Repository
  • 1 Watchers
  • 0 Stars
  • 23 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 5 % Grown

The README.md

Documentation

Installation

with composer, (*1)

$ composer require dodev34/sdk-domoticz-bundle

Configuration

in you AppKernel file app/AppKenel.php, (*2)

public function registerBundles()
{
    $bundles = [
        // ...
        new M12U\Bundle\Sdk\DomoticzBundle\M12USdkDomoticzBundle(),
        // ...
    ];

    // ...
}

in your config file app/config/config.yml, (*3)

m12_u_sdk_domoticz:
    username: YOU_USERNAME
    password: YOU_PASSWORD
    base_uri: http://<you ip domoticz address>:8080

Note :

Make sure you have entered a username and password in your Domoticz application, (*4)

Services

Client name Method Doc
command getSunRiseSet Get sunrise and sunset times
command addLogMessage Add a log message to the Domoticz log
command getLightSwitches Get all lights/switches
command switchLight
command setColbrightnessValue
device getDevices Return list of device(s)
device getDevice Retrieve status of specific device

exemple with log message command, (*5)

$provider = $container->get('m12u.sdk.domoticz.provider_proxy');
$command = $provider->getClient('command');

$result = $command->addLogMessage("you message here");
// result {"status":"OK","title":"AddLogMessage"}

AddLogMessage, (*6)

todo: Finish creating the proxy for the rest of the api endpoints official doc for domiticz : https://www.domoticz.com/wiki/Domoticz_API/JSON_URL%27s, (*7)

The Versions

01/10 2017

dev-master

9999999-dev

PHP Domoticz API Bundle for symfony.

  Sources   Download

MIT

The Requires

 

by Michel Dourneau #m12u

30/07 2017

1.0.0

1.0.0.0

PHP Domoticz API Bundle for symfony.

  Sources   Download

MIT

The Requires

 

by Michel Dourneau #m12u