# Change XYZ to the UID of your Humidity Bricklet 2.0

setup:
	# Handle incoming humidity callbacks
	subscribe to tinkerforge/callback/humidity_v2_bricklet/XYZ/humidity
	publish '{"register": true}' to tinkerforge/register/humidity_v2_bricklet/XYZ/humidity # Register humidity callback
	
	# Configure threshold for humidity "outside of 30 to 60 %RH"
	# with a debounce period of 10s (10000ms)
	publish '{"period": 10000, "value_has_to_change": false, "option": "outside", "min": 3000, "max": 6000}' to tinkerforge/request/humidity_v2_bricklet/XYZ/set_humidity_callback_configuration  
