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

Update #57

Merged
merged 44 commits into from
Apr 26, 2021
Merged

Update #57

merged 44 commits into from
Apr 26, 2021

Conversation

Smanar
Copy link
Owner

@Smanar Smanar commented Apr 26, 2021

No description provided.

SwoopX and others added 30 commits April 4, 2021 22:00
Don't store entries with state 'deleted'. This purges a device completely.

Since deCONZ 2.10.4 deCONZ::Node won't be created if neither of these entries exist to prevent reappearance of delted nodes.
Since deCONZ 2.10.4 reappearance of deleted nodes is fixed. Which means that deCONZ::Node is only created under stricter conditions, see #4772

This PR enabled creation of light nodes even if light search isn't running anymore, but minimal required data has already been queried from the device (Node Descriptor and Simple Descriptors).

The reason this came up is that in larger installations where >100 devices where joined sucessfully and appeared in the GUI wheren't processed completely and light resources where missing albeit the device was already joined during a Permit Join enabled phase.
Since the --always-add-lights commandline parameter exists this can be enabled if needed without causing confusion.
Move electrical measurement related code to dedicated file
sensor->modelId() iterates over all ResourceItems and dereferences the QString pointer. Since the value is used quite often here it can be cached.
FIX : Create a battery sensor for Tuya Blind AM43
Add initial support for Yoolax Blinds
Add initial support for Tuya TYZB01 light sensor
Electrical measurement: Improve handler performance
SwoopX and others added 14 commits April 25, 2021 13:24
Move simple metering related code to dedicated file
Add initial support for Drayton Wiser Radiator Thermostat
Add initial support for Xiaomi Aqara D1 switches QBKG21LM & QBKG22LM
Add initial support for Tuya 3 Button _TZ3000_rrjr1q0u
Calls like sensor->modelId() iterate over all ResourceItem and their descriptors to get the actual item.

This PR caches the modelId at the beginning of the function. Most reduntant checks for sensor pointer where removed as well.

Further the manufacturerCode from bt.restNode->node()->nodeDescriptor().manufacturerCode() is cached.
Improve sendConfigureReportingRequest() performance
Streamline attribute reporting config and align polling
Move Xiaomi special reporting related code to dedicated file
"else" was left from refactoring.
@Smanar Smanar merged commit e78b27c into Smanar:master Apr 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants