fix(inputs.knx_listener): Ignore GroupValueRead requests (#15007)
This commit is contained in:
parent
94ee04aeb7
commit
a0cf90b13c
|
|
@ -146,6 +146,12 @@ func (kl *KNXListener) Stop() {
|
|||
|
||||
func (kl *KNXListener) listen(acc telegraf.Accumulator) {
|
||||
for msg := range kl.client.Inbound() {
|
||||
if msg.Command == knx.GroupRead {
|
||||
// Ignore GroupValue_Read requests as they would either
|
||||
// - fail to unpack due to invalid data length (DPT != 1) or
|
||||
// - create invalid `false` values as their data always unpacks `0` (DPT 1)
|
||||
continue
|
||||
}
|
||||
// Match GA to DataPointType and measurement name
|
||||
ga := msg.Destination.String()
|
||||
target, ok := kl.gaTargetMap[ga]
|
||||
|
|
|
|||
Loading…
Reference in New Issue