# Change XYZ to the UID of your Humidity Bricklet

setup:
	# Get threshold callbacks with a debounce time of 10 seconds (10000ms)
	publish '{"debounce": 10000}' to tinkerforge/request/humidity_bricklet/XYZ/set_debounce_period
	
	# Handle incoming humidity reached callbacks
	subscribe to tinkerforge/callback/humidity_bricklet/XYZ/humidity_reached
	publish '{"register": true}' to tinkerforge/register/humidity_bricklet/XYZ/humidity_reached # Register humidity_reached callback
	
	# Configure threshold for humidity "outside of 30 to 60 %RH"
	publish '{"option": "outside", "min": 300, "max": 600}' to tinkerforge/request/humidity_bricklet/XYZ/set_humidity_callback_threshold
