homebridge-knx icon indicating copy to clipboard operation
homebridge-knx copied to clipboard

Services & characteristics in config: I dont get it.

Open tss68nl opened this issue 6 years ago • 2 comments

Must be my limited brain, but beyond the services and characteristics I can find samples for, I cannot config anything in homebridge-knx. For example: The service LightBulb is easy. Mandatory chars are 'Name' and 'On' according to the docs. But the config needs 'ServiceName' and 'On'? Also, 'On' is followed by a 'Set' and 'Listen' on the same level, but they are not mentioned in the docs?! And don't belong these Set & Listen to the 'On' characteristic? Why are they on the same level just comma separated?

Anyway, as said I can see from the examples how a lightbulb should be configged, but you probably see why I cannot config anything that I cannot find an example of. In my case: a Valve.

It needs Name, Active, InUse and ValveType. I am guessing Name will be only the ServiceName again, Active and InUse can take a Set & Listen.....but the ValveType is mentioned both with and without a space....and trying to set it to 1 results in errors.

An example of my efforts. Homebridge starts with it, sees them...but nothing shows in homebridge. And yes, I've added an Outlet as the third item, and it actually shows after I wipe the cache each restart:

               {
                    "ServiceType": "Valve",
                    "ServiceName": "HegDrie",
                    "Characteristics": [
                        {
                            "Type": "Active",
                            "Set":"16/4/11",
                            "Listen":"16/4/111"
                        },
                        {
                            "Type": "ValveType",
                            "Set": 1
                        },
						{
                            "Type": "InUse",
                            "Listen": "16/4/111"
                        }
                    ]
                },
                {
                    "ServiceType": "Valve",
                    "ServiceName": "HegTwee",
                    "Characteristics": [
                        {
                            "Type": "Active",
                            "Set": [
                                "16/4/11"
                            ],
                            "Listen": [
                                "16/4/111"
                            ],
			    "Valve Type": 1
                        },
                       {
                            "Type": "InUse",
                            "Listen": [
                                "16/4/111"
                            ]
                        }
                    ]
                },
				
                {
                    "ServiceType": "Outlet",
                    "ServiceName": "Heg",
                    "Characteristics": [
                        {
                            "Type": "On",
                            "Set": [
                                "16/4/11"
                            ],
                            "Listen": [
                                "16/4/111"
                            ]
                        }
                    ]
                }

Can someone please explain how this works?

tss68nl avatar Jun 13 '18 13:06 tss68nl

Please. can someone explain how to use the characteristics list to make the config?

tss68nl avatar Jul 28 '18 22:07 tss68nl

Hi @tss68nl, sorry for answering that late, was busy with my day job.
I frankly do not understand the issue you have.

Did you read https://github.com/snowdd1/homebridge-knx/blob/master/knx_config.json.md ?

snowdd1 avatar Aug 31 '18 09:08 snowdd1