Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion _templates/dingtian_DT-R004
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ date_added: 2024-04-26
title: Dingtian 4 Channel
model: DT-R004
image: /assets/device_images/dingtian_DT-R004.webp
template32: '{"NAME":"Dingtian DT-R004","GPIO":[0,9408,225,9440,0,0,0,0,227,9952,0,0,224,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,226,162,0,163,160,0,0,161],"FLAG":0,"BASE":1}'
template32: '{"NAME":"Dingtian DT-R004","GPIO":[5536,9408,225,9440,0,0,0,0,227,9952,0,0,224,0,5600,0,0,0,0,5568,0,0,0,0,0,0,0,0,226,162,0,163,160,0,0,161],"FLAG":0,"BASE":1}'
link: https://www.aliexpress.com/item/4000091488766.html
mlink: https://www.dingtian-tech.com/en_us/relay4.html
flash: serial
Expand Down Expand Up @@ -49,6 +49,14 @@ When using switchmode 0, Input changes are not reported, but the output changes
MQT: stat/dingtian1/RESULT = {"POWER1":"ON"}
```

### Ethernet
To use ethernet JL1101 use the template provided or you must set
GPIO0 ETH-Power
GPIO18 ETH-MDIO
GPIO23 ETH-MDC

and command: EthType 7 (JL1101)

### Note

For using Modbus on the RS485 port (if ordered with this option) have a look at https://tasmota.github.io/docs/Modbus-Bridge/ and also add #define USE_MODBUS_BRIDGE and if desired #define USE_MODBUS_BRIDGE_TCP to user_config_override.h