Skip to content

Commit

Permalink
Add Geekbes-YM-WS-1 (#944)
Browse files Browse the repository at this point in the history
* Added geekbes-ym-ws-1

* Better message
  • Loading branch information
DanPlayz0 authored Dec 15, 2024
1 parent ff599b3 commit 4ce7087
Show file tree
Hide file tree
Showing 2 changed files with 85 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
85 changes: 85 additions & 0 deletions src/docs/devices/Geekbes-YM-WS-1/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
---
title: Geekbes YM-WS-1 Plug
date-published: 2024-12-10
type: plug
standard: us
board: esp8266
---

![alt text](geekbes_YM-WS-1.png "Geekbes YM-WS-1 Plug")

The GPIO pinout was learned from [Blakadder Tasmota](https://templates.blakadder.com/geekbes_YM-WS-1.html) documentation and adapted through trial and error.

## GPIO Pinout

| Pin | Function |
| ------ | ------------------- |
| GPIO12 | LedLink |
| GPIO13 | Button |
| GPIO15 | Relay |

## Basic Configuration

```yaml
substitutions:
name: geekbes-ym-ws-1
friendly_name: Geekbes YM-WS-1 Plug

esphome:
name: ${name}
friendly_name: ${friendly_name}

esp8266:
board: esp01_1m

# Enable logging
logger:

# Enable Home Assistant API
api:

ota:
- platform: esphome

wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
ap:

captive_portal:

binary_sensor:
# Connected to HA
- platform: status
name: "Status"

# the on off button
- platform: gpio
pin: GPIO13
filters:
- invert:
- delayed_on: 100ms
- delayed_off: 100ms
- delayed_on_off: 100ms
name: "${friendly_name} Button"
on_press:
- switch.toggle: relay

switch:
# the relay that controls the output power
- platform: gpio
pin: GPIO15
name: "${friendly_name}"
id: relay
on_turn_on:
- switch.turn_on: blue_led
on_turn_off:
- switch.turn_off: blue_led

# the indicator led in the on off button
- platform: gpio
pin:
number: GPIO12
inverted: true
id: blue_led
```

0 comments on commit 4ce7087

Please sign in to comment.