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

Problem with controlling lamp with homebridge-knx icw gira homeserver #81

Closed NederBelg closed 7 years ago

NederBelg commented 7 years ago

Hi, The installation off the package and all went well. The devices are added to apple home. The devices I created don't seem to actually read or write a status to the knx.

I created the config file with 2 lamps 0/0/43 and 0/0/44.

These are the results

[2017-02-11 21:52:48] [homebridge-knx.KNX] homebridge event didFinishLaunching
[2017-02-11 21:52:48] [homebridge-knx.KNX] Configuration starts
[2017-02-11 21:52:48] [homebridge-knx.KNX] Reading from config: Device/Accessory 1 of 3
[2017-02-11 21:52:48] [homebridge-knx.KNX] Service constructor called
[2017-02-11 21:52:48] [homebridge-knx.KNX] ServiceType defined
[2017-02-11 21:52:48] [homebridge-knx.KNX] ServiceType known as function
[2017-02-11 21:52:48] [homebridge-knx.KNX] Found restored service: Bürolampe
[2017-02-11 21:52:48] [homebridge-knx.KNX] Preparing Characteristics: 1
[2017-02-11 21:52:48] [homebridge-knx.KNX] On
[2017-02-11 21:52:48] [homebridge-knx.KNX] Adding characteristic...
[2017-02-11 21:52:48] [homebridge-knx.KNX] CharacteristicKNX.Constructor
---iterating--------------------
Type: On
Set.0: 0/0/43
Listen.0: 0/0/43
Reverse: true
================================
INFO registerSingleGA 0/0/43
[2017-02-11 21:52:48] [homebridge-knx.KNX] Done with [Arbeitszimmerlampe] accessory
[2017-02-11 21:52:48] [homebridge-knx.KNX] Reading from config: Device/Accessory 2 of 3
[2017-02-11 21:52:48] [homebridge-knx.KNX] Service constructor called
[2017-02-11 21:52:48] [homebridge-knx.KNX] ServiceType defined
[2017-02-11 21:52:48] [homebridge-knx.KNX] ServiceType known as function
[2017-02-11 21:52:48] [homebridge-knx.KNX] Found restored service: Bürolampe2
[2017-02-11 21:52:48] [homebridge-knx.KNX] Preparing Characteristics: 1
[2017-02-11 21:52:48] [homebridge-knx.KNX] On
[2017-02-11 21:52:48] [homebridge-knx.KNX] Adding characteristic...
[2017-02-11 21:52:48] [homebridge-knx.KNX] CharacteristicKNX.Constructor
---iterating--------------------
Type: On
Set.0: 0/0/44
Listen.0: 0/0/44
================================
INFO registerSingleGA 0/0/44
[2017-02-11 21:52:48] [homebridge-knx.KNX] Done with [Arbeitszimmerlampe2] accessory
[2017-02-11 21:52:48] [homebridge-knx.KNX] Reading from config: Device/Accessory 3 of 3
[2017-02-11 21:52:48] [homebridge-knx.KNX] Service constructor called
[2017-02-11 21:52:48] [homebridge-knx.KNX] ServiceType defined
[2017-02-11 21:52:48] [homebridge-knx.KNX] ServiceType known as function
[2017-02-11 21:52:48] [homebridge-knx.KNX] Found restored service: Türschloss
[2017-02-11 21:52:48] [homebridge-knx.KNX] customServiceAPI.constructor(service, DummyHandler)
[2017-02-11 21:52:48] [homebridge-knx.KNX] HandlerPattern instatiated!
[2017-02-11 21:52:48] [homebridge-knx.KNX] Preparing Characteristics: 2
[2017-02-11 21:52:48] [homebridge-knx.KNX] LockCurrentState
[2017-02-11 21:52:48] [homebridge-knx.KNX] Adding characteristic...
[2017-02-11 21:52:48] [homebridge-knx.KNX] CharacteristicKNX.Constructor
---iterating--------------------
Type: LockCurrentState
================================
[2017-02-11 21:52:48] [homebridge-knx.KNX] DummyHandler: Adding Characteristic LockCurrentState
[2017-02-11 21:52:48] [homebridge-knx.KNX] LockTargetState
[2017-02-11 21:52:48] [homebridge-knx.KNX] Adding characteristic...
[2017-02-11 21:52:48] [homebridge-knx.KNX] CharacteristicKNX.Constructor
---iterating--------------------
Type: LockTargetState
================================
[2017-02-11 21:52:48] [homebridge-knx.KNX] DummyHandler: Adding Characteristic LockTargetState
[2017-02-11 21:52:48] [homebridge-knx.KNX] Done with [TestDevice] accessory
[2017-02-11 21:52:48] [homebridge-knx.KNX] We have read 3 devices from file.
[2017-02-11 21:52:48] [homebridge-knx.KNX] Saving config file!
---
[2017-02-11 21:52:48] Homebridge is running on port 63940.

When I click I get the following message in the Xterm

---iterating--------------------
address: 0/0/43
reversed: true
dptype: DPT1
================================
[2017-02-11 22:13:59] [homebridge-knx.KNX] DEBUG got dest=43

What does this mean? What is supposed to be reported next, so I can find out what isn't working.

Kind regards, A

snowdd1 commented 7 years ago

I've edited your post for readability.
Please post knx_config.json, too. Please enclose in lines with three backticks ` so it gets formatted as block of code and stays readable, see #61.

snowdd1 commented 7 years ago

If you started homebridge in debug mode , next lines should show something about the value sent to knxd.

NederBelg commented 7 years ago

Sorry how do I start in debug mode?

2017-02-11 22:28 GMT+01:00 Raoul notifications@github.com:

If you started homebridge in debug mode , next lines should show something about the value sent to knxd.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/snowdd1/homebridge-knx/issues/81#issuecomment-279177034, or mute the thread https://github.com/notifications/unsubscribe-auth/AYhXoDh27ZYNRGpAp2dyvSPND-NpKcf5ks5rbif6gaJpZM4L-TNg .

NederBelg commented 7 years ago

config file { "knxd_ip": "192.168.178.xxx", "knxd_port": xxxx, "Devices": [ { "DeviceName": "Arbeitszimmerlampe", "Services": [ { "ServiceType": "Lightbulb", "ServiceName": "Bürolampe", "Characteristics": [ { "Type": "On", "Set": [ "0/0/43" ], "Listen": [ "0/0/43" ], "Reverse": true } ], "subtype": "SUB_f61b47b1-9ffd-4398-a734-a63f23556810" } ], "UUID": "6b225ba1-e169-437e-8ad9-331ef78a9d62" }, { "DeviceName": "Arbeitszimmerlampe2", "Services": [ { "ServiceType": "Lightbulb", "ServiceName": "Bürolampe2", "Characteristics": [ { "Type": "On", "Set": [ "0/0/44" ], "Listen": [ "0/0/44" ] } ], "subtype": "SUB_bccbf60f-6746-4b85-9ed5-4bcf4d1c8169" } ], "UUID": "73c64c2b-5193-4729-a0a2-17c96d3b03c9" }, { "DeviceName": "TestDevice", "hint": "Sample to show characteristics without KNX addresses", "Services": [ { "ServiceType": "LockMechanism", "Handler": "DummyHandler", "ServiceName": "Türschloss", "Characteristics": [ { "Type": "LockCurrentState" }, { "Type": "LockTargetState" } ], "subtype": "SUB_1d8148be-d0ff-45a8-a210-92baa45c7b75" } ], "UUID": "5b97d8f5-e965-4a63-814e-e46861facfcf" } ], "GroupAddresses": [] }

snowdd1 commented 7 years ago

Can you please read #61 before pasting? Thanks.

NederBelg commented 7 years ago

Which device is making the call to the KNXD service? Is it the appleTV or the device that runs the homebridge?

snowdd1 commented 7 years ago

The device running homebridge. Apple TV can only be used as bridge to iCloud for remote access.

NederBelg commented 7 years ago

---iterating-------------------- address: 0/0/43 reversed: true dptype: DPT1

[2017-02-11 23:01:14] [homebridge-knx.KNX] DEBUG got dest=43 EventedHTTPServer [::ffff:192.168.178.19] Sending HTTP event 'keepalive' with data: {"characteristics":[]} +47s EventedHTTPServer [::ffff:192.168.178.26] Sending HTTP event 'keepalive' with data: {"characteristics":[]} +1ms EventedHTTPServer [::ffff:192.168.178.46] Sending HTTP event 'keepalive' with data: {"characteristics":[]} +1ms EventedHTTPServer [::ffff:192.168.178.46] Sending HTTP event 'keepalive' with data: {"characteristics":[]} +1ms EventedHTTPServer [::ffff:192.168.178.46] Client connection closed +13s EventedHTTPServer [::ffff:192.168.178.46] HTTP connection was closed +0ms EventedHTTPServer [::ffff:192.168.178.46] HTTP server was closed +1ms EventedHTTPServer [::ffff:192.168.178.26] Client connection error: read ETIMEDOUT +49s EventedHTTPServer [::ffff:192.168.178.26] Client connection closed +0ms EventedHTTPServer [::ffff:192.168.178.19] Client connection error: read ETIMEDOUT +1ms EventedHTTPServer [::ffff:192.168.178.19] Client connection closed +0ms EventedHTTPServer [::ffff:192.168.178.26] HTTP connection was closed +0ms EventedHTTPServer [::ffff:192.168.178.26] HTTP server was closed +0ms EventedHTTPServer [::ffff:192.168.178.19] HTTP connection was closed +1ms EventedHTTPServer [::ffff:192.168.178.19] HTTP server was closed +0ms

19 and 46 or iOS devices 26 is the appleTV. Why isn't trying to reach the homeserver?

NederBelg commented 7 years ago

I read your issue #61. I will do it properly in the future.

I have a question about the configuration requirements: Required software: Homebridge, Homebridge-knx hardware: eib/knx system, knx-gateway

Or is more software / hardware required?

snowdd1 commented 7 years ago

You'll need a device running a knxd to connect homebridge-knx to the knx-gateway.

My sample setup:

For developing homebridge knx I have a second raspberry without additional hardware that talks to the production knxd.

NederBelg commented 7 years ago

Could I use the "TPUART Bluetooth Light" too? With a wireless connection I'm more at ease that I don't fry my knx system.

Op 12 feb. 2017 om 14:12 heeft Raoul notifications@github.com het volgende geschreven:

Raspberry 2B with busware pigator with knx tpuart child board ("pim")

snowdd1 commented 7 years ago

I would guess so. However, this is brand new (issued this January) so you might not find anybody with experience in that. And it's bus powered, so watch your total bus power consumption, so you do not fry your bus power supply.

snowdd1 commented 7 years ago

No response, closing.