CE-IO4 as Dry Contact
Question:
What settings are needed for a CE-IO4 to function as a dry contact.
Answer:
Use the following settings to setup a CE-IO4 for a dry contact.
Mode = Input
InputMode = Digital
digitalInput2KPullup = True
digitalInputLowMax = 0.5
Import the code snippet below into Muse Automator to see an example.
[
{
"id": "a0bc87f93cfded3a",
"type": "group",
"z": "8e4c7c688d90e11e",
"name": "Short to ground setup. Open=True, Closed=False",
"style": {
"label": true
},
"nodes": [
"af493f02fe3dbec8",
"ab07822626f74b19",
"53586ece541aa2e0",
"9ab7db4a808692ae",
"e3e53d8b2a676344",
"5fb20133612363d4",
"dd88a4b2cbf14c77"
],
"x": 14,
"y": 319,
"w": 992,
"h": 288
},
{
"id": "af493f02fe3dbec8",
"type": "Command",
"z": "8e4c7c688d90e11e",
"g": "a0bc87f93cfded3a",
"name": "p1.mode.input",
"mojo": {
"device": "tsCE_IO4",
"cmdvalue": "Manual configuration",
"args": "INPUT",
"command": "//io/1/mode",
"onebased": false
},
"x": 310,
"y": 400,
"wires": [
[
"9ab7db4a808692ae"
]
]
},
{
"id": "ab07822626f74b19",
"type": "Command",
"z": "8e4c7c688d90e11e",
"g": "a0bc87f93cfded3a",
"name": "2kPullup.True",
"mojo": {
"device": "tsCE_IO4",
"cmdvalue": "Manual configuration",
"args": true,
"command": "//io/1/digitalInput2KPullup",
"onebased": false
},
"x": 670,
"y": 400,
"wires": [
[
"e3e53d8b2a676344"
]
]
},
{
"id": "53586ece541aa2e0",
"type": "inject",
"z": "8e4c7c688d90e11e",
"g": "a0bc87f93cfded3a",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": true,
"onceDelay": "3",
"topic": "",
"payload": "",
"payloadType": "date",
"x": 140,
"y": 400,
"wires": [
[
"af493f02fe3dbec8"
]
]
},
{
"id": "9ab7db4a808692ae",
"type": "Command",
"z": "8e4c7c688d90e11e",
"g": "a0bc87f93cfded3a",
"name": "p1.inputMode.Digital",
"mojo": {
"device": "tsCE_IO4",
"cmdvalue": "Manual configuration",
"args": "DIGITAL",
"command": "//io/1/inputMode",
"onebased": false
},
"x": 490,
"y": 400,
"wires": [
[
"ab07822626f74b19"
]
]
},
{
"id": "e3e53d8b2a676344",
"type": "Command",
"z": "8e4c7c688d90e11e",
"g": "a0bc87f93cfded3a",
"name": "p1.digitalInputLowMax.05",
"mojo": {
"device": "tsCE_IO4",
"cmdvalue": "Manual configuration",
"args": 0.5,
"command": "//io/1/digitalInputLowMax",
"onebased": false
},
"x": 870,
"y": 400,
"wires": [
[]
]
},
{
"id": "5fb20133612363d4",
"type": "group",
"z": "8e4c7c688d90e11e",
"g": "a0bc87f93cfded3a",
"style": {
"stroke": "#3d3e46",
"stroke-opacity": "1",
"fill": "#21222c",
"fill-opacity": "0.5",
"label": true,
"label-position": "nw",
"color": "#f8f8f2"
},
"nodes": [
"c385a4fc1c4e7b2c",
"8d68e4aa8992ebc4",
"a4a0ce240f8ebb3a",
"cbadf10afb5fb2d4"
],
"x": 54,
"y": 459,
"w": 392,
"h": 122
},
{
"id": "c385a4fc1c4e7b2c",
"type": "Event",
"z": "8e4c7c688d90e11e",
"g": "5fb20133612363d4",
"name": "p1.analogInput",
"mojo": {
"device": "tsCE_IO4",
"event": "//io/1/analogInput",
"onebased": false,
"eventKind": "Parameter",
"paramType": "Float",
"normalized": false
},
"x": 150,
"y": 500,
"wires": [
[
"8d68e4aa8992ebc4"
]
]
},
{
"id": "8d68e4aa8992ebc4",
"type": "debug",
"z": "8e4c7c688d90e11e",
"g": "5fb20133612363d4",
"name": "p1.analogInput",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 330,
"y": 500,
"wires": []
},
{
"id": "a4a0ce240f8ebb3a",
"type": "Event",
"z": "8e4c7c688d90e11e",
"g": "5fb20133612363d4",
"name": "p1.digitalInput",
"mojo": {
"device": "tsCE_IO4",
"event": "//io/1/digitalInput",
"onebased": false,
"eventKind": "Parameter",
"paramType": "Boolean",
"boolParamFilter": "Any"
},
"x": 150,
"y": 540,
"wires": [
[
"cbadf10afb5fb2d4"
]
]
},
{
"id": "cbadf10afb5fb2d4",
"type": "debug",
"z": "8e4c7c688d90e11e",
"g": "5fb20133612363d4",
"name": "p1.digitalInput",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 330,
"y": 540,
"wires": []
},
{
"id": "dd88a4b2cbf14c77",
"type": "Event",
"z": "8e4c7c688d90e11e",
"g": "a0bc87f93cfded3a",
"name": "CEIO4 Online Event",
"mojo": {
"device": "tsCE_IO4",
"event": "//Online",
"onebased": false,
"eventKind": "Parameter",
"paramType": "Boolean",
"boolParamFilter": "Any"
},
"x": 120,
"y": 360,
"wires": [
[
"af493f02fe3dbec8"
]
]
}
]