A project utilizing MicroPython and a magnetic reed switch for triggering an alarm (email, Philips Hue light, etc)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

29 lines
783 B

config = {}
config["wifi_ssid"] = ""
config["wifi_pass"] = ""
config["sensor_pin"] = 4 # Sets Pin.PULL_UP
config["device_name"] = "Front Door Alarm" # Device sending alert
#
# UNCOMMENT AND CONFIGURE FEATURES
#
config["config_button"] = 23 # Pin containing stop/start button
config["config_led"] = 5 # Pin with LED
config["phue"] = {}
config["phue"]["group"] = 3 # the light group to flash
config["phue"]["color1"] = (244, 0, 0)
config["phue"]["color2"] = (0, 0, 204)
config["phue"]["flash_count"] = 3
config["smtp"] = {}
config["smtp"]["server"] = ""
config["smtp"]["ssl"] = True
config["smtp"]["port"] = 465
config["smtp"]["subject"] = "Front door open"
config["smtp"]["from"] = ""
config["smtp"]["to"] = ""
config["smtp"]["username"] = ""
config["smtp"]["password"] = ""