We will have it implemented as well, we already have a basic Tasmota command stubs.
Broadcast every minute is ready, can you check?
see how it looks in HA:
it's not enabled by default, I am not sure if it's bug-free but let's start with this for now. It also broadcasts IP (but I might disable it and only broadcast IP on startup, IP broadcast was requested by BL602 user few weeks ago)
Please check it well and report back here if there are any issues. Due to the scale of the project and the lack of free time, I am not able to test everything with each change.
PS: it broadcasts raw channel values, OK for relays, but for LEDs it won't broadcast custom variables like "dimmer" or "color temperature"
Wait, why are you compiling?
Binaries (RBL) are automatically released on my repository.
Ah, I did not know that! I compiled all when I initially flashed the device and assumed thats what I'd have to do again. Have you a link to the RBL file for future updates? I can't find it in any of the stuff I downloaded. I downloaded the OpenBK7231T_App stuff from Github (I saw where you had made the update in the source). I also hunted through the OpenBK7321N SDK stuff though I did not see you had touched that for a couple of days.
The output folder from the compile I just did has an RBL file though which I presume is part of the compile output.
Tomorrow few more things will be added, for example, a scriptable command to publish Tasmota Groups state change (the Tasmota Group states are updated automatically, but now it also will be scriptable).
Log in, to see the code
(syntax of DGR_SendPower testSocket 1 1 is the following: DGR_SendPower [groupName] [channelFlags] [channelsCount])
that way you can do interactions between multiple groups
this command is basically like Tasmota "DevGroupSend" but it allows you also to control other groups
I found this MOES 3 gang switch, It has two boards, the main one with the logic and the daughter with the power and relays.
There are 3 ic's in the main board a WB2S a small IC I don't know what it does. The big one is a microcontroller where al inputs and outputs are connected to. this IC communicates with the WB2S using the TX and RX pins. Unfortunately, the number in the IC's has been removed.
It seems that the bigger IC holds the logic for the board. As even though I haven't assigned any pins, the buttons still activate the relays.
It's a TuyaMCU device. TuyaMCU is already supported, but first you need to find out dpIDs for the configuration. Are you able to connect it to 3.3V power supply (or to 5V power supply, if you connect it to the input of 3.3V LDO on the board), and use USB to UART converter to capture the packets?
Or maybe it was an ESP device and TuyaMCU dpIDs are already known?
Well, maybe you could get away with just programming WB2S module and then pressing the buttons and watching the OpenBK console which dpID coresponds to which button..
How did you flash that WB2S? Do you have a firmware backup, for tuya-cloudcutter guys or something? Did you desolder whole module?
I was unable to flash it using bk_writer, it uses a BK7231T so maybe is an issue with my PC. So I flashed it using python. While trying to flash I desoldered the VCC pin from the TuyaMCU so the RX and TX bus was free.
However, I was able to pull the backup with bk_writer and the TuyaMCU still wired. Don't know if that affected the bin produced (my guess is probably yes) or if it is possible to flash the WB2S module without desoldering (probably not). I have a spare switch that I haven't flashed. So when I write a full documentation tomorrow I'll use it to verify both things.
Since you already have TuyaMCU packets receiving, maybe try configuring it and sending something? Link channel 1 to dpid 1, channel 2 dppid 2, etc.. just to see if it works.
Hooked it up to Home Assistant, works perfectly. dpId4 and dpId10 also exist which seems to be for a fourth switch, the relay board has space for a fourth relay, but is unused.
Tried other dpId's I didn't got a response.
And finally figured out what the secondary dpId's do:
dpId1-4 set the state of the relay (I linked these to MQTT)
dpId7-10 toggle the relays after a n amount of seconds (Maybe useful for somebody, but not for me, so I didn't link them)
Should I post the documentation in this thread or should I create a new one?
I'm currently trying to get a Curtain Switch Etersky WF-CS01 to work.
This used to be an ESP32 device that worked with Tasmota, but now it uses Beken.
These are the images and Templates from the previous versions that used to be ESP:
I tried nearly every pin as Button 2 to check if it reacts to the key press of the upper or lower button, but to no avail.
So I'm a bit clueless now how this whole shutter device works. Any hints on what I could try to find out buttons and LEDs and to get this Curtain Switch working?
Measuring the PINs to Buttons wouldn't be of much use, as the buttons end in this 8A04T1M06BN1 chip, no clue, how to talk to it.
I'll handle doing polish translation of your documentation for our non-english-speaking users and I will also add link to the github.
Basic CSE7766 supports seems to be functional, as it is using a simple UART protocol, but there are still some things to resolve.
https://templates.blakadder.com/deta_6920HA.html I am doing it remotely for this socket: DETA Double GPO + USB Power Monitoring Wall Outlet (6920HA)
Futhermore, yesterday I received a device with new chip, that still has SDK (and even dev boards on aliexpress) available:
W800-C400 chip, I'll check if it's easily flashable
1. Did you know you can get development modules from Tuya that make the development process much easier. One (TYDE5-CBU) is like an UNO and has double RS232 on the USB connector so it's easy to set up for debugging and flashing. Another module is like a Nano. They are cheap (I paid $22 for 3 x nano and the CBU and 4.5Eu import duty, shipping included).
2. Question: Do you know how to change the SSDP (UPnP, Zeroconfig etc names) that the device broadcasts? The default is Tuya Smart and I can't find how to change it. -
Correction - it seems it doesn't do SSDP at all - pity. Searching for the device using the WiFi scan app it just appears (as all Tuya devices) as Tuya Smart - would be great to be able to determine the device by its name..
I am trying to get Merkury smart bulbs from Walmart to work with OpenBK7231T/ Home Assistant. They have a WB-2L wifi module in them and I have successfully uploaded the new firmware to the module. LEDs are controlled by an obscure I2C controller (BP Semi BP5758) for which there is little information. What is the status of I2C support in OpenBK7231T and is there any chance that this chip is supported either generically or specifically? FWIW, the latest version of Tasmota 12.0 specifically supports this chip. Just wondering where to go next. Thanks.
@eakeyson I2C is working, so you just would have to add a specific driver for this chip. I would do this myself if I had that bulb at hand. I think I also have another, similiar I2C bulb waiting for me to write a driver.
@AcuarioCat where can I buy a such a development board, for a relatively affordable price?
Next platform is starting to get supported - W800-C400 WinnerMicro WiFi & Bluetooth MCU!
@p.kaczmarek2 As far as I'm aware yes they come direct from China.
They arrived fairly quickly to Spain (about 1 1/2 weeks) and I paid 4,50Eu import duty - shipping was included in the price I didn't pay extra.
I paid with a credit card, no idea if they accept paypal.