@@ -2457,7 +2457,7 @@ private static function executeActionNewEvent($eqLogicId, $event)
24572457 log::add ("frigateActions " , 'debug ' , "║ Commande en cour d'éxècution car la condition est ignorée " );
24582458 } else {
24592459 log::add ("frigateActions " , 'info ' , "║ " . $ eqLogic ->getHumanName () . ' : actions non exécutées car ' . $ conditionIf . ' est vrai. ' );
2460- log::add ("frigateActions " , 'debug ' , "╠════════════════════════════════════ " );
2460+ // log::add("frigateActions", 'debug', "╠════════════════════════════════════");
24612461 continue ;
24622462 }
24632463
@@ -2771,38 +2771,36 @@ public static function handleMqttMessage($_message)
27712771 }
27722772
27732773 foreach ($ _message [self ::getTopic ()] as $ key => $ value ) {
2774- log::add (__CLASS__ , 'info ' , 'handle Mqtt Message pour : :b: ' . $ key . ':/b: ' );
2775- log::add (__CLASS__ , 'debug ' , 'handle Mqtt Message pour : :b: ' . $ key . ':/b: = ' . json_encode ($ value ));
2774+ log::add (" frigateMQTT " , 'info ' , 'handle Mqtt Message pour : :b: ' . $ key . ':/b: ' );
2775+ log::add (" frigateMQTT " , 'debug ' , 'handle Mqtt Message pour : :b: ' . $ key . ':/b: = ' . json_encode ($ value ));
27762776
27772777 switch ($ key ) {
27782778 case 'events ' :
27792779 if (version_compare ($ version , "0.14 " , "< " )) {
2780- log::add (__CLASS__ , 'info ' , ' => Traitement mqtt events <0.14 ' );
2780+ log::add (" frigateMQTT " , 'info ' , ' => Traitement mqtt events <0.14 ' );
27812781 self ::getEvents (true , [$ value ['after ' ]], $ value ['type ' ]);
27822782 event::add ('frigate::events ' , array ('message ' => 'mqtt_update ' , 'type ' => 'event ' ));
27832783 } else {
2784- log::add (__CLASS__ , 'info ' , ' => Traitement mqtt events non exécuté, version >= 0.14, utilisation de reviews. ' );
2784+ log::add (" frigateMQTT " , 'info ' , ' => Traitement mqtt events non exécuté, version >= 0.14, utilisation de reviews. ' );
27852785 }
27862786 break ;
27872787
27882788 case 'reviews ' :
27892789 $ eventId = $ value ['after ' ]['data ' ]['detections ' ][0 ];
27902790 $ eventType = $ value ['type ' ];
27912791 log::add (__CLASS__ , 'info ' , ' => Traitement mqtt manual event <= ' );
2792- // log::add("frigateActions", 'debug', 'Zone entrée : ' . $value['before']['zones'][0]);
2793- // log::add("frigateActions", 'debug', 'Zone sortie : ' . $value['after']['zones'][0]);
27942792
27952793 self ::getEvent ($ eventId , $ eventType );
27962794 event::add ('frigate::events ' , array ('message ' => 'mqtt_update_manual ' , 'type ' => 'event ' ));
27972795 break ;
27982796
27992797 case 'stats ' :
2800- log::add (__CLASS__ , 'info ' , ' => Traitement mqtt stats ' );
2798+ log::add (" frigateMQTT " , 'info ' , ' => Traitement mqtt stats ' );
28012799 self ::majStatsCmds ($ value , true );
28022800 break ;
28032801
28042802 case 'available ' :
2805- log::add (__CLASS__ , 'info ' , ' => Traitement mqtt available ' );
2803+ log::add (" frigateMQTT " , 'info ' , ' => Traitement mqtt available ' );
28062804 $ cmd = self ::createCmd ($ eqlogicId , "Disponibilité " , "string " , "" , "info_available " , "" , 0 , null , 0 , "info " );
28072805 $ cmd ->event ($ value );
28082806 $ cmd ->save ();
@@ -2814,7 +2812,7 @@ public static function handleMqttMessage($_message)
28142812 continue 2 ;
28152813 }
28162814
2817- log::add (__CLASS__ , 'info ' , ' => Traitement mqtt camera ' . $ key );
2815+ log::add (" frigateMQTT " , 'info ' , ' => Traitement mqtt camera ' . $ key );
28182816 self ::processCameraData ($ eqCamera , $ key , $ value );
28192817 break ;
28202818 }
@@ -2924,7 +2922,7 @@ private static function updateCameraState($eqCamera, $type, $state, $jeemateStat
29242922 $ infoCmd ->event ($ stateValue );
29252923 $ infoCmd ->save ();
29262924 $ eqCamera ->refreshWidget ();
2927- log::add (__CLASS__ , 'debug ' , 'L \'etat de la commande ' . $ type . ' a été modifié, mise a jour du status. ' );
2925+ log::add (" frigateMQTT " , 'debug ' , 'L \'etat de la commande ' . $ type . ' a été modifié, mise a jour du status. ' );
29282926 }
29292927 }
29302928 }
0 commit comments