Skip to content
Kai Kramer edited this page Nov 24, 2017 · 5 revisions

Switched Lamp

KNX

Example by https://github.com/owagner/knx2mqtt

KNX Group Addressing provides the following topic hierarchy knx//main/middle/sub an a data point type "dpt"

A typische schema for the knx groups is technology/function/device.

In the example we have a DPT 1.001 DPT_Switch. The dpt defines with the left number the data type und with the right sub number the range and unit. In this example 1 means boolean (0/1) and 001 is switch type with "off" and "on" as valid values.

knx/status/Lights/Switch feedback/Living Room Lamp 
{  
  "ts":1511559980689,
  "lc":1511390995027,
  "knx_src_addr":"1.1.19",
  "knx_dpt":"1.001",
  "knx_textual":"off",
  "val":0
}

Proposed Meta Database Schema

{
  "id": "object-id",
  "type": "...", 
  "name": "...",
  "parent": "..." 
  attribute?
  "common": {   
      
  },
  "native": {     
     
  }
}

Loxone

Example by https://github.com/krambox/loxone2mqtt

Loxone provides similar information in this case to knx. There is a hierarchy // and a datatype with an numeric an string value.

lox/state/Living Room/Lights/Lamp 
{
  "val":0,
  "ts":1511424040,
  "native":{"active":"off","type":"Switch"}
}

Proposed Meta Database Schema

{
  "id": "object-id",
  "type": "...", 
  "name": "...",
  "parent": "..." 
  attribute?
  "common": {   
      
  },
  "native": {     
     
  }
}