Skip to content

[Feature request]: add MQTT client support #749

Open
@jerome83136

Description

@jerome83136

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
I'm trying to build a smart home dashboard with an interactive floor plan that contains icons representing the state of connected devices (light bulbs, etc...)
Example use case:

  • I switch a light bulb OFF by using the "physical" button of the corresponding wall switch.
  • The switch sends a message to my central MQTT broker and the light bulb goes OFF.
  • I would like the state of the icon representing the light, to be updated within the application. (without having to refresh the page)

NB: my switches are connected. So when I change their state with the physical buttons; an MQTT message is sent to my central MQTT broker.

Describe the solution you'd like
A clear and concise description of what you want to happen.
Add a MQTT client to Lowcoder; so that it can subscribe to MQTT topics, watch for new messages and trigger internal components updates accordingly.

Describe alternatives you've considered

  1. Idea1:
    My wall switchs are using Tasmota firmware; so they expose an API for querying the state of the switch.
    I tried executing a query from Lowcoder to get the state of my wall switchs and update the light icon within my application.
    It works if I trigger the query manually from within the application. But it doesn't work if I force the query execution by using this POST request:
    http://lowcoder_docker_host:3000/api/v1/query/execute
    (the query is successfuly executed and I see the Tasmota API answer; but nothing happens on the application)

  2. Idea2:
    Maybe could we use Lowcoder's REST API to force updating the state of a component/components group from the oustide of the application ?

Additional context
Basically; my main need is to make Lowcoder aware of events occuring externally from the application's point of view.

Thank you for your help & feedback.
I hope it can be useful for other people requiring MQTT :)

Best regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions