Help to build Plugin for IP board with 8 relays and 8 io (P5)

Hello,

For long time I’m looking for good IP board with relay and IO This product is very good and the price is also not bad (FNIP-8x16A)

He is working TCP/IP with very simple commands for IO & relays,

I don’t have any experience with developing plugins and I’m looking for small help.

The idea for the plugin is build 8 on/off switches and 8 input like door sensor with arm/disarm button.

TCP port:7078
IP:XXX.XXX.XXX.XXX

Relay commands:

CH X ON: >FN,ON,X\r
CH X OFF: >FN,OFF,X\r
CH X TOGGLE: >FN,TOG,X\r

Reply from relays:

CH X IS ON: >FN,OUT,ON,X
CH X IS OFF: >FN,OUT,OFF,X

Inputs reply command:

CH X IN CLOSE: >FN,IN,ON,X
CH X IN OPEN: >FN,IN,OFF,X

Polling out:
FN,SRE\r

Polling in:
FN,SRI\r

I will be grateful if someone could help

Kobi