New Z-Way Binding

Yes, I would like to help. What should I look for in the log file? Or which part you are you interested in?

But you are doing it :slight_smile:


EDIT:
I found something like:

[2016-09-20 16:53:50.946] [I] [core] Installing app OpenHABConnector ...
[2016-09-20 16:53:51.275] [I] [core] Downloaded contents for 'OpenHABConnector'
[2016-09-20 16:53:51.287] [I] [core] Extracting automation/userModules/OpenHABConnector/CHANGELOG.md
[2016-09-20 16:53:51.287] [I] [core] Extracting automation/userModules/OpenHABConnector/htdocs/
[2016-09-20 16:53:51.287] [I] [core] Extracting automation/userModules/OpenHABConnector/htdocs/icon.png
[2016-09-20 16:53:51.287] [I] [core] Extracting automation/userModules/OpenHABConnector/index.js
[2016-09-20 16:53:51.288] [I] [core] Extracting automation/userModules/OpenHABConnector/lang/
[2016-09-20 16:53:51.288] [I] [core] Extracting automation/userModules/OpenHABConnector/lang/de.json
[2016-09-20 16:53:51.288] [I] [core] Extracting automation/userModules/OpenHABConnector/lang/en.json
[2016-09-20 16:53:51.288] [I] [core] Extracting automation/userModules/OpenHABConnector/LICENSE.txt
[2016-09-20 16:53:51.289] [I] [core] Extracting automation/userModules/OpenHABConnector/module.json
[2016-09-20 16:53:51.289] [I] [core] Extracting automation/userModules/OpenHABConnector/README.md
[2016-09-20 16:53:51.289] [I] [core] Module successfully unpacked
[2016-09-20 16:53:51.290] [I] [core] Load app "OpenHABConnector" from folder ...
[2016-09-20 16:53:51.294] [I] [core] Loading module OpenHABConnector from userModules/OpenHABConnector
[2016-09-20 16:53:51.297] [I] [core] Executing script: /**^M ...
[2016-09-20 16:54:17.236] [I] [core] Instantiating module 11 from class OpenHABConnector
[2016-09-20 16:54:17.240] [I] [core] --- Starting module OpenHAB Connector
[2016-09-20 16:54:17.247] [I] [core] Creating device text OpenHabConnector
[...]
[2016-09-20 16:54:45.751] [D] [zway] Job 0x13: deleted from queue
[2016-09-20 16:54:46.024] [D] [zway] Job 0x13: deleted from queue
[2016-09-20 16:56:00.429] [I] [core] Deleting device text OpenHabConnector
[2016-09-20 16:56:00.453] [I] [core] --- Stopping module OpenHAB Connector
[2016-09-20 16:56:00.458] [I] [core] --- Starting module OpenHAB Connector
[2016-09-20 16:56:00.471] [I] [core] Creating device text OpenHabConnector
[2016-09-20 16:56:00.597] [I] [core] ---  OpenHabConnector performCommand processing: {"0":"refreshListener","1":{}}
[...]

Regards,
AndrƩ

You can search for [E] or error in Z-Way log file.

Are there entries on the pattern [2016-08-25 10:00:07.795] [E] ...?

Yes,
perhaps this

[2016-09-20 17:20:16.760] [I] [core] Deleting device text OpenHabConnector
[2016-09-20 17:20:16.780] [I] [core] --- Stopping module OpenHAB Connector
[2016-09-20 17:20:16.783] [I] [core] --- Starting module OpenHAB Connector
[2016-09-20 17:20:16.796] [I] [core] Creating device text OpenHabConnector
[2016-09-20 17:20:16.817] [I] [core] (node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit. 11
[2016-09-20 17:20:16.833] [E] [HTTP] Callback execution error: TypeError: undefined is not a function
[2016-09-20 17:20:44.552] [I] [core] Instantiating module 11 from class OpenHABConnector
[2016-09-20 17:20:44.556] [I] [core] --- Starting module OpenHAB Connector
[2016-09-20 17:20:44.568] [I] [core] Creating device text OpenHabConnector
[2016-09-20 20:17:20.184] [D] [zway] Job 0x13: deleted from queue

I think undefined became UNDEF and is a state not a function or do I mix something?

That helps me a lot. The error occurs in the Connector.
Can you please open the Connector settings (under Z-Way - Apps - Active > openHAB Connector Modules). How many servers are listed?

There is just a single server. During my testing I removed the Thing and then the former created server is deleted. But before I deleted one for testing manually.

But to concretely answer your question. There is just one server :slight_smile:

Thatsā€™s good.

If everything works now (state update?, command handling?), ignore the offline status for the moment and I will refactore this. You can also download the new version (no longer up to date, the latest version is linked in the pull request) from this morning. In this I have corrected a problem with concurrency. Maybe this update addresses the issue.

Iā€™ll do it. Thanks.

I tried it right away and for now I can say that all things are online :thumbsup:

But it seems that there arenā€™t updates anymore. So a tail -f events.log |grep way arenā€™t giving any data automatically. When I switch something manually an update is shown. But nothing else from the sensors. Motion I canā€™t test right now.

Try the following request: http://YOUR_IP:8083/ZAutomation/api/v1/devices/OpenHabConnector/command/refreshListener

Result: {"data":{"code":1,"message":"OK"},"code":200,"message":"200 OK","error":null}

In between there was one update in events.log, from a temperature sensor of a multisensor. But that appers to be that the others wonā€™t update. Perhaps there arenā€™t any changes so that the sensors doesnā€™t have anything to send.

So. Updates are coming, but not that often as I expected. Seems to be quiet normal though.

And the zway things are still online! Great :slight_smile:

Z-Way notify openHAB only if an event occurs. You can check this in Events view of Z-Way (http://YOUR_IP:8083/smarthome/#/events). All events listed there should appear in event.log of openHAB.

Many thanks for your help to improve the binding :+1:

Well :blush: oh yeah youā€™re right. I could have thought about that myself. Those entries are all the same. NICE!

You are very welcome.

Hi @pathec,

recently I came across another ā€œthingā€. After adding a camera to my zway software I get logs like
16:05:44.737 [WARN ] [model.devices.DeviceListDeserializer] - Unknown device type: camera
in my openHAB.
So could it be possible that another link:
16:05:41.391 [WARN ] [model.devices.DeviceListDeserializer] - Unknown device type: text
is an output of your binding? I was wondering where the text-warning came from. After getting the camera-warning I thought that could be comming there too?

Or do you have another idea?

@devTechi,

These warnings mean that the device types have not yet been implemented. The second warning is suppressed in the current version because there is no corresponding type for longer texts in openHAB.

Iā€™m currently working on camera device type ā€¦

Regards,
Patrick

PS:
Current version of Z-Way Binding (last updated 28/09/2016) (no longer up to date, the latest version is linked in the pull request) - changes since the initial commit

  • New device types for rgb bulb and doorlock
  • New channel definitions depending on Z-Way probe types
  • Improved thing status handling
  • Mapping of locations to thing location
  • German language files
  • Add bridge uid to thing uid during discovery (Attention: During discovery existing things are not recognized as existing. You have to delete the existing things and add things again - sorry for this bug)
  • Better default device labels, if devices not renamed in Z-Way

Current version of OpenHAB Connector 0.1.3 can be downloaded/updated from Z-Way App Store or pulled via Git

  • The update fixes the bug that you have noticed (HTTP 500):grin:

Hi @devTechi,

Which type of camera do you have? All camera types of Z-Way use only HTTP for communication. Do you see the need to put the Z-Way cameras in openHAB? Or would be a direct integration better?

Regards,
Patrick

Iā€™ve got a Foscam cam and another Wanscam or sort of it. No I donā€™t need cameras in openHAB using your binding. But since I found that I can add them in Z-Way I tried it and had a look in my openHAB log. So. I really don`t need (yet?) my cams in the binding. But perhaps it helped to improve you binding.

I updated both. Works like before. Second warning is suppressed like you said. I didnā€™t have to add the bridge or things again. Old things kept working.

Regards,
AndrƩ

Your feedback will help me. Thanks for your tests. Iā€™ll change the warning in an information message ā€œThe device type has not yet been implementedā€.

But exiting things should appear in your inbox as new?

Regards,
Patrick

No. Not right after updating. But because I played a bit further I had to remove all my zway-things and add them again. So I canā€™t say that exactly.

But because of my fiddling now I get messages, that some observers send messages to items/links that arenā€™t existing anymore. Is there any way I can see all observers in zway? And perhaps any way to edit/remove them manually?

Regards,
AndrƩ

Have a look at the openHAB Connector in Z-Way and click on the text ā€œThe following table lists all ā€¦ā€. In the rightmost column observer can be deleted.