Skip to main content

Globe 50329 Smart Plug 🅱️

This device is not ESP based and will require Cloudcutter/ESPHome LibreTiny due to the CB2S module (bk7231n) chipset.

GPIO Layout

GPIOComponentDescription
P7LED Status
P24Relay
P26Button

Firmware

1.1.7 - BK7231N / oem_bk7231n_plug

ESPHome YAML

substitutions:
name: globe-motion
friendly_name: Globe Motion

esphome:
name: ${name}
name_add_mac_suffix: true

bk72xx:
board: generic-bk7231n-qfn32-tuya

logger:
api:
ota:
platform: esphome

wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
ap:
ssid: ${name}AP
password: "ESPNotHome"

captive_portal:

web_server:

text_sensor:
- platform: libretiny
version:
name: LibreTiny Version

binary_sensor:
- platform: gpio
id: binary_switch_1
pin:
number: P26
inverted: true
mode: INPUT_PULLUP
on_press:
then:
- switch.toggle: switch_1

switch:
- platform: gpio
id: switch_1
name: Relay 1
pin: P24

status_led:
pin:
number: P7
inverted: true