Flashen Mini Smart Switch with Beken-Chip
Автор: FLASH IT
Загружено: 2024-04-25
Просмотров: 327
Hier zeige ich euch, wie ich einen "bk7231n"-Chip mit ESPHOME flashe, welcher in einem Mini Smart Switch verbaut ist.
Nachmachen auf eigene Gefahr, Zerstörung und Garantieverlust möglich!
yaml-Code:
esphome:
name: bekenmss-04
friendly_name: BekenMSS_04
bk72xx:
board: generic-bk7231n-qfn32-tuya
Enable logging
logger:
Enable Home Assistant API
api:
encryption:
key: "API-KEY"
ota:
password: "OTA-PASSWORT"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Bekenmss-04 Fallback Hotspot"
password: "AP-Passwort"
captive_portal:
switch:
platform: gpio
pin: P7
name: "Bek_Relay04"
id: Bek_Relay04
light:
platform: binary
name: "Beken_LED04"
output: light_output4
output:
id: light_output4
platform: gpio
pin: P26
binary_sensor:
platform: gpio
pin:
number: P6
mode:
input: true
pullup: true
on_state:
switch.toggle: Bek_Relay04
filters:
delayed_on: 10ms
name: "Bek_But04"
platform: gpio
pin:
number: P23
mode:
input: true
pullup: true
on_press:
switch.turn_off: Bek_Relay04
filters:
delayed_on: 10ms
name: "Bek_But04a"
uart:
id: uart_bus
tx_pin: P11
rx_pin: P10
baud_rate: 4800
stop_bits: 1
#Power monitor:
sensor:
platform: bl0942
uart_id: uart_bus
voltage:
name: 'Bek_04 Voltage'
current:
name: 'Bek_04 Current'
power:
name: 'Bek_04 Power'
filters:
multiply: 1
energy:
name: 'BLBek_040942 Energy'
frequency:
name: "Bek_04 Frequency"
accuracy_decimals: 2
update_interval: 5s
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: