Sonoff Basic Switch Light Switch

Sonoff Basic Switch Light Switch

Description

In designing this, my goal was to make it easy to print, simple and hopefully aesthetically pleasing (not look like a 3d printed part). All the parts can be printed without support (with the exception of the bezel). There are no screws or soldering required. Should be able to print all parts in normal resolution. There is a compression spring I added to the button. You can get them on Amazon for cheap. The size needed is 7mm x 12.5mm. I designed guides for cutting the vertical tabs, so it can be mounted in a standard light switch box, or metal switch box (see photo). Install is super easy 1. Print all the parts 2. Put the board in the box, align the button/led 3. Slide on the back cover 4. Connect the hot and neutral wires to the bottom terminals labeled "H" and "L" on the box using the screw holes. 5. Connect the switched hot to the open terminal on the top. 6. Turn on the breaker and test it. 7. snap the button + spring + bezel on top and close it all up, and mount it to the box 8. Mount the face cover to the box. I use homeAssitant and ESPhome to program them so the blue led comes on when the power is off, easy to find in the dark. Here's the config section for doing that... ------ESPHome connfig------- binary_sensor: - platform: gpio id: push_button pin: number: GPIO0 mode: INPUT_PULLUP inverted: True name: "XXX Light Switch" internal: true on_press: # Prevents unintended LED lit states. if: condition: - switch.is_off: relay then: - switch.turn_off: blue_led - switch.turn_on: relay else: - switch.turn_off: relay - switch.turn_on: blue_led switch: # The relay switches on the red side of the LED when active. - platform: gpio name: "XXX Lights" pin: GPIO12 id: relay on_turn_off: - switch.turn_on: blue_led on_turn_on: - switch.turn_off: blue_led # With this we can control the blue side of the LED. - platform: gpio id: blue_led pin: number: GPIO13 inverted: True

Statistics

Likes

4

Downloads

0

Category

Household