Add channel for Eurotronic Spirit ZigBee Window Open Mode#781
Open
rs22 wants to merge 1 commit intoopenhab:mainfrom
Open
Add channel for Eurotronic Spirit ZigBee Window Open Mode#781rs22 wants to merge 1 commit intoopenhab:mainfrom
rs22 wants to merge 1 commit intoopenhab:mainfrom
Conversation
Signed-off-by: Robert Schmid <r.schmid@outlook.com>
rs22
commented
Oct 15, 2022
| if (bindResponse.isSuccess()) { | ||
| // Configure reporting | ||
| ZclAttribute attribute = serverCluster.getAttribute(ATTR_HOST_FLAGS); | ||
| CommandResult reportingResponse = attribute |
Author
There was a problem hiding this comment.
There still is one issue I wasn't yet able to resolve: Sometimes the following exception occurs when enabling the handler:
java.lang.IllegalArgumentException: You cannot append null data to a stream
at com.zsmartsystems.zigbee.serialization.DefaultSerializer.appendZigBeeType(DefaultSerializer.java:43) ~[bundleFile:?]
at com.zsmartsystems.zigbee.zcl.field.AttributeReportingConfigurationRecord.serialize(AttributeReportingConfigurationRecord.java:361) ~[bundleFile:?]
at com.zsmartsystems.zigbee.zcl.ZclFieldSerializer.serialize(ZclFieldSerializer.java:38) ~[bundleFile:?]
at com.zsmartsystems.zigbee.zcl.clusters.general.ConfigureReportingCommand.serialize(ConfigureReportingCommand.java:107) ~[bundleFile:?]
at com.zsmartsystems.zigbee.ZigBeeNetworkManager.sendCommand(ZigBeeNetworkManager.java:903) ~[bundleFile:?]
at com.zsmartsystems.zigbee.transaction.ZigBeeTransactionManager.send(ZigBeeTransactionManager.java:444) ~[bundleFile:?]
at com.zsmartsystems.zigbee.transaction.ZigBeeTransactionManager.sendNextTransaction(ZigBeeTransactionManager.java:682) ~[bundleFile:?]
at com.zsmartsystems.zigbee.transaction.ZigBeeTransactionManager.queueTransaction(ZigBeeTransactionManager.java:373) ~[bundleFile:?]
at com.zsmartsystems.zigbee.transaction.ZigBeeTransactionManager.sendTransaction(ZigBeeTransactionManager.java:352) ~[bundleFile:?]
at com.zsmartsystems.zigbee.ZigBeeNetworkManager.sendTransaction(ZigBeeNetworkManager.java:2030) ~[bundleFile:?]
at com.zsmartsystems.zigbee.ZigBeeNode.sendTransaction(ZigBeeNode.java:963) ~[bundleFile:?]
at com.zsmartsystems.zigbee.ZigBeeEndpoint.sendTransaction(ZigBeeEndpoint.java:596) ~[bundleFile:?]
at com.zsmartsystems.zigbee.zcl.ZclCluster.sendCommand(ZclCluster.java:338) ~[bundleFile:?]
at com.zsmartsystems.zigbee.zcl.ZclCluster.sendCommand(ZclCluster.java:349) ~[bundleFile:?]
at com.zsmartsystems.zigbee.zcl.ZclCluster.setReporting(ZclCluster.java:1867) ~[bundleFile:?]
at com.zsmartsystems.zigbee.zcl.ZclCluster.setReporting(ZclCluster.java:662) ~[bundleFile:?]
at com.zsmartsystems.zigbee.zcl.ZclAttribute.setReporting(ZclAttribute.java:477) ~[bundleFile:?]
at org.openhab.binding.zigbee.internal.converter.ZigBeeConverterEurotronicSpzb0001WindowOpen.initializeDevice(ZigBeeConverterEurotronicSpzb0001WindowOpen.java:96) ~[bundleFile:?]
at org.openhab.binding.zigbee.handler.ZigBeeThingHandler.initializeDevice(ZigBeeThingHandler.java:514) ~[bundleFile:?]
at org.openhab.binding.zigbee.handler.ZigBeeThingHandler.doNodeInitialisation(ZigBeeThingHandler.java:377) [bundleFile:?]
at org.openhab.binding.zigbee.handler.ZigBeeThingHandler$1.call(ZigBeeThingHandler.java:227) [bundleFile:?]
at org.openhab.binding.zigbee.handler.ZigBeeThingHandler$1.call(ZigBeeThingHandler.java:1) [bundleFile:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
at java.lang.Thread.run(Thread.java:829) [?:?]
19:44:59.119 [INFO ] [hab.event.ThingStatusInfoChangedEvent]
Contributor
There was a problem hiding this comment.
Possibly this is considered an analog attribute, in which case there is another parameter that needs to go in the reporting configuration. If the attribute is analog, and you use the digital version of this method, then I think the library will try and send the extra parameter and it will be null.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds a channel for enabling/disabling the 'window open' mode of Eurotronic Spirit ZigBee radiator thermostats. This feature is only accessible through a manufacturer-specific attribute.
Issue reference: #554