@@ -597,6 +597,7 @@ export const occupancy_with_timeout: Fz.Converter<"msOccupancySensing", undefine
597597 const timer = setTimeout ( ( ) => {
598598 publish ( { occupancy : false } ) ;
599599 } , timeout * 1000 ) ;
600+ timer . unref ( ) ;
600601
601602 globalStore . putValue ( msg . endpoint , "occupancy_timer" , timer ) ;
602603 }
@@ -1100,6 +1101,7 @@ export const ias_vibration_alarm_1_with_timeout: Fz.Converter<"ssIasZone", undef
11001101 const timer = setTimeout ( ( ) => {
11011102 publish ( { vibration : false } ) ;
11021103 } , timeout * 1000 ) ;
1104+ timer . unref ( ) ;
11031105
11041106 globalStore . getValue ( msg . endpoint , "timers" ) . push ( timer ) ;
11051107 }
@@ -1294,6 +1296,7 @@ export const ias_occupancy_alarm_1_with_timeout: Fz.Converter<"ssIasZone", undef
12941296
12951297 if ( timeout !== 0 ) {
12961298 const timer = setTimeout ( ( ) => publish ( { occupancy : false } ) , timeout * 1000 ) ;
1299+ timer . unref ( ) ;
12971300 globalStore . putValue ( msg . endpoint , "timer" , timer ) ;
12981301 }
12991302
@@ -1471,6 +1474,7 @@ export const command_move: Fz.Converter<"genLevelCtrl", undefined, ["commandMove
14711474 const deltaProperty = postfixWithEndpointName ( "action_brightness_delta" , msg , model , meta ) ;
14721475 publish ( { [ property ] : brightness , [ deltaProperty ] : delta } ) ;
14731476 } , intervalOpts ) ;
1477+ timer . unref ( ) ;
14741478
14751479 globalStore . putValue ( msg . endpoint , "simulated_brightness_timer" , timer ) ;
14761480 }
@@ -1912,6 +1916,7 @@ export const checkin_presence: Fz.Converter<"genPollCtrl", undefined, ["commandC
19121916 clearTimeout ( globalStore . getValue ( msg . endpoint , "timer" ) ) ;
19131917
19141918 const timer = setTimeout ( ( ) => publish ( { presence : false } ) , timeout * 1000 ) ;
1919+ timer . unref ( ) ;
19151920 globalStore . putValue ( msg . endpoint , "timer" , timer ) ;
19161921
19171922 return { presence : true } ;
0 commit comments