KNXController

From ago control wiki
(Difference between revisions)
Jump to: navigation, search
m (KNX Controller examples)
m (KNX Controller examples)
Line 1: Line 1:
 
= KNX Controller examples =
 
= KNX Controller examples =
Fetch map for a specific device:
+
== Fetch map for a specific device ==
 
<pre>
 
<pre>
 
# /opt/agocontrol/bin/messagesend uuid=40820aa5-7d69-4541-b3eb-dcf0374e8520 command=getdevice device=3b933ba8-22d6-4894-9a02-57711d317e02
 
# /opt/agocontrol/bin/messagesend uuid=40820aa5-7d69-4541-b3eb-dcf0374e8520 command=getdevice device=3b933ba8-22d6-4894-9a02-57711d317e02
Line 6: Line 6:
 
Reply: {_newresponse:True, result:{data:{device:3b933ba8-22d6-4894-9a02-57711d317e02, devicemap:{devicetype:switch, onoff:4/5/0, onoffstatus:4/5/1}}, identifier:success}}
 
Reply: {_newresponse:True, result:{data:{device:3b933ba8-22d6-4894-9a02-57711d317e02, devicemap:{devicetype:switch, onoff:4/5/0, onoffstatus:4/5/1}}, identifier:success}}
 
</pre>
 
</pre>
Complete map, for reference:
+
== Delete device ==
 +
<pre>
 +
~# /opt/agocontrol/bin/messagesend uuid=40820aa5-7d69-4541-b3eb-dcf0374e8520 command=deldevice device=3b933ba8-22d6-4894-9a02-57711d317e02
 +
Sending message: {command:deldevice, device:3b933ba8-22d6-4894-9a02-57711d317e02, uuid:40820aa5-7d69-4541-b3eb-dcf0374e8520}
 +
Reply: {_newresponse:True, result:{identifier:success}}
 +
</pre>
 +
== Complete map, for reference ==
 
<pre>
 
<pre>
 
# cat /etc/opt/agocontrol/maps/knx.json | python -m json.tool
 
# cat /etc/opt/agocontrol/maps/knx.json | python -m json.tool

Revision as of 18:02, 25 September 2015

Contents

KNX Controller examples

Fetch map for a specific device

# /opt/agocontrol/bin/messagesend uuid=40820aa5-7d69-4541-b3eb-dcf0374e8520 command=getdevice device=3b933ba8-22d6-4894-9a02-57711d317e02
Sending message: {command:getdevice, device:3b933ba8-22d6-4894-9a02-57711d317e02, uuid:40820aa5-7d69-4541-b3eb-dcf0374e8520}
Reply: {_newresponse:True, result:{data:{device:3b933ba8-22d6-4894-9a02-57711d317e02, devicemap:{devicetype:switch, onoff:4/5/0, onoffstatus:4/5/1}}, identifier:success}}

Delete device

~# /opt/agocontrol/bin/messagesend uuid=40820aa5-7d69-4541-b3eb-dcf0374e8520 command=deldevice device=3b933ba8-22d6-4894-9a02-57711d317e02
Sending message: {command:deldevice, device:3b933ba8-22d6-4894-9a02-57711d317e02, uuid:40820aa5-7d69-4541-b3eb-dcf0374e8520}
Reply: {_newresponse:True, result:{identifier:success}}

Complete map, for reference

# cat /etc/opt/agocontrol/maps/knx.json | python -m json.tool
{
    "084ecee8-a60c-4ec0-8347-2e7fc3ec15b8": {
        "devicetype": "binarysensor",
        "levelstatus": "4/4/0"
    },
    "0962f27e-99ce-43a4-872b-97d75d61f464": {
        "devicetype": "dimmer",
        "levelstatus": "1/0/6",
        "onoff": "1/0/0",
        "onoffstatus": "1/0/1",
        "setlevel": "1/0/7"
    },
    "0d69e759-d459-4431-87fb-be068bb0cc16": {
        "devicetype": "drapes",
        "levelstatus": "5/1/4",
        "onoff": "5/1/0",
        "setlevel": "5/1/3",
        "stop": "5/1/1"
    },
    "11743e6e-ed1e-4a3b-8a92-ba5873c716b0": {
        "devicetype": "switch",
        "onoff": "1/0/19"
    },
    "17c4f855-7c6a-46d5-acf6-1e5c9ae367e7": {
        "devicetype": "switch",
        "onoff": "6/0/0",
        "onoffstatus": "6/0/1"
    },
    "22bf1714-fb33-4bd6-a79a-736898e4eb82": {
        "devicetype": "switch",
        "onoff": "2/5/0",
        "onoffstatus": "2/5/1"
    },
    "26e1cb96-8585-4f43-aec4-d0935a32c188": {
        "binary": "1/4/2",
        "devicetype": "binarysensor"
    },
    "2db31059-43f2-4687-8730-ca2591892cbd": {
        "devicetype": "temperaturesensor",
        "temperature": "1/4/14"
    },
    "349289c5-b254-4480-af90-4548cbcdda9d": {
        "devicetype": "switch",
        "onoff": "7/0/0",
        "onoffstatus": "7/0/1"
    },
    "3887ac29-8f58-43dd-8c5f-36c0b3507f4e": {
        "devicetype": "switch",
        "onoff": "1/0/15"
    },
    "3b933ba8-22d6-4894-9a02-57711d317e02": {
        "devicetype": "switch",
        "onoff": "4/5/0",
        "onoffstatus": "4/5/1"
    },
    "47ad756e-c5f6-4c9f-acca-cc4d9148e538": {
        "devicetype": "drapes",
        "levelstatus": "3/1/4",
        "onoff": "3/1/0",
        "setlevel": "3/1/3",
        "stop": "3/1/1"
    },
    "4b4a46f6-993f-49b6-868d-0b2b77b1af2a": {
        "devicetype": "switch",
        "onoff": "1/0/20"
    },
    "4fe0477e-0732-4080-8595-a6a4b68a7aa9": {
        "devicetype": "binarysensor",
        "levelstatus": "1/4/17"
    },
    "54539af0-a871-4883-bf8f-eb3fa24d63ab": {
        "devicetype": "binarysensor",
        "levelstatus": "5/4/0"
    },
    "5a1b7c2b-6c24-4442-a5bc-b6c077494d03": {
        "devicetype": "dimmer",
        "levelstatus": "4/0/3",
        "onoff": "4/0/0",
        "onoffstatus": "4/0/1",
        "setlevel": "4/0/4"
    },
    "5bb6e858-aeec-47bb-8144-61293467cfb6": {
        "devicetype": "binarysensor",
        "levelstatus": "1/4/20"
    },
    "5e4c10c2-05ab-46eb-ad9d-4dc39f4d4913": {
        "devicetype": "switch",
        "onoff": "0/5/0",
        "onoffstatus": "0/5/1"
    },
    "5e4c1ac2-55ab-46eb-dd9d-4dc39f4d4914": {
        "devicetype": "switch",
        "onoff": "0/5/4",
        "onoffstatus": "0/5/5"
    },
    "6a46bea3-3325-4ea3-8168-65b357572b5c": {
        "devicetype": "switch",
        "onoff": "9/0/0",
        "onoffstatus": "9/0/1"
    },
    "730dd18b-15f2-4997-a033-e16ed08f40d2": {
        "devicetype": "switch",
        "onoff": "7/0/2",
        "onoffstatus": "7/0/3"
    },
    "76a633b2-0f2b-426b-91a9-860ecb1e5d20": {
        "devicetype": "switch",
        "onoff": "1/0/18"
    },
    "7b51fae3-b872-4f03-82c4-d96f6a27a560": {
        "devicetype": "switch",
        "onoff": "8/0/0",
        "onoffstatus": "8/0/1"
    },
    "86edff75-5e0a-4618-b9e7-294c9b21f7df": {
        "devicetype": "switch",
        "onoff": "1/0/21"
    },
    "88313953-f3e9-4e15-8d1d-e7533ba324df": {
        "binary": "1/4/3",
        "devicetype": "binarysensor"
    },
    "8892b260-0aff-444d-8a80-a2fd42c941ee": {
        "devicetype": "drapes",
        "levelstatus": "4/1/4",
        "onoff": "4/1/0",
        "setlevel": "4/1/3",
        "stop": "4/1/1"
    },
    "8a042031-785b-4336-827c-ab192be8fdff": {
        "devicetype": "powermeter",
        "energy": "0/4/0"
    },
    "99044e96-cce3-4d03-af70-3e0ea7a0c652": {
        "devicetype": "switch",
        "onoff": "2/0/0",
        "onoffstatus": "2/0/1"
    },
    "995104a1-11ba-4116-bd75-957e4dbaf628": {
        "devicetype": "switch",
        "onoff": "1/0/4"
    },
    "a8d8a6da-097d-40f1-a655-9bb917e7d491": {
        "binary": "1/4/0",
        "devicetype": "binarysensor"
    },
    "aa489957-a0dd-4862-9ed5-8d713a24f766": {
        "devicetype": "dimmer",
        "levelstatus": "5/0/3",
        "onoff": "5/0/0",
        "onoffstatus": "5/0/1",
        "setlevel": "5/0/4"
    },
    "b3eec103-ba9f-4ae1-965f-14c1e988b738": {
        "devicetype": "drapes",
        "levelstatus": "2/1/4",
        "onoff": "2/1/0",
        "setlevel": "2/1/3",
        "stop": "2/1/1"
    },
    "becc82e2-2738-4c43-bdaf-d61cc74782d1": {
        "devicetype": "switch",
        "onoff": "4/0/5",
        "onoffstatus": "4/0/6"
    },
    "c29f2099-589b-4ff9-bdea-71ea94c3e9df": {
        "devicetype": "switch",
        "onoff": "3/0/0",
        "onoffstatus": "3/0/1"
    },
    "c81a868e-e3da-418a-9f4e-fbfa30dfdcb9": {
        "devicetype": "switch",
        "onoff": "1/0/2",
        "onoffstatus": "1/0/3"
    },
    "c81e979c-46e6-4b14-ac06-b53f912193c3": {
        "devicetype": "binarysensor",
        "levelstatus": "1/4/19"
    },
    "ce76f3ef-7158-4cd0-b700-b82f91cab0ea": {
        "binary": "1/4/10",
        "devicetype": "binarysensor"
    },
    "d125dd30-2272-442f-9d9a-17d3ef4d8e7c": {
        "brightness": "1/4/9",
        "devicetype": "brightnesssensor"
    },
    "de2db24c-88de-448d-9798-11966c8c1cdc": {
        "devicetype": "drapes",
        "levelstatus": "4/1/14",
        "onoff": "4/1/10",
        "setlevel": "4/1/13",
        "stop": "4/1/11"
    },
    "ef6a6b73-4422-42bc-9e4d-82936ef045fe": {
        "devicetype": "binarysensor",
        "levelstatus": "1/4/19"
    },
    "efe76637-256d-4ca3-acff-0c082518660b": {
        "binary": "1/4/8",
        "devicetype": "binarysensor"
    },
    "f047fdc7-e4ce-4384-ab7d-bfd6447858e0": {
        "binary": "0/4/3",
        "devicetype": "binarysensor"
    },
    "f0b9aa64-bcac-4000-a379-5832a00db81b": {
        "devicetype": "switch",
        "onoff": "7/3/0",
        "onoffstatus": "7/3/1"
    },
    "f8792db5-a046-4bb4-8355-7afc4ad977f2": {
        "devicetype": "switch",
        "onoff": "4/5/4",
        "onoffstatus": "4/5/5"
    },
    "fb21788d-6da3-4fc7-a348-a47508b24b6c": {
        "devicetype": "switch",
        "onoff": "0/6/16"
    }
}
Personal tools