Zibee Yale YRD216 PBDB

Where and how will I add controls? I just added the lock in the things menu and it shows lock status channel.

What does the control menu show you?

control menu is blank

Have you linked any channels to some items - I guess not?

no how will i do that

You should read the openhab documentation if you are not familiar with the basic operation of the system.

Please take a read through hereā€¦ Concepts | openHAB.

Chris,
I add door lock state and battery channels to control. The door lock state channel is defaulted to off when I toggle it on it doesnā€™t stay on and in the openhab log file it states that :ā€œdoorlockstate failed to initialiseā€

please see the control screenshot.

2018-09-21 22:44:23.479 [INFO ] [basic.internal.servlet.WebAppServlet] - Stopped Basic UI
2018-09-21 22:44:31.654 [INFO ] [arthome.ui.paper.internal.PaperUIApp] - Stopped Paper UI
2018-09-21 22:44:31.680 [INFO ] [panel.internal.HABPanelDashboardTile] - Stopped HABPanel
2018-09-21 22:44:31.693 [INFO ] [ebuilder.internal.HomeBuilderServlet] - Stopped Home Builder
2018-09-21 22:44:31.717 [INFO ] [.dashboard.internal.DashboardService] - Stopped Dashboard
2018-09-21 22:45:14.513 [INFO ] [ebuilder.internal.HomeBuilderServlet] - Started Home Builder at /homebuilder
2018-09-21 22:45:14.815 [INFO ] [panel.internal.HABPanelDashboardTile] - Started HABPanel at /habpanel
2018-09-21 22:45:15.052 [INFO ] [.dashboard.internal.DashboardService] - Started Dashboard at http://192.168.1.15:8080
2018-09-21 22:45:15.065 [INFO ] [.dashboard.internal.DashboardService] - Started Dashboard at https://192.168.1.15:8443
2018-09-21 22:45:29.434 [INFO ] [thome.model.lsp.internal.ModelServer] - Started Language Server Protocol (LSP) service on port 5007
2018-09-21 22:45:33.372 [INFO ] [basic.internal.servlet.WebAppServlet] - Started Basic UI at /basicui/app
2018-09-21 22:45:33.490 [INFO ] [arthome.ui.paper.internal.PaperUIApp] - Started Paper UI at /paperui
2018-09-21 22:45:38.489 [INFO ] [bee.discovery.ZigBeeDiscoveryService] - 000D6F000F747372: Starting ZigBee device discovery
2018-09-21 22:45:38.537 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing ā€˜zigbee:device:9abac4d2:000d6f000f747372ā€™ to inbox.
2018-09-21 22:46:58.054 [ERROR] [al.converter.ZigBeeConverterDoorLock] - 000D6F000F747372: Error opening device door lock controls
2018-09-21 22:46:58.063 [INFO ] [ng.zigbee.handler.ZigBeeThingHandler] - 000D6F000F747372: Channel zigbee:device:9abac4d2:000d6f000f747372:000D6F000F747372_1_doorlockstate failed to initialise

Please provide a full debug log of the initialisation and I will take a look.

chris,

I created default.items and default.sitemap file and the lock shows up on both controls and basic ui. In both cases it only show on and off. What am I missing to see the lock and unlock functionality

Again when I set the switch to on I get the following message and changes back to off.

I hope this is the log your were expecting:

2018-09-22 19:34:47.684 [DEBUG] [ng.zigbee.handler.ZigBeeThingHandler] - 000D6F000F747372: Command for channel zigbee:device:9abac4d2:000d6f000f747372:000D6F000F747372_1_doorlockstate --> OFF
2018-09-22 19:34:47.694 [DEBUG] [ng.zigbee.handler.ZigBeeThingHandler] - 000D6F000F747372: No handler found for zigbee:device:9abac4d2:000d6f000f747372:000D6F000F747372_1_doorlockstate
2018-09-22 19:35:01.469 [DEBUG] [ng.zigbee.handler.ZigBeeThingHandler] - 000D6F000F747372: Command for channel zigbee:device:9abac4d2:000d6f000f747372:000D6F000F747372_1_doorlockstate --> ON
2018-09-22 19:35:01.477 [DEBUG] [ng.zigbee.handler.ZigBeeThingHandler] - 000D6F000F747372: No handler found for zigbee:device:9abac4d2:000d6f000f747372:000D6F000F747372_1_doorlockstate
2018-09-22 19:35:46.525 [DEBUG] [ng.zigbee.handler.ZigBeeThingHandler] - 000D6F000F747372: Node updated - ZigBeeNode [IEEE=000D6F000F747372, NWK=D545, Type=END_DEVICE]
2018-09-22 19:35:46.536 [DEBUG] [nal.ZigBeeNetworkStateSerializerImpl] - Saving ZigBee network state: Start.
2018-09-22 19:35:46.681 [DEBUG] [nal.ZigBeeNetworkStateSerializerImpl] - Saving ZigBee network state: Done.
2018-09-22 19:35:49.856 [DEBUG] [nal.ZigBeeNetworkStateSerializerImpl] - Saving ZigBee network state: Start.
2018-09-22 19:35:50.001 [DEBUG] [nal.ZigBeeNetworkStateSerializerImpl] - Saving ZigBee network state: Done.
2018-09-22 19:36:57.618 [DEBUG] [ng.zigbee.handler.ZigBeeThingHandler] - 000D6F000F747372: Node updated - ZigBeeNode [IEEE=000D6F000F747372, NWK=D545, Type=END_DEVICE]
2018-09-22 19:36:57.626 [DEBUG] [nal.ZigBeeNetworkStateSerializerImpl] - Saving ZigBee network state: Start.
2018-09-22 19:36:57.719 [DEBUG] [nal.ZigBeeNetworkStateSerializerImpl] - Saving ZigBee network state: Done.
2018-09-22 19:36:59.560 [DEBUG] [nal.ZigBeeNetworkStateSerializerImpl] - Saving ZigBee network state: Start.
2018-09-22 19:36:59.697 [DEBUG] [nal.ZigBeeNetworkStateSerializerImpl] - Saving ZigBee network state: Done.
2018-09-22 19:41:59.656 [DEBUG] [nal.ZigBeeNetworkStateSerializerImpl] - Saving ZigBee network state: Start.
2018-09-22 19:41:59.791 [DEBUG] [nal.ZigBeeNetworkStateSerializerImpl] - Saving ZigBee network state: Done.
2018-09-22 19:43:01.271 [DEBUG] [ng.zigbee.handler.ZigBeeThingHandler] - 000D6F000F747372: Command for channel zigbee:device:9abac4d2:000d6f000f747372:000D6F000F747372_1_doorlockstate --> ON
2018-09-22 19:43:01.279 [DEBUG] [ng.zigbee.handler.ZigBeeThingHandler] - 000D6F000F747372: No handler found for zigbee:device:9abac4d2:000d6f000f747372:000D6F000F747372_1_doorlockstate

Chris,

I reset the lock and now the lock status could be changed from on to off and vice/versa

I also created the following rule and seams to be working. how can I change this rule to perform lock and unlock

rule ā€œLock_itā€
when
Item My_iPhone changed from OFF to ON
then
Door_Lock_State.sendCommand(ON)
end

rule ā€œUnLock_itā€
when
Item My_iPhone changed from ON to OFF
then
Door_Lock_State.sendCommand(OFF)
end

Great - Iā€™m glad you finally got it working.

Chris,

What command can I send from the rule script to lock and unlock the device?

This is a switch, so you can set it to ON and OFF.

Chris,

So your new code does not give me the locking and unlocking ability?

Sorry, Iā€™m confused - I thought you said above it was working?

If this is not the case, then please can you clearly describe what your issue is.

I have a lock(YRD216) that is connected to openhab I want to be able to lock and unlock it from openhab.

currently I see the battery percentage and (on and off) status. I have not been able to unlock it or lock it

You should be able to send a command to the channel to unlock and lock it. If itā€™s not working, then please provide a full debug log of the initialisation of the binding. Please also ensure you use code fences when posting logs so they are readable.

What is the locking and unlocking command ?

You need to set the item to ON or OFF. ON will lock it, and OFF will unlock it.