Integration OpenbBK7231 - Tuya Offline

Hello everyone,
I’m reaching out because I started flashing some devices that work over WiFi via Tuya so they no longer go through their servers… And?
Until recently, you could easily put Tasmota on them but a new chip arrived on the market, making Tasmota unusable.
I found an Open Source project OpenBK7231 that works pretty well and thus allows inexpensive-brand devices such as Calex, LSC or Aubess to be run locally (currently, 94 different devices are directly supported).
The firmware developed by the developer is quite stable and allows direct integration into Home Assistant.
So I asked if it would be possible for him to enable integration into Gladys Assistant (via MQTT for example), this being an opportunity to raise awareness of the project…
Unfortunately, I’m afraid I’ll give him the wrong answer and that’s why I’m asking for your help.
Here is his reply: ‹ I can implement any publish format you want, as long as you provide me SPECIFIC information what and how must be published.
Then I will make it possible to enable this format by setting a certain flag.
So, can you tell me what kind exactly of MQTT message format you need, so I can try to implement it? Can you provide sample messages that are supposed to be sent and received by the device? ›

If I ask him to publish a Tasmota-style JSON, do we need to create a specific integration? Or a port of the existing one?
At first I thought of asking him to publish on different topics but if we have 20 data points, that will be complicated…
In short, his response is beyond my skills :thinking:
Here is the link to the thread: [MQTT] Publish on /state topic · Issue #294 · openshwprojects/OpenBK7231T_App · GitHub

Thanks for your help!

1 Like

We agree that if the message is formatted in the Tasmota way, the Tasmota integration itself should be able to handle everything, right?
So if I simply propose to adopt Tasmota’s way of working, no development will be required on Gladys’s side, correct?

At a quick glance, I’d be inclined to agree with your reasoning.
Same response format, so the same interpretation and you maintain compatibility.

1 Like

I’m coming back to this topic.
If I search for my device via the Tasmota integration over HTTP, it is discovered but not its relay.

What does the device receive and what must it respond with to be recognized by Gladys?
I found how to make the device talk Tasmota-style over MQTT but it is not recognized by the integration. I think the problem is the same as above: What does the device receive and what must it respond with to be recognized by Gladys?
Thanks for your help!

Hi @GBoulvin,

I’m not a Tasmota expert (it’s @AlexTrovato who is the developer of this integration!), but you can look at the Tasmota test code to deduce the topics and message formats supported by Gladys.

The tests are available in this folder:

An example by clicking on the power-test file:

Each file is a test for a specific feature type, and you always have examples of MQTT topic(s) + format :slight_smile:

1 Like