snowdd1 / homebridge-knx

KNX platform shim for homebridge
https://github.com/nfarina/homebridge
GNU General Public License v2.0
97 stars 56 forks source link

TemperatureSensor give me only 0.0° #177

Closed marcobastianon closed 3 years ago

marcobastianon commented 4 years ago

hi all, i'm tryng to create a TemperatureSensor using this code:

{
  "DeviceName": "TempStudio",
  "Services": [{
      "ServiceType": "TemperatureSensor",
      "ServiceName": "TempStudio",
      "Characteristics": [{
          "Type": "CurrentTemperature",
          "Listen": ["4/6/6"]
        }
      ]
    }
  ]
}

the thermostat tells me that the temperature is 0.0 ° C and I can't understand where my mistake is. I have the error with both iOS 13 and iOS 14.

in the knx bus @ 4/6/6 i've 24.2 ° C

marcobastianon commented 3 years ago

some one have temperature working on "TemperatureSensor" or "Thermostat"??

snowdd1 commented 3 years ago

Sure I have, multiple of them:

                {
                    "ServiceType": "TemperatureSensor",
                    "ServiceName": "Esszimmer Temperatur",
                    "Characteristics": [
                        {
                            "Type": "CurrentTemperature",
                            "Listen": [
                                "3/1/41"
                            ],
                            "MaxValue": 60,
                            "MinValue": -20
                        }
                    ],
                    "KNXReadRequests": [
                        "3/1/41"
                    ]
                }

with 3/1/41 being a 2-byte float from my Berker B.IQ room temp sensor.

marcobastianon commented 3 years ago

can you help me understending why u add: "KNXReadRequests": [ "3/1/41" ] in my case i cant have the right temperature image

snowdd1 commented 3 years ago

Sure , it makes homebridge-knx issue a read request at startup, so you don’t need to wait too long to get the value filled.

More important are the min and max settings because the values might otherwise be ignored.

marcobastianon commented 3 years ago

@snowdd1 in you opinion: image if i recive this telegram.. homebridge-knx might not interpret it correctly?... in all my test on ets i recive a telegram like this, but on homebridge nothing change..

snowdd1 commented 3 years ago

You might want to start homebridge in debug mode and post the log here.

marcobastianon commented 3 years ago

DEBUG=* homebridge &> file.ext

i've a long file, but nothing on temperature, m'i wrong?

marcobastianon commented 3 years ago

i realy can not find a solution.. i see on ets room temp change, but on homekit nothing change..

marcobastianon commented 3 years ago

i can’t understand why all my telegram on with temperature are completely ignored.. con some one help me to find a solution? because i can not use thermostat.

marcobastianon commented 3 years ago

what version of knxd are you using? it seems that my installed version "knxd 0.14.35:fc9ba78" is not compatible with dtp9 .. using "knxtool vbusmonitor1 ip: localhost" I can't see any telegram concerning the temperature, I only see telegrams for switching on lights.

marcobastianon commented 3 years ago

i've solve my problem... :)

as smurfix say me here ""https://github.com/knxd/knxd/issues/488"

"The most common reason this happens is that the physaddr of the sender(s) of these DPT9 messages is duplicated or within knxd's client address range."

i've changed my address range and now all work perfectly !!