No, just the general python installer for windows
https://www.python.org/ftp/python/3.10.8/python-3.10.8-amd64.exe
Then follow the instructions here
No, just the general python installer for windows
https://www.python.org/ftp/python/3.10.8/python-3.10.8-amd64.exe
Then follow the instructions here
I have a Vivitar HA-1005N-AU smart plug with an unmarked ESP module that I would like to load with ESPHome.
I can guess some of the pin info from makings on the mainboard but the Blackadder template is missing the pinout that shows the Tx and RX.
Does anyone have a pinout for this module ??
Looks to be the same chip in this, please see attached photos for pinouts
OK, I’ll check it out.
OK that worked, plug is now running ESPHome.
Board info:
Pinout
1-Vcc
2-RX
3-GPIO4 (red led)
4-GPIO0
5-GPIO13 (button)
6-
7-Reset
8-
9-GPIO12 (relay)
10-
11-
13-
13-TX
14-Gnd
Can be handy Tuya CloudCutter & ESPHome Libretuya How To Guide for Beken Chips | No soldering! - YouTube
I bought some WiFi power monitoring smart plugs and want to install ESPHome, but it has the a LA-WE2S module with a TR6260S1 chip, so can not be flashed. The product spec states that “The TYWE2S module compatible with pin2pin graffiti”. I want to transplant with a TYWE2S and the dimensions are identical but it only has 1Mbyte flash memory.
However, the exposed GPIO are not identical:
I am a total newbie at this. It appears Pins 05, 12 & 14 on TYWE2S are different to the LA-WE2S to the 22, 1 and 0 respectively. Does anyone know if I could use it and would it work? Any assistance would be appreciated.
Yes, you can swap it
No issues with the pins
Great, Thank you very much. I may need some assistance in setting up the software, so may request for further assistance.
For anyone interested in non-ESP chips, I will just say that our guides list for BK7231/BK7231T/BK7231N/XR809/BL602/W600/W800/BL602 and much more has reached over 300 entries:
https://openbekeniot.github.io/webapp/devicesList.html
Every entry is a tutorial/guide, sometimes more or less advaned, showing how to flash multiplatform IoT firmware (OpenBeken) to those chips. All chips I mentioned in this post are supported.
We are also working on flashing guides Youtube playlist:
I have motor valve with Tuya CBU chip.I want to flash buth cant go in flashing,usb ttl just ding,ding,ding cant recogniseand openbeken flasher dont recognise. So i just desolder and add D1 mini
You can also replace it with this module
tuya energy monitor plug board: cb2s
Esphome code
substitutions:
devicename: tuya20a # ${devicename}
voltage_divider: "806.1586102719033"
current_resistor: "0.001067391066279705"
current_multiply: "0.4406190321602622"
esphome:
name: tuya20a
friendly_name: tuya-20a
bk72xx:
board: cb2s
framework:
version: dev
options:
LT_AUTO_DOWNLOAD_REBOOT: 0
status_led:
pin: P8 # P8 WifiLED //Синий светодиод
binary_sensor:
- platform: gpio
id: buttontuya20a
name: Button $devicename
pin:
number: P10 # кнопка P10 Btn (канал 1)
mode: INPUT_PULLUP
inverted: true
on_press:
- switch.toggle: relay
- platform: status
name: "$devicename Status"
switch:
- platform: gpio
id: relay
name: "${devicename} Relay"
pin: P26 # P26 Рел (канал 1)
- platform: restart
name: "${devicename} Restart"
##########################################################
sensor:
- platform: hlw8012
model: BL0937
current_resistor: ${current_resistor}
voltage_divider: ${voltage_divider}
sel_pin:
number: P24 # P24 BL0937SEL
inverted: True
cf_pin:
number: P7
inverted: True # P7 BL0937CF
cf1_pin:
number: P6
inverted: True # P6 BL0937CF1
current:
name: "${devicename} Current"
accuracy_decimals: 1
filters:
- multiply: ${current_multiply}
voltage:
name: "${devicename} Voltage"
#accuracy_decimals: 0
power:
name: "${devicename} Power"
filters:
# Multiplication factor from W to kW is 0.001
- multiply: 0.001
unit_of_measurement: kW
energy:
name: "${devicename} Energy"
filters:
# Multiplication factor from Wh to kWh is 0.001
- multiply: 0.001
unit_of_measurement: kWh
update_interval: 8s
#voltage_divider: 1538
###########################################################
- platform: wifi_signal
name: "$devicename WiFi Signal"
update_interval: 60s
- platform: uptime
name: ${devicename} Uptime Sensor
id: tuya20a_sensor
update_interval: 30s
###########################################################
text_sensor:
- platform: libretiny
version:
name: LibreTiny Version $devicename
- platform: version
name: "${devicename} ESPHome Version"
- platform: wifi_info
ip_address:
name: "IP ${devicename}"
ssid:
name: "${devicename} ssid"
- platform: debug
reset_reason:
name: "${devicename} Reset Reason"
Hello,
So after a lot of search and finding i manage to flash Open Beken on Zmai 90 and is work nice:
To succesfully flash need to desolder RN8209 and after this all is clear:
If you saw in this picture RN8209 is exactly near my solder cable , and template for Open Beken is like this:
{
"vendor": "Tuya",
"bDetailed": "0",
"name": "Full Device Name Here",
"model": "enter short model name here",
"chip": "BK7231N",
"board": "TODO",
"flags": "0",
"keywords": [
"TODO",
"TODO",
"TODO"
],
"pins": {
"6": "WifiLED_n;0",
"7": "Btn;0",
"14": "BridgeREV;0",
"16": "BridgeFWD;0",
"26": "LED_n;0"
},
"command": "backlog startDriver Bridge; startDriver RN8209; PowerSave 1; startDriver NTP; ntp_setServer 93.190.144.3; ntp_timeZoneOfs +2; SetupEnergyStats 1 60 60;",
"image": "https://obrazki.elektroda.pl/YOUR_IMAGE.jpg",
"wiki": "https://www.elektroda.com/rtvforum/topic_YOUR_TOPIC.html"
}
And this is command to start when boot or restart:
backlog startDriver Bridge; startDriver RN8209; PowerSave 1; startDriver NTP; ntp_setServer 93.190.144.3; ntp_timeZoneOfs +2; SetupEnergyStats 1 60 60;
Thanks
How did you open this plug? did you break?
Can someone please help me here? Can these be flashed with Tasmota?
I have 4 curtain switches like these.
Thank you!
It’s an ESP02 so shouldn’t be an issue to flash with either Tasmota or ESPhome
It is very tiny:
40x40 mm and comes with a railmount kit (also screwable).
But it contains also an CB2S…
I ordered some WT32c3-01n:
for replacement.
Hopefully this will works.
Not sure about the powermeter. We will see.