# Change XYZ to the UID of your UV Light Bricklet

setup:
	# Get threshold callbacks with a debounce time of 10 seconds (10000ms)
	publish '{"debounce": 10000}' to tinkerforge/request/uv-light_bricklet/XYZ/set_debounce_period
	
	# Handle incoming UV light reached callbacks
	subscribe to tinkerforge/callback/uv_light_bricklet/XYZ/uv_light_reached
	publish '{"register": true}' to tinkerforge/register/uv_light_bricklet/XYZ/uv_light_reached # Register uv_light_reached callback
	
	# Configure threshold for UV light "greater than 75 mW/m²"
	publish '{"option": "greater", "min": 750, "max": 0}' to tinkerforge/request/uv_light_bricklet/XYZ/set_uv_light_callback_threshold
