fix(inputs.knx_listener): Ignore GroupValueRead requests (#15007)

This commit is contained in:
Matthias Alphart 2024-03-19 03:08:22 +01:00 committed by GitHub
parent 94ee04aeb7
commit a0cf90b13c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 0 deletions

View File

@ -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]