Skip to content
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

Merged
merged 3 commits into from
Jan 15, 2019

Conversation

cdjackson
Copy link
Contributor

The handleRefresh method was not updating the state.
Signed-off-by: Chris Jackson [email protected]

@cdjackson cdjackson added the bug label Jan 13, 2019
@cdjackson
Copy link
Contributor Author

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...

@openhab-bot
Copy link
Collaborator

This pull request has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/zigbee-binding/15763/1836

@Override
public void attributeUpdated(ZclAttribute attribute) {
logger.debug("{}: ZigBee attribute reports {}", endpoint.getIeeeAddress(), attribute);
if (attribute.getCluster() == ZclClusterType.OCCUPANCY_SENSING
Copy link
Contributor

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?

@cdjackson
Copy link
Contributor Author

cdjackson commented Jan 14, 2019 via email

Copy link
Contributor

@hsudbrock hsudbrock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, thanks Chris!

@hsudbrock hsudbrock merged commit cdfc095 into openhab:master Jan 15, 2019
@cdjackson cdjackson added this to the 2.5 milestone Dec 8, 2019
@cdjackson cdjackson deleted the ias_zone_refresh branch April 5, 2020 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants