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

setup:
	# Handle incoming illuminance callbacks
	subscribe to tinkerforge/callback/ambient_light_v3_bricklet/XYZ/illuminance
	publish '{"register": true}' to tinkerforge/register/ambient_light_v3_bricklet/XYZ/illuminance # Register illuminance callback
	
	# Configure threshold for illuminance "greater than 500 lx"
	# with a debounce period of 1s (1000ms)
	publish '{"period": 1000, "value_has_to_change": false, "option": "greater", "min": 50000, "max": 0}' to tinkerforge/request/ambient_light_v3_bricklet/XYZ/set_illuminance_callback_configuration  
