Skip to content

Instantly share code, notes, and snippets.

@giannoug
Created December 2, 2023 13:22
Show Gist options
  • Save giannoug/bed011900b65a10706e0868f6007beef to your computer and use it in GitHub Desktop.
Save giannoug/bed011900b65a10706e0868f6007beef to your computer and use it in GitHub Desktop.
Sample ESPHome configuration file for Sinilink USB Computer Remote (XY-WPCL)
# Sinilink USB Computer Remote (XY-WPCL)
esphome:
name: reveille
friendly_name: reveille
esp8266:
board: esp8285
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "ic7UxxyAR84XjNaBWM9J7v6qwlqnfNRrbKkl5h9UZeY="
ota:
password: "d7c44adb4c535eedbcff34d6db1f9df3"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Reveille Fallback Hotspot"
password: "l6mxHKwplQHN"
captive_portal:
web_server:
port: 80
light:
- platform: status_led
name: Blue LED
id: blue_led
pin:
number: GPIO02
inverted: true
binary_sensor:
- platform: gpio
name: Button
id: onboard_button
pin:
number: GPIO04
mode: INPUT_PULLUP
inverted: true
- platform: gpio
name: Case power button
id: case_pwr_btn
pin:
number: GPIO10
mode: INPUT_PULLUP
inverted: true
- platform: gpio
name: Motherboard power LED
id: mobo_pwr_led
pin:
number: GPIO12
mode: INPUT_PULLUP
inverted: true
switch:
- platform: gpio
name: Motherboard power button
id: mobo_pwr_btn
pin: GPIO05
button:
- platform: template
name: Motherboard power button press
id: mobo_pwr_btn_press
on_press:
- switch.turn_on: mobo_pwr_btn
- delay: 500ms
- switch.turn_off: mobo_pwr_btn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment