Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added OXT WiFi-3CH #843

Merged
merged 2 commits into from
Oct 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Binary file added src/docs/devices/OXT-WiFi-3CH/device.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
103 changes: 103 additions & 0 deletions src/docs/devices/OXT-WiFi-3CH/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
---
title: OXT Wi-Fi 3CH
date-published: 2024-09-25
type: relay
standard: global
board: bk72xx
difficulty: 4
---

## General Notes

This is Polish brand based on a other Chinese product. Based on Tuya CB3S Board.

## Product Images

![main view](/device.jpg "DEVICE")
![pcb](/pcb.jpg "PCB")

## Programming

Solder USB TTL wires like below

![soldering](/soldering.jpg "soldering")

To enter bootloader mode, ground CEN pin and power device. I used https://github.com/libretiny-eu/ltchiptool to program it

## GPIO Pinout

### OXT Wi-Fi 3CH - PCB ZH-Z02-A REV:C

| Pin | Function |
|-----|------------|
| P7 | Relay #1 |
| P8 | Relay #2 |
| P9 | Relay #3 |
| P14 | Status LED |

## Basic Configuration

```yaml
substitutions:
device_name: oxt-3ch

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

bk72xx:
board: cb3s

logger:

captive_portal:

status_led:
pin:
number: GPIO9
inverted: true

switch:
- platform: gpio
pin: P7
id: relay1
- platform: gpio
pin: P8
id: relay2
- platform: gpio
pin: P9
id: relay3

binary_sensor:
- platform: gpio
pin:
number: P6
mode: INPUT_PULLUP
inverted: True
name: ${device_name} switch 1
on_press:
- light.toggle: relay1
on_release:
- light.toggle: relay1
- platform: gpio
pin:
number: P24
mode: INPUT_PULLUP
inverted: True
name: ${device_name} switch 2
on_press:
- light.toggle: relay2
on_release:
- light.toggle: relay2
- platform: gpio
pin:
number: P26
mode: INPUT_PULLUP
inverted: True
name: ${device_name} switch 3
on_press:
- light.toggle: relay3
on_release:
- light.toggle: relay3

```
Binary file added src/docs/devices/OXT-WiFi-3CH/pcb.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/OXT-WiFi-3CH/soldering.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading