Skip to content
This repository was archived by the owner on Aug 26, 2025. It is now read-only.
This repository was archived by the owner on Aug 26, 2025. It is now read-only.

Forward mqtt payload to slave #4

Description

@HKrEng

Hey,
first of all thank you for making TasmotaSlave.

I succesfully have changed TasmotaSlave for my C project on an nrf52840.
I can now autoconnect (via the code on nrf) and then control BLE-devices with the tasmota console and SlaveSend x.
My goal is now to make an autoconfiguration json for homeassistant everytime the chip connects to a known ble device to control the ble-devices via mqtt. I am able to generate and send the json with SendCommand . But after that I need something that forwards recieved mqtt payloads to the uart/ tasmota slave.

Could you add a feature that does that? I think it would be the same as SlaveSend but you forward the recieved mqtt payloads. Something like a CMND_SLAVE_SEND_MQTT in the ProcessCommand.

For example:

MQTT-Client sends
to topic: tasmota_esp/cmnd/mqtt or tasmota_esp/cmnd/slave
payload: ble_device/cmnd/led ON

Tasmota forwards to Slave: ble_device/cmnd/led ON

Maybe a problem with the second space.
But I also could use a payload like: ble_device/cmnd/led_ON,
send it via uart and then split the string at _ on the TasmotaSlave.

Is this easy/possible to implement as I am not into the code of Tasmota and just used your library.

Would be very helpful. Thank you for your response.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions