Skip to content

Commit

Permalink
fix(inputs.knx_listener): Ignore GroupValueRead requests (#15007)
Browse files Browse the repository at this point in the history
  • Loading branch information
farmio committed Mar 19, 2024
1 parent 94ee04a commit a0cf90b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions plugins/inputs/knx_listener/knx_listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit a0cf90b

Please sign in to comment.