The GT2I2O is a MQTT / WIFI / ETHERNET / MODBUS / 2 input 2 output Controller unit
Product Overview
Technical parameters
Relay parameters
Power supply Non-polar
Home Automation System Support:
Name | Artifacts |
Node-RED | https://nodered.org/ |
Node-RED exsample code for this unit | https://github.com/antonjan/IOT_input_and_output_module/raw/main/node-red/flows_gt_mqtt_relay.json |
SDK for windows and linux | https://github.com/antonjan/IOT_input_and_output_module/tree/main/sdk_v1_9_6 |
The configeration below is similar for both modules
Connect 12V to power supply V+ and V-
got url in browser http://192.168.7.1 Login with admin admin
Now select settings and configure your wifi setting as shown in RED
Select Relay Conect
Then enter your MQTT details as shown in the RED sections
Now lets controle the GT Relay and input module by connecting you Node-RED to your mqtt
Below is a working exsample to read the inputs and control the rlay outputs for the unit
Node red flow code can be downloaded here Node red exsample flow code
Node red exsample flow code
MQTT mwssage exsamples
To read input details subscribe to the following topic
Read input 1
/dingtian/relay5044/out/input1
Read input 2
/dingtian/relay5044/out/input2
Switch Relay one
/dingtian/relay5044/in/r1 message value ON or OFF