diff --git a/src/SuplaBundle/Controller/Api/ChannelMeasurementLogsController.php b/src/SuplaBundle/Controller/Api/ChannelMeasurementLogsController.php index ede20d40b..23eaed9b2 100644 --- a/src/SuplaBundle/Controller/Api/ChannelMeasurementLogsController.php +++ b/src/SuplaBundle/Controller/Api/ChannelMeasurementLogsController.php @@ -428,7 +428,8 @@ public function getMeasurementLogsAction(Request $request, IODeviceChannel $chan private function findTargetChannel(IODeviceChannel $channel): IODeviceChannel { $targetChannel = $channel; - if (in_array($channel->getFunction()->getId(), [ChannelFunction::POWERSWITCH, ChannelFunction::LIGHTSWITCH])) { + if (in_array($channel->getFunction()->getId(), [ChannelFunction::POWERSWITCH, ChannelFunction::LIGHTSWITCH, + ChannelFunction::STAIRCASETIMER])) { $relatedMeasurementChannelId = $channel->getParam1(); if ($relatedMeasurementChannelId) { $targetChannel = $this->channelRepository->findForUser($channel->getUser(), $relatedMeasurementChannelId);