snowdd1 / homebridge-knx

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

no status update on HomeKit #189

Closed Super-Harry closed 3 years ago

Super-Harry commented 3 years ago

Hello everybody,

I have my homebridge including homebridge-knx and KNXD running. I can control all devices with the HomeKit. As soon as I change the status via phone, this is also visible in the HomeKit. The physical device reacting as well correctly. But when I change the status via physical switch HomeKit is not updated.

Here are my two scenarios

Szenario "Turn the light in hall on via phone"

Light in the hall Light on / off => 1/3/2 Feedback light => 10/5/3

The feedback object 10/5/3 is an active feedback object from the actuator. I see the response in the EIB-trace. This object controls the LED on the physical switch. This works.

Lamp itself is on

Homekit function OK Status OK

physical switch: LED lights up

Everything perfect

Szenario "Turn the light in hall off via physical switch"

Lamp itself is off

physical switch: function => lamp off => OK LED does not light up => OK

Homekit Status => the lamp stays on in the phone => NOT OK

if I turn off the light on the physical switch, the status in the phone is not changed. It seems that the KNXD didn't listen to the feedback object .

This is my configuration KNX_config: { "DeviceName": "Diele", "Services": [ { "ServiceType": "Lightbulb", "ServiceName": "Diele", "Characteristics": [ { "Type": "On", "Set": [ "1/3/2" ], "Listen": [ "10/5/3" ] } ], "GroupAddresses": [ "10/5/3" ], "subtype": "SUB_d37e34bd-b34a-4a5f-8523-b46f9c8e5840" } ], "UUID": "09b4a82b-97be-4e26-a20e-09ed97cd15be" },

Can someone give me a tip as to why this could be?

Thanks in advance for your help Harald

carp3-noctem commented 3 years ago

Hello @Super-Harry , for me it is working with the following code:

{
            "DeviceName": "Schlafzimmer Deckenlampe",
            "Services": [
                {
                    "ServiceType": "Lightbulb",
                    "ServiceName": "Deckenlampe",
                    "Characteristics": [
                        {
                            "Type": "On",
                            "Set": [
                                "1/1/111"
                            ],
                            "Listen": [
                                "1/4/111"
                            ]
                        }
                    ]
                }
            ]
        },

It switches the Light in Homekit as well as the Feedback is working.

Only difference between your code and mine is the Closing Braket after "listen" and the addition of the GroupAddresses. Can you check via skipping these?

Regards

Super-Harry commented 3 years ago

It was a permission problem. Is solved now.