- General Info
- Development Environment
- System Requirements
- Build sources
- Tested
- Binary package
- List of IoT device
- Topics Publish
- Tutorial
- Links
It is a simple Kura component to scheduler the switching on/off of relays. We will use Mqtt for sending messages and we can choose different devices.
- Eclipse Neon Version: 2019-09 R (4.13.0). An additional plugin, mToolkit, is needed to allow remote connectivity to an OSGi framework on a Kura-enabled target device. To install mToolkit into Eclipse, use the following steps:
- Open the Help | Install New Software… menu.
- Add the following URL as an update site based on your version of Eclipse http://mtoolkit-neon.s3-website-us-east-1.amazonaws.com
- Install the “mToolkit” feature (you need to uncheck the Group items by category checkbox in order to see the feature).
- Restart Eclipse. In the menu Window | Show View | Other, there should be an mToolkit | Frameworks option. If so, the plugin has been installed correctly.
- Development platform Linux (Debian 10).
- Eclipse Kura 5.0.0 is compatible with Java 8 and OSGi R6.
- Zigbee2Mqtt.
The only requisite to build from sources is an already
installed Eclipse Kura User Workspace.
- Raspberry pi 3 and 4.
- Eclipse Kura 5.0.0.
- Gateway Zigbee CC2531
The binary package ready for the installation can be found in folder "resources/dp".
BUNDLE | COMMENT |
---|---|
clientMqttDnomiad.dp | Client mqtt |
mqttApiDnomaid.dp | Client mqtt Api |
mqttDeviceDnomaid.dp | Configuration of mqtt devices |
mqttScheduleDnomaid.dp | Relay time scheduler |
iotDnomaid.dp | Contains all previous bundles |
A list of IoT devices used within the project:
- Sonoff20 (Tasmota)
- XiaomiZNCZ04LM (Zigbee2mqtt)
The publish topic is created automatically and the device has to be configured with this same topic.
- Sonoff20: Dnomaid/cmnd/Router_1/Sonoff20_Number Device/Relay_1/POWER.
- Example:
- Configuration (Eclipse Kura Web UI): Type device: Sonoff20; Number Device: 1.
- Topic (Tasmota): Dnomaid/Router_1/Sonoff20_1/Relay_1
- Example:
- XiaomiZNCZ04LM: Dnomaid/mix/CC2531_1/XiaomiZNCZ04LM_Number Device/RelaySensorClimate_1/set.
- Example:
- Configuration (Eclipse Kura Web UI): Type device: XiaomiZNCZ04LM; Number Device: 2.
- Topic (Zigbee2mqtt): Dnomaid/mix/CC2531_1/XiaomiZNCZ04LM_2/RelaySensorClimate_1.
- Example:
Watch the video on youtube.
Android application:
- https://github.com/DnomaidGit/AndroidIotMqtt
- https://play.google.com/store/apps/details?id=com.dnomaid.mqtt&gl=ES