brutella / hkknx-public

hkknx is a HomeKit KNX bridge for KNX.
https://hochgatterer.me/hkknx
97 stars 6 forks source link

Wrong types #295

Closed sdonati8484 closed 5 months ago

sdonati8484 commented 5 months ago

Hi, in my knxproj temperature sensor outputs are defined as 9.001 values but hkknx interface see them as DPST-7-1. Am I missing something or there is something not working correctly? See attachments

immagine immagine

If you need more information ask please Greetings, Stefano

hr-automation commented 5 months ago

Is your hkknx project file identical to the ets project?

It looks like in the uploaded project file to hkknx the datatype was 7.001

sdonati8484 commented 5 months ago

No, the project is the same. To check I re-exported and re-uploaded today

Da: hr-automation @.> Inviato: lunedì 8 gennaio 2024 17:30 A: brutella/hkknx-public @.> Cc: sdonati8484 @.>; Author @.> Oggetto: Re: [brutella/hkknx-public] Wrong types (Issue #295)

Is your hkknx project file ident to the ets project?

It looks like that in the uploaded project file to hkknx the datatype was 7.001

— Reply to this email directly, view it on GitHubhttps://github.com/brutella/hkknx-public/issues/295#issuecomment-1881420654, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BFGFCJ43HGZJETDIEQD5SSLYNQNJ5AVCNFSM6AAAAABBRWPUA2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBRGQZDANRVGQ. You are receiving this because you authored the thread.Message ID: @.**@.>>

brutella commented 5 months ago

hkknx will use the data type that you've defined under the "Data Type" for the characteristic "Current Temperature" – so in your case it will use 9.001. Can you verify that this works?

You can happily ignore the warning "Wrong data type" – it's just a warning.

sdonati8484 commented 5 months ago

For temperature sensor it works, even if wrong data type is showed, temperatures seem coherent. However for writing data (eg fot thermostat) it should be nice if data type detected is correct, as it is it doesn't bring much peace of mind

brutella commented 5 months ago

However for writing data (eg fot thermostat) it should be nice if data type detected is correct, as it is it doesn't bring much peace of mind

hkknx uses the data type specified for the characteristic in the web interface. It doesn't actually matter what's specified in the ETS project.

If you want, you can send your ETS project to hkknx@hochgatterer.me so that I can take a look why the wrong data type is imported.

sdonati8484 commented 5 months ago

Ok, sent project in private

Da: Matthias @.> Inviato: giovedì 11 gennaio 2024 19:30 A: brutella/hkknx-public @.> Cc: sdonati8484 @.>; Author @.> Oggetto: Re: [brutella/hkknx-public] Wrong types (Issue #295)

However for writing data (eg fot thermostat) it should be nice if data type detected is correct, as it is it doesn't bring much peace of mind

hkknx uses the data type specified for the characteristic in the web interface. It doesn't actually matter what's specified in the ETS project.

If you want, you can send your ETS project to @.**@.> so that I can take a look why the wrong data type is imported.

— Reply to this email directly, view it on GitHubhttps://github.com/brutella/hkknx-public/issues/295#issuecomment-1887734652, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BFGFCJ7LAYC5DEALHUB2D5LYOAVSRAVCNFSM6AAAAABBRWPUA2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBXG4ZTINRVGI. You are receiving this because you authored the thread.Message ID: @.**@.>>

brutella commented 5 months ago

Thanks for providing a project. I've just uploaded version 2.8.0-b5 which should fix this issue.

(The problem was that some group addresses (with DPST-9-1) are actually used by communication objects which define their datapoint type as DPST-7-1.)

sdonati8484 commented 5 months ago

Hi Matthias, thank you for the fast update. With 2.8.0-b5, now temperature sensors are recognized correctly as DPST-9-1. But temperature setpoint are still recognized as DPST-7-1. Can you check please?

@.***

Greetings, Stefano

Da: Matthias @.> Inviato: venerdì 12 gennaio 2024 17:28 A: brutella/hkknx-public @.> Cc: sdonati8484 @.>; Author @.> Oggetto: Re: [brutella/hkknx-public] Wrong types (Issue #295)

Thanks for providing a project. I've just uploaded version 2.8.0-b5https://github.com/brutella/hkknx-public/releases/tag/2.8.0-b5 which should fix this issue.

(The problem was that some group addresses (with DPST-9-1) are actually used by communication objects which define their datapoint type as DPST-7-1.)

— Reply to this email directly, view it on GitHubhttps://github.com/brutella/hkknx-public/issues/295#issuecomment-1889602952, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BFGFCJ6Q3EDOU7EKKNVTXL3YOFP7RAVCNFSM6AAAAABBRWPUA2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBZGYYDEOJVGI. You are receiving this because you authored the thread.Message ID: @.**@.>>

brutella commented 5 months ago

Should be fixed by version 2.8.0-b6

sdonati8484 commented 5 months ago

Confirm, fixed in b6. Thank you!