Você está no 3DFinder
Buscamos em Thingiverse, MakerWorld e Printables ao mesmo tempo para te dar o melhor de cada uma.
Descrição
This is a box designed for a button. You can connect it to Home Assistant and start automations with it. It uses an LED ring to give the user feedback or to block the button by showing a red color.
On the bottom side, there is a slot where you can slide in a wooden stick. The lid is glued on the top with hot glue. The hole for the power cable is also glued so no moisture can enter the box.
The button has a diameter of 12 mm, and the LED ring is a WS2812b smart LED ring. I used a normal ESP32 and flashed it with ESPHome.
Materials:
LED Ring: WS2812b LED Ring, 50 mm, 16 LEDs
Push Button: 12 mm Waterproof Push Button
ESP32: AZDelivery ESP32 NodeMCU Development Board
ESPHome Code:
esphome:
name: schlittenbutton
friendly_name: Schlittenbutton
esp32:
board: esp32dev
framework:
type: arduino
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "1nwK1UVL1+AVmF/FDaye7j8S6cYnfWxzb1yC0pk7ISs="
ota:
- platform: esphome
password: "4657a54d8d3987f77f501b816ef1c03d"
wifi:
ssid: "XXXXXXXX"
password: "XXXXXXXXX"
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Schlittenbutton Fallback Hotspot"
password: "z0TgYlDgoM0W"
captive_portal:
# Configure the button
binary_sensor:
- platform: gpio
pin:
number: 13
mode: INPUT_PULLUP
inverted: true
name: "Button"
# Configure the WS2812B LED ring
light:
- platform: neopixelbus
variant: WS2812
type: GRB
pin: 12
num_leds: 16
name: "LED Ring"
id: led_ring
effects:
- addressable_rainbow:
- addressable_color_wipe:
- random
# Setup 3 LEDs styles: Blue, Green, Red.