To start the knx2mqtt service you will need a configuration.yaml
in the data
folder.
Minimal configuration looks like this:
mqtt:
base_topic: knx2mqtt
server: 'mqtt://localhost'
knx:
ip_address: 192.168.1.145
port: 3671
advanced:
log_output:
- console
Payload:
- id: a unique string for you
- individual_address: the configured Individual Address of your KNX device,
- group_address: the Group Address your device send data to
- dpt: the Data Point Type of your device. For the supported DPTs please refer to knx.js
{
id: 'uniqueStringId',
individual_address: '1.1.1',
group_address: '1/0/0',
dpt: 'DPT9.004',
}
Payload:
- id: the id of the device to remove
This payload must be sent as a string not as a JSON object.
You can subscribe to this topic in order to receive data from the device.
In this topic are sent:
- ack of a new connected device
{
type: 'device_connected',
message: {
friendly_name: 'uniqueStringId'
}
}
- ack of a force removed device
{
type: 'device_force_removed',
message: 'uniqueStringId'
}
This work relies on the awesome knx.js library
This work is inspired from the awesome work of Zigbee2MQTT.
knx2mqtt is fair-code licensed under Apache 2.0 with Commons Clause