Zigbee binding

@chris, The Samsung Smartthing motion sensors still shows only a single property

1_measurement_temperature

Is this not supported in v2.3?

Please provide a log and more than a one line statement if you have an issue. This statement is simply incorrect, so without further information to try and establish what the issue is, thereā€™s little that I can do with.

Yes, but some ST sensors are not reporting motion, but are reporting a ā€œsystemā€ alarm. The binding has been modified to support this but itā€™s not merged yet (actually, it might have been merged last night, but Iā€™m not sure if itā€™s built).

I was referring to the issue, ā€˜ttyUSB1: failed set request 0x7 status: -32ā€™. When that happens, pairing seems to stop working.

Ok, that was unclear. As I said earlier, I donā€™t think thereā€™s anything I can do about this as I donā€™t think itā€™s related to the binding.

If you think this is a binding problem, then as requested, please provide a logfile.

This is my device which is only reporting temperature property.

That doesnā€™t really tell me enough to know what report it sends. Letā€™s see if the system alarm addition fixes the problem.

https://www.mydigitaldiscount.com/visonic-mct-340-e-wireless-door-window-temperature-sensor-2.4ghz-zigbee-now-works-natively-with-samsung-smartthings-hub/

https://www.mydigitaldiscount.com/bosch-security-motion-sensor-pir-pet-immune-for-samsung-smartthings-and-other-smart-hubs-with-zigbee-wireless/

Both wont connect. Here are the debug logs.

https://pastebin.com/vDkD69j0

There is no join request in the log.

hmmm

What about this one?

https://pastebin.com/NQGiheyd

It has a join request this time, but nothing joinsā€¦

Will other zigbee networks in the area interfere with pairing devices to the zigbee binding? I have a hue hub and a smartthings hub running in my network right now and Iā€™m wondering if those are preventing my devices from pairing to my telegesis stick.

If pairing is disabled on those hubs (it should be off by default, but who knows!) and you reset the device before trying to join the network, then they shouldnā€™t interfere

Iā€™ve just merged an update to improve color and color temperature handling. There are a few changes -:

  • Detection of device features is improved. The binding will now attempt (up to) three different methods to detect the features of the device, which should improve robustness. Additionally, it should improve the actual detection - currently bulbs that are white bulbs that have CT adjustment will also show a color control - with the new system this should not happen (assuming the bulb provides this information!).
  • Color temperature is now scaled based on what the device reports it can support (ie the min/max color temperature will scale to each end of the slider) rather than fixed values in the binding (again, subject the device reporting this information).

Any issues, please let me know.

2 Likes

I am getting NPE using Ember stick trying to pair GE bulbs,

2018-01-31 22:03:23.006 [DEBUG] [bee.discovery.ZigBeeDiscoveryService] - Starting ZigBee scan for zigbee:coordinator_ember:3e00fd97
2018-01-31 22:03:23.024 [INFO ] [bee.discovery.ZigBeeDiscoveryService] - 7CE524000001C4D3: Starting ZigBee device discovery
2018-01-31 22:03:23.028 [DEBUG] [bee.discovery.ZigBeeDiscoveryService] - 7CE524000001C4D3: Creating ZigBee device zigbee:device with bridge zigbee:coordinator_ember:3e00fd97
2018-01-31 22:03:23.036 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'zigbee:device:3e00fd97:7ce524000001c4d3' to inbox.
2018-01-31 22:03:23.043 [DEBUG] [scovery.ZigBeeNodePropertyDiscoverer] - 7CE524000001C4D3: ZigBee node property discovery start
2018-01-31 22:03:23.046 [DEBUG] [scovery.ZigBeeNodePropertyDiscoverer] - 7CE524000001C4D3: ZigBee node property discovery using 27198/1
2018-01-31 22:03:33.059 [DEBUG] [scovery.ZigBeeNodePropertyDiscoverer] - 7CE524000001C4D3: Manufacturer request timeout (retry 0)
2018-01-31 22:03:43.064 [DEBUG] [scovery.ZigBeeNodePropertyDiscoverer] - 7CE524000001C4D3: Manufacturer request timeout (retry 1)
2018-01-31 22:03:53.070 [DEBUG] [scovery.ZigBeeNodePropertyDiscoverer] - 7CE524000001C4D3: Manufacturer request timeout (retry 2)
2018-01-31 22:04:03.078 [DEBUG] [scovery.ZigBeeNodePropertyDiscoverer] - 7CE524000001C4D3: Model request timeout (retry 0)
2018-01-31 22:04:13.084 [DEBUG] [scovery.ZigBeeNodePropertyDiscoverer] - 7CE524000001C4D3: Model request timeout (retry 1)
2018-01-31 22:04:20.996 [DEBUG] [nal.ZigBeeNetworkStateSerializerImpl] - Saving ZigBee network state: done.
2018-01-31 22:04:23.089 [DEBUG] [scovery.ZigBeeNodePropertyDiscoverer] - 7CE524000001C4D3: Model request timeout (retry 2)
2018-01-31 22:04:34.167 [DEBUG] [scovery.ZigBeeNodePropertyDiscoverer] - 7CE524000001C4D3: OTA firmware request timeout
2018-01-31 22:04:34.175 [DEBUG] [scovery.ZigBeeNodePropertyDiscoverer] - 7CE524000001C4D3: ZigBee node property discovery complete: {zigbee_logicaltype=ROUTER, zigbee_powerlevel=FULL, zigbee_networkaddress=56661, zigbee_powermode=RECEIVER_ON_IDLE, zigbee_powersources=[MAINS], zigbee_powersource=MAINS, hardwareVersion=1, zigbee_stkversion=2, zigbee_datecode=20140812, zigbee_zclversion=1}
2018-01-31 22:04:34.181 [DEBUG] [bee.discovery.ZigBeeDiscoveryService] - 7CE524000001C4D3: Update ZigBee device zigbee:device with bridge zigbee:coordinator_ember:3e00fd97, label 'Unknown ZigBee Device 7CE524000001C4D3'
2018-01-31 22:04:49.166 [DEBUG] [zigbee.internal.ZigBeeHandlerFactory] - Creating coordinator handler for org.eclipse.smarthome.core.thing.internal.ThingImpl@bd4303c
2018-01-31 22:04:49.185 [DEBUG] [org.openhab.binding.zigbee          ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.config.core.ConfigDescriptionProvider}={service.id=374, service.bundleid=248, service.scope=singleton} - org.openhab.binding.zigbee
2018-01-31 22:04:49.212 [DEBUG] [org.openhab.binding.zigbee          ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.core.thing.binding.firmware.FirmwareUpdateHandler}={service.id=375, service.bundleid=248, service.scope=singleton} - org.openhab.binding.zigbee
2018-01-31 22:04:49.236 [DEBUG] [ng.zigbee.handler.ZigBeeThingHandler] - 7CE524000001C4D3: Initializing ZigBee thing handler zigbee:device:3e00fd97:7ce524000001c4d3
2018-01-31 22:04:49.241 [DEBUG] [ng.zigbee.handler.ZigBeeThingHandler] - 7CE524000001C4D3: Coordinator status changed to ONLINE.
2018-01-31 22:04:49.244 [DEBUG] [ng.zigbee.handler.ZigBeeThingHandler] - 7CE524000001C4D3: Coordinator is ONLINE. Starting device initialisation.
2018-01-31 22:04:49.260 [DEBUG] [ng.zigbee.handler.ZigBeeThingHandler] - 7CE524000001C4D3: Start initialising ZigBee Thing handler
2018-01-31 22:04:49.270 [DEBUG] [verter.ZigBeeChannelConverterFactory] - 7CE524000001C4D3: Removing channel zigbee:switch_onoff in favor of zigbee:switch_level
2018-01-31 22:04:49.274 [DEBUG] [ng.zigbee.handler.ZigBeeThingHandler] - 7CE524000001C4D3: Created 1 channels
2018-01-31 22:04:49.278 [DEBUG] [ng.zigbee.handler.ZigBeeThingHandler] - 7CE524000001C4D3: Updating thing definition as channels have changed
2018-01-31 22:04:49.334 [DEBUG] [ng.zigbee.handler.ZigBeeThingHandler] - 7CE524000001C4D3: Initializing channel zigbee:device:3e00fd97:7ce524000001c4d3:7CE524000001C4D3_1_switch_level with org.openhab.binding.zigbee.internal.converter.ZigBeeConverterSwitchLevel@1e4e7c
2018-01-31 22:04:49.337 [ERROR] [ng.zigbee.handler.ZigBeeThingHandler] - 7CE524000001C4D3: Exception creating channels 
java.lang.NullPointerException: null
        at com.zsmartsystems.zigbee.zcl.ZclCluster.bind(ZclCluster.java:437) [248:org.openhab.binding.zigbee:2.3.0.201801311135]
        at org.openhab.binding.zigbee.internal.converter.ZigBeeConverterSwitchLevel.initializeConverter(ZigBeeConverterSwitchLevel.java:51) [248:org.openhab.binding.zigbee:2.3.0.201801311135]
        at org.openhab.binding.zigbee.handler.ZigBeeThingHandler.doNodeInitialisation(ZigBeeThingHandler.java:232) [248:org.openhab.binding.zigbee:2.3.0.201801311135]
        at org.openhab.binding.zigbee.handler.ZigBeeThingHandler.access$0(ZigBeeThingHandler.java:173) [248:org.openhab.binding.zigbee:2.3.0.201801311135]
        at org.openhab.binding.zigbee.handler.ZigBeeThingHandler$1.call(ZigBeeThingHandler.java:167) [248:org.openhab.binding.zigbee:2.3.0.201801311135]
        at org.openhab.binding.zigbee.handler.ZigBeeThingHandler$1.call(ZigBeeThingHandler.java:1) [248:org.openhab.binding.zigbee:2.3.0.201801311135]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [?:?]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:?]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
        at java.lang.Thread.run(Thread.java:748) [?:?]
2018-01-31 22:05:13.510 [DEBUG] [ng.zigbee.handler.ZigBeeThingHandler] - 7CE524000001C4D3: Node updated - ZigBeeNode [IEEE=7CE524000001C4D3, NWK=DD55, Type=ROUTER]
2018-01-31 22:05:13.539 [DEBUG] [ng.zigbee.handler.ZigBeeThingHandler] - 7CE524000001C4D3: Start initialising ZigBee Thing handler
2018-01-31 22:05:13.547 [DEBUG] [verter.ZigBeeChannelConverterFactory] - 7CE524000001C4D3: Removing channel zigbee:switch_onoff in favor of zigbee:switch_level
2018-01-31 22:05:13.547 [DEBUG] [nal.ZigBeeNetworkStateSerializerImpl] - Saving ZigBee network state: done.
2018-01-31 22:05:13.553 [DEBUG] [ng.zigbee.handler.ZigBeeThingHandler] - 7CE524000001C4D3: Created 1 channels
2018-01-31 22:05:13.563 [DEBUG] [ng.zigbee.handler.ZigBeeThingHandler] - 7CE524000001C4D3: Initializing channel zigbee:device:3e00fd97:7ce524000001c4d3:7CE524000001C4D3_1_switch_level with org.openhab.binding.zigbee.internal.converter.ZigBeeConverterSwitchLevel@181e286
2018-01-31 22:05:13.567 [ERROR] [ng.zigbee.handler.ZigBeeThingHandler] - 7CE524000001C4D3: Exception creating channels 
java.lang.NullPointerException: null
        at com.zsmartsystems.zigbee.zcl.ZclCluster.bind(ZclCluster.java:437) [248:org.openhab.binding.zigbee:2.3.0.201801311135]
        at org.openhab.binding.zigbee.internal.converter.ZigBeeConverterSwitchLevel.initializeConverter(ZigBeeConverterSwitchLevel.java:51) [248:org.openhab.binding.zigbee:2.3.0.201801311135]
        at org.openhab.binding.zigbee.handler.ZigBeeThingHandler.doNodeInitialisation(ZigBeeThingHandler.java:232) [248:org.openhab.binding.zigbee:2.3.0.201801311135]
        at org.openhab.binding.zigbee.handler.ZigBeeThingHandler.access$0(ZigBeeThingHandler.java:173) [248:org.openhab.binding.zigbee:2.3.0.201801311135]
        at org.openhab.binding.zigbee.handler.ZigBeeThingHandler$1.call(ZigBeeThingHandler.java:167) [248:org.openhab.binding.zigbee:2.3.0.201801311135]
        at org.openhab.binding.zigbee.handler.ZigBeeThingHandler$1.call(ZigBeeThingHandler.java:1) [248:org.openhab.binding.zigbee:2.3.0.201801311135]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [?:?]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:?]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
        at java.lang.Thread.run(Thread.java:748) [?:?]


bundle:list
248 ļæ½ļæ½ļæ½ Active   ļæ½ļæ½ļæ½  80 ļæ½ļæ½ļæ½ 2.3.0.201801311135     ļæ½ļæ½ļæ½ ZigBee Binding

The GE bulb status is ā€˜OFFLINE - HANDLER_INITIALIZING_ERRORā€™ in PaperUI

Good thing is as soon as i updated the binding my Samsung Motion Sensor showed up an extra property, CIE Standard System Alarm.

Iā€™m getting the same exception, but just starting up and not just GE Link bubsā€¦

I think I know what this is without looking at the code. It is fixed, and Iā€™ll roll it into the binding this evening.

Any of this compatible since my CC2531 from aliexpress is not working correctly?

Please let me know if this is now resolvedā€¦

It is resolved.

On a reboot log showed,

2018-02-01 18:52:24.579 [DEBUG] [converter.ZigBeeBaseChannelConverter] - 7CE524000001C4D3: Channel zigbee:device:3e00fd97:7ce524000001c4d3:7CE524000001C4D3_1_switch_level updated to 0
2018-02-01 18:52:24.578 [ERROR] [nverter.config.ZclLevelControlConfig] - 56661/1: Error getting supported attributes for Level Control. 
java.util.concurrent.ExecutionException: java.lang.ClassCastException: com.zsmartsystems.zigbee.zcl.clusters.general.ReportAttributesCommand cannot be cast to com.zsmartsystems.zigbee.zcl.clusters.general.DiscoverAttributesResponse
        at java.util.concurrent.FutureTask.report(FutureTask.java:122) [?:?]
        at java.util.concurrent.FutureTask.get(FutureTask.java:192) [?:?]
        at org.openhab.binding.zigbee.internal.converter.config.ZclLevelControlConfig.getConfiguration(ZclLevelControlConfig.java:46) [249:org.openhab.binding.zigbee:2.3.0.201802012251]
        at org.openhab.binding.zigbee.internal.converter.ZigBeeConverterSwitchLevel.initializeConverter(ZigBeeConverterSwitchLevel.java:71) [249:org.openhab.binding.zigbee:2.3.0.201802012251]
        at org.openhab.binding.zigbee.handler.ZigBeeThingHandler.doNodeInitialisation(ZigBeeThingHandler.java:232) [249:org.openhab.binding.zigbee:2.3.0.201802012251]
        at org.openhab.binding.zigbee.handler.ZigBeeThingHandler.access$0(ZigBeeThingHandler.java:173) [249:org.openhab.binding.zigbee:2.3.0.201802012251]
        at org.openhab.binding.zigbee.handler.ZigBeeThingHandler$1.call(ZigBeeThingHandler.java:167) [249:org.openhab.binding.zigbee:2.3.0.201802012251]
        at org.openhab.binding.zigbee.handler.ZigBeeThingHandler$1.call(ZigBeeThingHandler.java:1) [249:org.openhab.binding.zigbee:2.3.0.201802012251]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [?:?]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:?]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
        at java.lang.Thread.run(Thread.java:748) [?:?]
Caused by: java.lang.ClassCastException: com.zsmartsystems.zigbee.zcl.clusters.general.ReportAttributesCommand cannot be cast to com.zsmartsystems.zigbee.zcl.clusters.general.DiscoverAttributesResponse
        at com.zsmartsystems.zigbee.zcl.ZclCluster$1.call(ZclCluster.java:555) ~[?:?]
        at com.zsmartsystems.zigbee.zcl.ZclCluster$1.call(ZclCluster.java:528) ~[?:?]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:?]
        ... 1 more