Close #30 - By API call

This commit is contained in:
Alex Solomaha
2017-01-02 18:56:39 +02:00
parent 1e3dc0a7db
commit aacb5eefd4
4 changed files with 148 additions and 6 deletions

View File

@@ -89,6 +89,35 @@ class WebSocketAPI
]);
}
/**
* @param int $itemID
* @param string $mode
* @param bool $start
* @return bool
* @internal param array $rgbData
*/
public function rgbMode($itemID, $mode, $start)
{
return $this->send([
'type' => 'rgbMode',
'item_id' => $itemID,
'mode' => $mode,
'start' => $start,
]);
}
/**
* @param int $triggerID
* @return bool
*/
public function trig($triggerID)
{
return $this->send([
'type' => 'trig',
'trigger_id' => $triggerID,
]);
}
/**
* @param array $data
* @return bool