Phue\Command\SetGroupState::scene PHP Method

scene() public method

Set scene
public scene ( mixed $scene ) : self
$scene mixed Scene id or Scene object
return self This object
    public function scene($scene)
    {
        $this->params['scene'] = (string) $scene;
        return $this;
    }

Usage Example

Beispiel #1
0
 /**
  * Set scene on group
  *
  * @param mixed $scene
  *            Scene id or Scene object
  *
  * @return self This object
  */
 public function setScene($scene)
 {
     $x = new SetGroupState($this);
     $y = $x->scene((string) $scene);
     $this->client->sendCommand($y);
     return $this;
 }