# Change XYZ to the UID of your Ambient Light Bricklet 2.0

setup:
	# Get threshold callbacks with a debounce time of 10 seconds (10000ms)
	publish '{"debounce": 10000}' to tinkerforge/request/ambient-light-v2_bricklet/XYZ/set_debounce_period
	
	# Handle incoming illuminance reached callbacks
	subscribe to tinkerforge/callback/ambient_light_v2_bricklet/XYZ/illuminance_reached
	publish '{"register": true}' to tinkerforge/register/ambient_light_v2_bricklet/XYZ/illuminance_reached # Register illuminance_reached callback
	
	# Configure threshold for illuminance "greater than 500 lx"
	publish '{"option": "greater", "min": 50000, "max": 0}' to tinkerforge/request/ambient_light_v2_bricklet/XYZ/set_illuminance_callback_threshold
