/** * @param Filter $filter * @return mixed */ public function execute(Filter $filter = null) { $json = file_get_contents($this->endpoint . '/fhem?cmd=jsonlist2%20' . $filter->__toString() . '&XHR=1'); // TODO: need error handling here return json_decode($json); }