This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Curtain Dooya dt82tv
#4
(02.02.2026, 13:01)admin Wrote: You can't use a profile because this is a custom protocol not Modbus.

For testing purposes use an event script. Change baudrate, parity and command bytes as needed.
Code:
require('serial')

port = serial.open('/dev/RS485-1', {
  baudrate = 9600,
  parity = 'even',
  duplex = 'half'
})

command = string.char(0x55, 0x01, 0x01, 0x03, 0x02, 0xF9, 0x01)
port:write(command)

If the test script works then it can be modified to send different commands depending on the input value. 4-bit value should work (e.g. up/down/stop).

Thanks its working. Now i have another question, is it possible to give it a range with event script?
Reply


Messages In This Thread
Curtain Dooya dt82tv - by Zhiger2003 - 02.02.2026, 12:14
RE: Curtain Dooya dt82tv - by Daniel - 02.02.2026, 12:57
RE: Curtain Dooya dt82tv - by admin - 02.02.2026, 13:01
RE: Curtain Dooya dt82tv - by Zhiger2003 - 04.02.2026, 04:42
RE: Curtain Dooya dt82tv - by AEK - 05.02.2026, 13:52
RE: Curtain Dooya dt82tv - by Daniel - 04.02.2026, 08:35
RE: Curtain Dooya dt82tv - by admin - 04.02.2026, 09:33

Forum Jump: