I tried to install espHome to this device and all worked well while using an external power supply.
When I disconnect the serial and the external power supply i’m not able to start it anymore. Connecting the 230V AC results in multiple relay noise, and it seems that the device continue to reboot.
I think it’s related to the big cpu power consumption that causes a blackout with the small internal AC-DC supply. If I disconnect 230V and reconnect 3.3V external power supply all starts working…
Following my yaml, how can I modify it to avoid that problem?
Thanks
esphome:
name: "aubess-pm1"
bk72xx:
board: cb2s
# Enable Home Assistant API
api:
logger:
ota:
platform: esphome
wifi:
networks:
- ssid: "Dim-GB0"
password: !secret wifi_password
- ssid: "Dim-GB"
password: !secret wifi_password
ap:
ssid: "testDIY Fallback Hotspot"
password: "asdasdasd"
binary_sensor:
- platform: gpio
pin:
number: P23
mode:
input: true
pullup: true
id: "PB_reset"
on_press:
- switch.toggle: aubespm01
- platform: gpio
pin:
number: P24
mode:
input: true
pullup: True
id: "PB_ext"
on_press:
- switch.toggle: aubespm01
on_release:
- switch.toggle: aubespm01
- platform: status
name: "Status"
sensor:
- platform: wifi_signal
update_interval: 10s
id: wifi_signal_db
- platform: uptime
name: "Uptime"
- platform: copy
source_id: wifi_signal_db
name: "WiFi Signal Percent"
filters:
- lambda: return min(max(2 * (x + 100.0), 0.0), 100.0);
unit_of_measurement: "%"
- platform: bl0942
uart_id: uart_bus
voltage:
name: 'Voltage'
current:
name: 'Current'
power:
name: 'Power'
filters:
multiply: -1
energy:
name: 'Energy'
frequency:
name: "Frequency"
accuracy_decimals: 2
update_interval: 60s
output:
- platform: gpio
pin: P8
id: led
switch:
- platform: gpio
name: "relay"
pin: P26
id: aubespm01
restore_mode: RESTORE_DEFAULT_OFF
on_turn_on:
then:
- output.turn_on: led
on_turn_off:
then:
- output.turn_off: led
captive_portal:
uart:
id: uart_bus
tx_pin: P11 #TX
rx_pin: P10 #RX
baud_rate: 4800
stop_bits: 1