Skip to content

Instantly share code, notes, and snippets.

@SqyD
Created November 28, 2023 09:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SqyD/438e66ed2406bf32fa1625c0ec66e2ec to your computer and use it in GitHub Desktop.
Save SqyD/438e66ed2406bf32fa1625c0ec66e2ec to your computer and use it in GitHub Desktop.
Connect the Wiccon 2023 Badge to Home Assistant
# Simple configuration to connect the event badge for Wiccon 2023 to Home Assistant through Esphome
# More info:
# Wiccon: wiccon.nl
# Wiccon 2023 Badge: https://github.com/Wietsman/wiccon_badge_2023
# ESPHome: esphome.io
# Home Assistant: home-assistant.io
esphome:
name: wiccon-badge
friendly_name: wiccon badge
esp8266:
board: esp01_1m
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "CHANGEME"
ota:
password: "CHANGEME"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Wiccon-Badge Fallback Hotspot"
password: "CHANGEME"
captive_portal:
binary_sensor:
- platform: gpio
pin:
number: GPIO04
mode:
input: true
pullup: true
name: "Badge Mode Button"
light:
- platform: neopixelbus
type: GRB
variant: WS2812X
pin: GPIO14
num_leds: 8
name: "Badge Lights"
effects:
- pulse:
- random:
- strobe:
- flicker:
- addressable_rainbow:
- addressable_color_wipe:
- addressable_fireworks:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment