mirror of
https://github.com/CyanoFresh/SmartHomePHP.git
synced 2026-03-04 00:54:03 +01:00
Close #30 - By API call
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user