public function renderWebCmd(DeviceInterface $device)
 {
     $webCmds = explode(':', $device->getAttribute('webCmd')->getValue());
     foreach ($webCmds as &$cmd) {
         $cmd = '<a class="webCmdLink" href="' . $this->endpoint . '/fhem?detail=' . $device->getName() . '&cmd.' . $device->getName() . '=set%20' . $device->getName() . '%20' . $cmd . '">' . $cmd . '</a>';
     }
     return implode(' | ', $webCmds);
 }
 public function renderDeviceRoom(DeviceInterface $device)
 {
     $rooms = explode(',', $device->getAttribute('room')->getValue());
     foreach ($rooms as &$room) {
         $room = '<a href="' . $this->router->generate('frontend.default.room', array('name' => $room)) . '">' . $room . '</a>';
     }
     return implode(', ', $rooms);
 }