diff --git a/modules/api/components/WebSocketAPIBridge.php b/modules/api/components/WebSocketAPIBridge.php index 98c013f..8cced53 100644 --- a/modules/api/components/WebSocketAPIBridge.php +++ b/modules/api/components/WebSocketAPIBridge.php @@ -76,7 +76,7 @@ class WebSocketAPIBridge public function turnOn($itemID) { return $this->send([ - 'type' => 'turnON', + 'type' => 'turn_on', 'item_id' => $itemID, ]); } @@ -88,7 +88,7 @@ class WebSocketAPIBridge public function turnOff($itemID) { return $this->send([ - 'type' => 'turnOFF', + 'type' => 'turn_off', 'item_id' => $itemID, ]); }