diff --git a/core/class/philipsHue.class.php b/core/class/philipsHue.class.php index 0b349f9..c85c56a 100644 --- a/core/class/philipsHue.class.php +++ b/core/class/philipsHue.class.php @@ -881,7 +881,7 @@ public static function syncState($_bridge_number = 1, $_datas = null) { if (isset($data['temperature'])) { $eqLogic->checkAndUpdateCmd($data['id'], $data['temperature']['temperature']); } - if (isset($data['button'])) { + if (isset($data['button']) && isset($data['button']['last_event'])) { $eqLogic->checkAndUpdateCmd($data['id'], $data['button']['last_event']); } if (isset($data['contact_report'])) {