Created
February 2, 2015 21:27
-
-
Save evgeny-boger/2a7f954faacb7bc23dc7 to your computer and use it in GitHub Desktop.
uniel.conf 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Configuration options | |
{ | |
"debug": false, | |
"ports": [ | |
{ | |
"path" : "/dev/ttyNSC1", | |
"type": "uniel", | |
"baud_rate": 9600, | |
"parity": "N", | |
"data_bits": 8, | |
"stop_bits": 1, | |
"poll_interval": 10, | |
"enabled": true, | |
"devices" : [ | |
{ | |
"name": "UCH-M121RX/0808", | |
"id": "uchm121rx", | |
"slave_id": 1, | |
"enabled": true, | |
"setup": [ | |
{ | |
"title": "Relay 0 manual mode", | |
"address": 2, | |
"value": 0 | |
}, | |
{ | |
"title": "Relay 1 manual mode", | |
"address": 3, | |
"value": 0 | |
}, | |
{ | |
"title": "Relay 2 manual mode", | |
"address": 4, | |
"value": 0 | |
}, | |
{ | |
"title": "Relay 3 manual mode", | |
"address": 5, | |
"value": 0 | |
}, | |
{ | |
"title": "Relay 4 manual mode", | |
"address": 6, | |
"value": 0 | |
}, | |
{ | |
"title": "Relay 5 manual mode", | |
"address": 7, | |
"value": 0 | |
}, | |
{ | |
"title": "Relay 6 manual mode", | |
"address": 8, | |
"value": 0 | |
}, | |
{ | |
"title": "Relay 7 manual mode", | |
"address": 9, | |
"value": 0 | |
} | |
], | |
"channels": [ | |
{ | |
"name": "Input 0", | |
"reg_type": "input", | |
"address": "0x0a" | |
}, | |
{ | |
"name": "Input 1", | |
"reg_type": "input", | |
"address": "0x0b" | |
}, | |
{ | |
"name": "Input 2", | |
"reg_type": "input", | |
"address": "0x0c" | |
}, | |
{ | |
"name": "Input 3", | |
"reg_type": "input", | |
"address": "0x0d" | |
}, | |
{ | |
"name": "Input 4", | |
"reg_type": "input", | |
"address": "0x0e" | |
}, | |
{ | |
"name": "Input 5", | |
"reg_type": "input", | |
"address": "0x0f" | |
}, | |
{ | |
"name": "Input 6", | |
"reg_type": "input", | |
"address": "0x10" | |
}, | |
{ | |
"name": "Input 7", | |
"reg_type": "input", | |
"address": "0x11" | |
}, | |
{ | |
"name" : "Relay 0", | |
"reg_type": "coil", | |
"address": "0x1a" | |
}, | |
{ | |
"name" : "Relay 1", | |
"reg_type": "coil", | |
"address": "0x1b" | |
}, | |
{ | |
"name" : "Relay 2", | |
"reg_type": "coil", | |
"address": "0x1c" | |
}, | |
{ | |
"name" : "Relay 3", | |
"reg_type": "coil", | |
"address": "0x1d" | |
}, | |
{ | |
"name" : "Relay 4", | |
"reg_type": "coil", | |
"address": "0x1e" | |
}, | |
{ | |
"name" : "Relay 5", | |
"reg_type": "coil", | |
"address": "0x1f" | |
}, | |
{ | |
"name" : "Relay 6", | |
"reg_type": "coil", | |
"address": "0x20" | |
}, | |
{ | |
"name" : "Relay 7", | |
"reg_type": "coil", | |
"address": "0x21" | |
}, | |
{ | |
"name": "LowThr 0", | |
"reg_type": "holding", | |
"address": "0x02", | |
"type": "range", | |
"max": "0xff" | |
}, | |
{ | |
"name": "LowThr 1", | |
"reg_type": "holding", | |
"address": "0x03", | |
"type": "range", | |
"max": "0xff" | |
}, | |
{ | |
"name": "LowThr 2", | |
"reg_type": "holding", | |
"address": "0x04", | |
"type": "range", | |
"max": "0xff" | |
}, | |
{ | |
"name": "LowThr 3", | |
"reg_type": "holding", | |
"address": "0x05", | |
"type": "range", | |
"max": "0xff" | |
}, | |
{ | |
"name": "LowThr 4", | |
"reg_type": "holding", | |
"address": "0x06", | |
"type": "range", | |
"max": "0xff" | |
}, | |
{ | |
"name": "LowThr 5", | |
"reg_type": "holding", | |
"address": "0x07", | |
"type": "range", | |
"max": "0xff" | |
}, | |
{ | |
"name": "LowThr 6", | |
"reg_type": "holding", | |
"address": "0x08", | |
"type": "range", | |
"max": "0xff" | |
}, | |
{ | |
"name": "LowThr 7", | |
"reg_type": "holding", | |
"address": "0x09", | |
"type": "range", | |
"max": "0xff" | |
}, | |
{ | |
"name": "HiThr 0", | |
"reg_type": "holding", | |
"address": "0x12", | |
"type": "range", | |
"max": "0xff" | |
}, | |
{ | |
"name": "HiThr 1", | |
"reg_type": "holding", | |
"address": "0x13", | |
"type": "range", | |
"max": "0xff" | |
}, | |
{ | |
"name": "HiThr 2", | |
"reg_type": "holding", | |
"address": "0x14", | |
"type": "range", | |
"max": "0xff" | |
}, | |
{ | |
"name": "HiThr 3", | |
"reg_type": "holding", | |
"address": "0x15", | |
"type": "range", | |
"max": "0xff" | |
}, | |
{ | |
"name": "HiThr 4", | |
"reg_type": "holding", | |
"address": "0x16", | |
"type": "range", | |
"max": "0xff" | |
}, | |
{ | |
"name": "HiThr 5", | |
"reg_type": "holding", | |
"address": "0x17", | |
"type": "range", | |
"max": "0xff" | |
}, | |
{ | |
"name": "HiThr 6", | |
"reg_type": "holding", | |
"address": "0x18", | |
"type": "range", | |
"max": "0xff" | |
}, | |
{ | |
"name": "HiThr 7", | |
"reg_type": "holding", | |
"address": "0x19", | |
"type": "range", | |
"max": "0xff" | |
} | |
] | |
}, | |
{ | |
"name": "UCH-M111RX/0808", | |
"id": "uchm111rx", | |
"slave_id": 3, | |
"enabled": true, | |
"setup": [ | |
], | |
"channels": [ | |
{ | |
"name": "Input 0", | |
"reg_type": "input", | |
"address": "0x0a" | |
}, | |
{ | |
"name": "Input 1", | |
"reg_type": "input", | |
"address": "0x0b" | |
}, | |
{ | |
"name": "Input 2", | |
"reg_type": "input", | |
"address": "0x0c" | |
}, | |
{ | |
"name": "Input 3", | |
"reg_type": "input", | |
"address": "0x0d" | |
}, | |
{ | |
"name": "Input 4", | |
"reg_type": "input", | |
"address": "0x0e" | |
}, | |
{ | |
"name": "Input 5", | |
"reg_type": "input", | |
"address": "0x0f" | |
}, | |
{ | |
"name": "Input 6", | |
"reg_type": "input", | |
"address": "0x10" | |
}, | |
{ | |
"name": "Input 7", | |
"reg_type": "input", | |
"address": "0x11" | |
}, | |
{ | |
"name" : "Relay 0", | |
"reg_type": "coil", | |
"address": "0x12" | |
}, | |
{ | |
"name" : "Relay 1", | |
"reg_type": "coil", | |
"address": "0x13" | |
}, | |
{ | |
"name" : "Relay 2", | |
"reg_type": "coil", | |
"address": "0x14" | |
}, | |
{ | |
"name" : "Relay 3", | |
"reg_type": "coil", | |
"address": "0x15" | |
}, | |
{ | |
"name" : "Relay 4", | |
"reg_type": "coil", | |
"address": "0x16" | |
}, | |
{ | |
"name" : "Relay 5", | |
"reg_type": "coil", | |
"address": "0x17" | |
}, | |
{ | |
"name" : "Relay 6", | |
"reg_type": "coil", | |
"address": "0x18" | |
}, | |
{ | |
"name" : "Relay 7", | |
"reg_type": "coil", | |
"address": "0x19" | |
}, | |
{ | |
"name": "LowThr", | |
"reg_type": "holding", | |
"address": "0x02", | |
"type": "range", | |
"max": "0xff" | |
}, | |
{ | |
"name": "HiThr", | |
"reg_type": "holding", | |
"address": "0x03", | |
"type": "range", | |
"max": "0xff" | |
}, | |
// Timers. set switch off delay | |
{ | |
"name": "Timer 0", | |
"reg_type": "holding", | |
"address": "0x1A", | |
"type": "range", | |
"max": "0xff" | |
}, | |
{ | |
"name": "Timer 1", | |
"reg_type": "holding", | |
"address": "0x1B", | |
"type": "range", | |
"max": "0xff" | |
}, | |
{ | |
"name": "Timer 2", | |
"reg_type": "holding", | |
"address": "0x1C", | |
"type": "range", | |
"max": "0xff" | |
}, | |
{ | |
"name": "Timer 3", | |
"reg_type": "holding", | |
"address": "0x1D", | |
"type": "range", | |
"max": "0xff" | |
}, | |
{ | |
"name": "Timer 4", | |
"reg_type": "holding", | |
"address": "0x1E", | |
"type": "range", | |
"max": "0xff" | |
}, | |
{ | |
"name": "Timer 5", | |
"reg_type": "holding", | |
"address": "0x1F", | |
"type": "range", | |
"max": "0xff" | |
}, | |
{ | |
"name": "Timer 6", | |
"reg_type": "holding", | |
"address": "0x20", | |
"type": "range", | |
"max": "0xff" | |
}, | |
{ | |
"name": "Timer 7", | |
"reg_type": "holding", | |
"address": "0x21", | |
"type": "range", | |
"max": "0xff" | |
}, | |
// Input types. 0 = SW (normally open), 0xff = MS (normally closed) | |
{ | |
"name" : "Type 0", | |
"reg_type": "coil", | |
"address": "0x22" | |
}, | |
{ | |
"name" : "Type 1", | |
"reg_type": "coil", | |
"address": "0x23" | |
}, | |
{ | |
"name" : "Type 2", | |
"reg_type": "coil", | |
"address": "0x24" | |
}, | |
{ | |
"name" : "Type 3", | |
"reg_type": "coil", | |
"address": "0x25" | |
}, | |
{ | |
"name" : "Type 4", | |
"reg_type": "coil", | |
"address": "0x26" | |
}, | |
{ | |
"name" : "Type 5", | |
"reg_type": "coil", | |
"address": "0x27" | |
}, | |
{ | |
"name" : "Type 6", | |
"reg_type": "coil", | |
"address": "0x28" | |
}, | |
{ | |
"name" : "Type 7", | |
"reg_type": "coil", | |
"address": "0x29" | |
} | |
] | |
}, | |
{ | |
"name": "UCH-M141RC/0808", | |
"id": "uchm141rc", | |
"slave_id": 2, | |
"enabled": true, | |
"channels": [ | |
{ | |
"name": "Input 0", | |
"reg_type": "input", | |
"address": "0x0A" | |
}, | |
{ | |
"name": "Input 1", | |
"reg_type": "input", | |
"address": "0x0B" | |
}, | |
{ | |
"name": "Input 2", | |
"reg_type": "input", | |
"address": "0x0C" | |
}, | |
{ | |
"name": "Input 3", | |
"reg_type": "input", | |
"address": "0x0D" | |
}, | |
{ | |
"name": "Input 4", | |
"reg_type": "input", | |
"address": "0x0E" | |
}, | |
{ | |
"name": "Input 5", | |
"reg_type": "input", | |
"address": "0x0F" | |
}, | |
{ | |
"name": "Input 6", | |
"reg_type": "input", | |
"address": "0x10" | |
}, | |
{ | |
"name": "Input 7", | |
"reg_type": "input", | |
"address": "0x11" | |
}, | |
{ | |
"name" : "LED 0", | |
"reg_type": "holding", | |
"address": "0x01000040", | |
"type": "range", | |
"max": "0xff" | |
}, | |
{ | |
"name" : "LED 1", | |
"reg_type": "holding", | |
"address": "0x01000141", | |
"type": "range", | |
"max": "0xff" | |
}, | |
{ | |
"name" : "LED 2", | |
"reg_type": "holding", | |
"address": "0x01000242", | |
"type": "range", | |
"max": "0xff" | |
}, | |
{ | |
"name" : "LED 3", | |
"reg_type": "holding", | |
"address": "0x01000343", | |
"type": "range", | |
"max": "0xff" | |
}, | |
{ | |
"name" : "LED 4", | |
"reg_type": "holding", | |
"address": "0x01000444", | |
"type": "range", | |
"max": "0xff" | |
}, | |
{ | |
"name" : "LED 5", | |
"reg_type": "holding", | |
"address": "0x01000545", | |
"type": "range", | |
"max": "0xff" | |
}, | |
{ | |
"name" : "LED 6", | |
"reg_type": "holding", | |
"address": "0x01000646", | |
"type": "range", | |
"max": "0xff" | |
}, | |
{ | |
"name" : "LED 7", | |
"reg_type": "holding", | |
"address": "0x01000747", | |
"type": "range", | |
"max": "0xff" | |
}, | |
{ | |
"name": "LowThr", | |
"reg_type": "holding", | |
"address": "0x02", | |
"type": "range", | |
"max": "0xff" | |
}, | |
{ | |
"name": "HighThr", | |
"reg_type": "holding", | |
"address": "0x03", | |
"type": "range", | |
"max": "0xff" | |
}, | |
{ | |
"name": "Fade", | |
"reg_type": "holding", | |
"address": "0x04", | |
"type": "range", | |
"max": "0xff" | |
} | |
] | |
}, | |
{ | |
"name": "UCH-M141RC/0808", | |
"id": "uchm141rc-2", | |
"slave_id": 10, | |
"enabled": true, | |
"channels": [ | |
{ | |
"name": "Input 0", | |
"reg_type": "input", | |
"address": "0x0A" | |
}, | |
{ | |
"name": "Input 1", | |
"reg_type": "input", | |
"address": "0x0B" | |
}, | |
{ | |
"name": "Input 2", | |
"reg_type": "input", | |
"address": "0x0C" | |
}, | |
{ | |
"name": "Input 3", | |
"reg_type": "input", | |
"address": "0x0D" | |
}, | |
{ | |
"name": "Input 4", | |
"reg_type": "input", | |
"address": "0x0E" | |
}, | |
{ | |
"name": "Input 5", | |
"reg_type": "input", | |
"address": "0x0F" | |
}, | |
{ | |
"name": "Input 6", | |
"reg_type": "input", | |
"address": "0x10" | |
}, | |
{ | |
"name": "Input 7", | |
"reg_type": "input", | |
"address": "0x11" | |
}, | |
{ | |
"name" : "LED 0", | |
"reg_type": "holding", | |
"address": "0x01000040", | |
"type": "range", | |
"max": "0xff" | |
}, | |
{ | |
"name" : "LED 1", | |
"reg_type": "holding", | |
"address": "0x01000141", | |
"type": "range", | |
"max": "0xff" | |
}, | |
{ | |
"name" : "LED 2", | |
"reg_type": "holding", | |
"address": "0x01000242", | |
"type": "range", | |
"max": "0xff" | |
}, | |
{ | |
"name" : "LED 3", | |
"reg_type": "holding", | |
"address": "0x01000343", | |
"type": "range", | |
"max": "0xff" | |
}, | |
{ | |
"name" : "LED 4", | |
"reg_type": "holding", | |
"address": "0x01000444", | |
"type": "range", | |
"max": "0xff" | |
}, | |
{ | |
"name" : "LED 5", | |
"reg_type": "holding", | |
"address": "0x01000545", | |
"type": "range", | |
"max": "0xff" | |
}, | |
{ | |
"name" : "LED 6", | |
"reg_type": "holding", | |
"address": "0x01000646", | |
"type": "range", | |
"max": "0xff" | |
}, | |
{ | |
"name" : "LED 7", | |
"reg_type": "holding", | |
"address": "0x01000747", | |
"type": "range", | |
"max": "0xff" | |
}, | |
{ | |
"name": "LowThr", | |
"reg_type": "holding", | |
"address": "0x02", | |
"type": "range", | |
"max": "0xff" | |
}, | |
{ | |
"name": "HighThr", | |
"reg_type": "holding", | |
"address": "0x03", | |
"type": "range", | |
"max": "0xff" | |
}, | |
{ | |
"name": "Fade", | |
"reg_type": "holding", | |
"address": "0x04", | |
"type": "range", | |
"max": "0xff" | |
} | |
] | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment