-
-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed handling of IAS Zone Refresh #360
Conversation
Signed-off-by: Chris Jackson <[email protected]>
I've modified this slightly to now add an attribute listener. Previously this wouldn't have worked. I'd like to get this merged quickly - if we can get the CI to work! @kaikreuzer any ideas on this (it's been broken for a week)? I posted a message on the openhab maintainers list, but I guess everyone is still on holiday... |
This pull request has been mentioned on openHAB Community. There might be relevant details there: |
@Override | ||
public void attributeUpdated(ZclAttribute attribute) { | ||
logger.debug("{}: ZigBee attribute reports {}", endpoint.getIeeeAddress(), attribute); | ||
if (attribute.getCluster() == ZclClusterType.OCCUPANCY_SENSING |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One question, Chris: Why should this code relating to occupancy sensing go into the abstract base class for all IAS converters. Isn't this something that should only go into the subclasses that deal with occupancy sensing?
Oops- cut and paste error :(. I’ll sort this later - thanks.
…Sent from my iPhone
On 14 Jan 2019, at 13:45, Henning Sudbrock ***@***.***> wrote:
@hsudbrock commented on this pull request.
In org.openhab.binding.zigbee/src/main/java/org/openhab/binding/zigbee/internal/converter/ZigBeeConverterIas.java:
> - case "Contact":
- updateChannelState(((zoneStatus.getZoneStatus() & bitTest) != 0) ? OpenClosedType.OPEN
- : OpenClosedType.CLOSED);
- break;
- default:
- logger.warn("{}: Unsupported item type {}", endpoint.getIeeeAddress(),
- channel.getAcceptedItemType());
- break;
+ updateChannelState(zoneStatus.getZoneStatus());
+ }
+ }
+
+ @OverRide
+ public void attributeUpdated(ZclAttribute attribute) {
+ logger.debug("{}: ZigBee attribute reports {}", endpoint.getIeeeAddress(), attribute);
+ if (attribute.getCluster() == ZclClusterType.OCCUPANCY_SENSING
One question, Chris: Why should this code relating to occupancy sensing go into the abstract base class for all IAS converters. Isn't this something that should only go into the subclasses that deal with occupancy sensing?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Signed-off-by: Chris Jackson <[email protected]>
118766c
to
3469183
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, thanks Chris!
The
handleRefresh
method was not updating the state.Signed-off-by: Chris Jackson [email protected]