mirror of
				https://github.com/blakeblackshear/frigate.git
				synced 2025-10-27 10:52:11 +01:00 
			
		
		
		
	Set motion switch on mqtt connection (#3149)
This commit is contained in:
		
							parent
							
								
									0a4d658c7f
								
							
						
					
					
						commit
						5b71271b3c
					
				| @ -240,6 +240,11 @@ def create_mqtt_client(config: FrigateConfig, camera_metrics): | ||||
|             "ON" if config.cameras[name].detect.enabled else "OFF", | ||||
|             retain=True, | ||||
|         ) | ||||
|         client.publish( | ||||
|             f"{mqtt_config.topic_prefix}/{name}/motion/state", | ||||
|             "ON", | ||||
|             retain=True, | ||||
|         ) | ||||
|         client.publish( | ||||
|             f"{mqtt_config.topic_prefix}/{name}/improve_contrast/state", | ||||
|             "ON" if config.cameras[name].motion.improve_contrast else "OFF", | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user