Skip to content
Draft
Show file tree
Hide file tree
Changes from 25 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
7310073
Create index.md
Patbonamy May 14, 2025
bdaf7d0
Update index.md
Patbonamy May 14, 2025
5c47b20
Update index.md
Patbonamy May 16, 2025
4244fe1
Update index.md
Patbonamy May 16, 2025
3ceb282
Update index.md
Patbonamy May 16, 2025
6ebd94e
Add files via upload
Patbonamy May 16, 2025
76e4618
Update index.md
Patbonamy May 16, 2025
61bd4ab
Update index.md
Patbonamy May 16, 2025
e61f86b
Rename Smart Wifi Switch 1.jpg to Smart_Wifi_Switch_1.jpg
Patbonamy May 16, 2025
37a1723
Rename Smart Wifi Switch 2.jpg to Smart_Wifi_Switch_2.jpg
Patbonamy May 16, 2025
627d2d5
Rename Wiring Smart Wifi Switch.jpg to Wiring_Smart_Wifi_Switch.jpg
Patbonamy May 16, 2025
cd085de
Update index.md
Patbonamy May 16, 2025
5acde15
Rename Smart_Wifi_Switch_1.jpg to SmartWifiSwitch1.jpg
Patbonamy May 16, 2025
f30238b
Rename Smart_Wifi_Switch_2.jpg to SmartWifiSwitch2.jpg
Patbonamy May 16, 2025
439c215
Rename Wiring_Smart_Wifi_Switch.jpg to WiringSmartWifiSwitch.jpg
Patbonamy May 16, 2025
b7296a8
Update index.md
Patbonamy May 16, 2025
10f78ca
Update index.md
Patbonamy May 16, 2025
16ea9e0
Update index.md
Patbonamy May 16, 2025
ef2c49f
Update index.md
Patbonamy May 16, 2025
8dd2ee2
Merge branch 'esphome:main' into main
Patbonamy May 17, 2025
df04044
Create index.md
Patbonamy May 17, 2025
3d74d8e
Add files via upload
Patbonamy May 17, 2025
808a8b8
Delete src/docs/devices/eMylo-Smart-swtch directory
Patbonamy May 17, 2025
0ae1a09
Create index.md
Patbonamy May 17, 2025
01999bf
Add files via upload
Patbonamy May 17, 2025
b5a4301
Merge branch 'main' into main
Patbonamy May 22, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
153 changes: 153 additions & 0 deletions src/docs/devices/SMART-HOME-WiFi-Smart-Switch/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
---
title: SMART HOME Wifi Smart Switch
date-published: 2025-05-14
type: relay
standard: eu
board: esp8266
difficulty: 3 & 4
---
![alt text](SmartWifiSwitch1.jpeg "SMART HOME Wifi Smart Switch 1")
![alt text](SmartWifiSwitch2.jpeg "SMART HOME Wifi Smart Switch 2 ")
![alt text](WiringSmartWifiSwitch.jpg "SMART HOME Wifi Smart Switch Wiring")
![alt text](M32-V1.0.png "M320V1Board")

## Wiring

Take care there's high voltage on the board when it is connected to the AC power, the best is to power with another 3.3v power suply, do not connect the board to AC power.

## Pinout

| Pin | Function |
| --- | ------------|
| GPIO04 | Push Button |
| GPIO05 | Relay |
| GPIO13 | Led |

## Basic Configuration for esp8266

Base on https://devices.esphome.io/devices/Tuya-WiFi-Smart-Switch-SB2S

```yaml

esphome:
name: "relay"
friendly_name: Relay

esp8266:
board: esp01_1m

# Enable logging
logger:

# Enable Home Assistant API
api:
encryption:
key: "your key"

ota:
- platform: esphome
password: "ota password"

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

# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Relay Fallback Hotspot"
password: !secret ap_password

captive_portal:
# Enable Web server
web_server:
port: 80

# Sync time with Home Assistant
time:
- platform: homeassistant
id: homeassistant_time

# Text sensors with general information
text_sensor:
# Expose ESPHome version as sensor
- platform: version
name: Relay
# Expose WiFi information as sensors
- platform: wifi_info
ip_address:
name: Relay IP
ssid:
name: Relay SSID
bssid:
name: Relay BSSID

# Sensors with general information
sensor:
# Uptime sensor.
- platform: uptime
name: Relay Uptime

# WiFi Signal sensor
- platform: wifi_signal
name: Relay WiFi Signal
update_interval: 60s

# Exposed switches.
switch:
# Switch to restart the ESP
- platform: restart
name: Relay Restart

# Relay
- platform: output
name: "${device_friendly_name} Relay"
icon: ${device_icon}
output: relayoutput
id: relay
on_turn_on:
- light.turn_on: led
on_turn_off:
- light.turn_off: led
restore_mode: ALWAYS_OFF

# Substitution Variables

substitutions:
device_friendly_name: Relay
device_icon: "mdi:power"

# Status LED If there is an error in ESPhome, the LED will flash. If everything is OK, the indicator can be controlled from HA

light:
- platform: status_led
name: "Switch state"
id: led
pin:
number: 13
inverted: true
# Binary Sensors

binary_sensor:
# Button
- platform: gpio
id: button
pin:
number: 4
inverted: true
mode: INPUT_PULLUP
on_press:
then:
- switch.toggle: relay
filters:
- delayed_on_off: 50ms

# Relays

output:
# Relay
- platform: gpio
id: relayoutput
pin: 5
# inverted: true

```
Binary file added src/docs/devices/TYWE2S-pinouts.pdf
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
153 changes: 153 additions & 0 deletions src/docs/devices/eMylo-Smart-Switch/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
---
title: eMylo Smart Switch
date-published: 2025-05-17
type: relay
standard: global
board: esp8266
difficulty: 3 & 4
---
![alt text](eMyloSmartSwitch1.jpeg "SeMylo Smart Switch 1")
![alt text](eMyloSmartSwitch2.jpeg "eMylo Smart Switch 2 ")
![alt text](eMyloSmartSwitchWiring.jpg "eMylo Smart Switch Wiring")
![alt text](TYWE2S-pinouts.pdf "TYWE2SBoard")

## Wiring

Take care there's high voltage on the board when it is connected to the AC power, the best is to power with another 3.3v power suply, do not connect the board to AC power.

## Pinout

| Pin | Function |
| --- | ------------|
| GPIO14 | Push Button |
| GPIO12 | Relay |
| GPIO04 | Led |

## Basic Configuration for esp8266

Base on https://devices.esphome.io/devices/Tuya-WiFi-Smart-Switch-SB2S

```yaml

esphome:
name: "relay"
friendly_name: Relay

esp8266:
board: esp01_1m

# Enable logging
logger:

# Enable Home Assistant API
api:
encryption:
key: "your key"

ota:
- platform: esphome
password: "ota password"

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

# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Relay Fallback Hotspot"
password: !secret ap_password

captive_portal:
# Enable Web server
web_server:
port: 80

# Sync time with Home Assistant
time:
- platform: homeassistant
id: homeassistant_time

# Text sensors with general information
text_sensor:
# Expose ESPHome version as sensor
- platform: version
name: Relay
# Expose WiFi information as sensors
- platform: wifi_info
ip_address:
name: Relay IP
ssid:
name: Relay SSID
bssid:
name: Relay BSSID

# Sensors with general information
sensor:
# Uptime sensor.
- platform: uptime
name: Relay Uptime

# WiFi Signal sensor
- platform: wifi_signal
name: Relay WiFi Signal
update_interval: 60s

# Exposed switches.
switch:
# Switch to restart the ESP
- platform: restart
name: Relay Restart

# Relay
- platform: output
name: "${device_friendly_name} Relay"
icon: ${device_icon}
output: relayoutput
id: relay
on_turn_on:
- light.turn_on: led
on_turn_off:
- light.turn_off: led
restore_mode: ALWAYS_OFF

# Substitution Variables

substitutions:
device_friendly_name: Relay
device_icon: "mdi:power"

# Status LED If there is an error in ESPhome, the LED will flash. If everything is OK, the indicator can be controlled from HA

light:
- platform: status_led
name: "Switch state"
id: led
pin:
number: 04
inverted: true
# Binary Sensors

binary_sensor:
# Button
- platform: gpio
id: button
pin:
number: 14
inverted: true
mode: INPUT_PULLUP
on_press:
then:
- switch.toggle: relay
filters:
- delayed_on_off: 50ms

# Relays

output:
# Relay
- platform: gpio
id: relayoutput
pin: 12
# inverted: true

```
Binary file added src/docs/devices/eMyloSmartSwitch1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/docs/devices/eMyloSmartSwitch2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/docs/devices/eMyloSmartSwitchWiring.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.