public function dimState()
    {
        $currentState = $this->bridge->getBulbState($this->deviceId);
        $level = explode(':', $currentState[1])[0];
        $percent = round(($level*100)/255);

        return $percent;
    }
public function dimState()
    {
        $currentState = $this->bridge->getBulbState($this->deviceId);
        $level = explode(':', $currentState[1])[0];
        $percent = round(($level*100)/255);

        return $percent;
    }
public function dimState ( ) { $ currentState = $ this -> bridge -> getBulbState ( $ this -> deviceId ) ; $ level = explode ( ':' , $ currentState [ 1 ] ) [ 0 ] ; $ percent = round ( ( $ level * 100 ) / 255 ) ; return $ percent ; }
Returns dim level

@return mixed
Returns dim level