Skip to content

DnomaidGit/AndroidIotMqtt

Repository files navigation

AndroidIotMqtt

Table of Contents

  1. General Info
  2. List of IoT device
  3. Topics Publish
  4. Download
  5. Installation
  6. Why am I open-sourcing it?
  7. Links

General Info


This is an open source code to build an Android application for IoT. It consists of creating a Mqtt client connected to a Broker in the same local network. We will be able to add from a predetermined list different IoT devices. In this list we have Tasmota and Zigbee2Mqtt devices. The configuration is very simple since the Topics are automatically created and added directly to a Dashboard.

Screenshot


List of IoT devices


A list of IoT devices used within the project:

  • Sonoff20 (Tasmota)
  • TuyaZigbeeSensor (Zigbee2Mqtt)
  • AqaraTemp (Zigbee2Mqtt)
  • SonoffSNZB02 (Zigbee2Mqtt)
  • XiaomiZNCZ04LM (Zigbee2Mqtt)

Topics Publish


The publish topic is created automatically and the device has to be configured with this same topic.

  1. Sonoff20:
    • Example:
      • Configuration (App): Type device: Sonoff20; Number Device: 1.
      • Topic (Tasmota): Dnomaid/Router_1/Sonoff20_1/Relay_1
  2. XiaomiZNCZ04LM:
    • Example:
      • Configuration (App): Type device: XiaomiZNCZ04LM; Number Device: 2.
      • Topic (Zigbee2mqtt): Dnomaid/mix/CC2531_1/XiaomiZNCZ04LM_2/RelaySensorClimate_1.
  3. SonoffSNZB02:
    • Example:
      • Configuration (App): Type device: SonoffSNZB02; Number Device: 1.
      • Topic (Zigbee2mqtt): Dnomaid/stat/CC2531_1/SonoffSNZB02_1/SensorClimate_1.
  4. AqaraTemp:
    • Example:
      • Configuration (App): Type device: AqaraTemp; Number Device: 1.
      • Topic (Zigbee2mqtt): Dnomaid/stat/CC2531_1/AqaraTemp_1/SensorClimate_1.
  5. TuyaZigbeeSensor:
    • Example:
      • Configuration (App): Type device: TuyaZigbeeSensor; Number Device: 1.
      • Topic (Zigbee2mqtt): Dnomaid/stat/CC2531_1/TuyaZigbeeSensor_1/SensorClimate_1.

Download


Currently, the application is released and available here: Google Play.

Get it on Google Play

Installation


Watch the video on youtube.

Watch the video

Why am I open-sourcing it?


  1. I got help all around from open-source community, and it is time for me to help back.
  2. A big problem of hobby projects is they lack continuity. I believe open sourcing the app could allow this app to be kept improving.
  3. The list of IoT devices is very small and the code is ready to add more devices in the future.

Links


From this link you can see a demo:

If you are interested, but do not know where to start, I leave this link where there are videos that can help you:

Eclipse Kura project: