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

Zigbee2mqtt lqi #1343

Merged
merged 3 commits into from
Sep 12, 2022
Merged

Conversation

atrovato
Copy link
Contributor

Pull Request check-list

To ensure your Pull Request can be accepted as fast as possible, make sure to review and check all of these items:

  • If your changes affects code, did your write the tests?
  • Are tests passing? (npm test on both front/server)
  • Is the linter passing? (npm run eslint on both front/server)
  • Did you run prettier? (npm run prettier on both front/server)
  • If you are adding a new features/services, did you run integration comparator? (npm run compare-translations on front)
  • Did you test this pull request in real life? With real devices? If this development is a big feature or a new service, we recommend that you provide a Docker image to the community for testing before merging.
  • If your changes modify the API (REST or Node.js), did you modify the API documentation? (Documentation is based on comments in code)
  • If you are adding a new features/services which needs explanation, did you modify the user documentation? See the GitHub repo and the website.
  • Did you add fake requests data for the demo mode (front/src/config/demo.js) so that the demo website is working without a backend? (if needed) See https://demo.gladysassistant.com.

NOTE: these things are not required to open a PR and can be done afterwards / while the PR is open.

Description of change

Please provide a description of the change here. It's always best with screenshots, so don't hesitate to add some!

@codecov
Copy link

codecov bot commented Oct 30, 2021

Codecov Report

Base: 96.66% // Head: 96.65% // Decreases project coverage by -0.00% ⚠️

Coverage data is based on head (2f6541c) compared to base (122d9c1).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1343      +/-   ##
==========================================
- Coverage   96.66%   96.65%   -0.01%     
==========================================
  Files         630      630              
  Lines        9289     9293       +4     
==========================================
+ Hits         8979     8982       +3     
- Misses        310      311       +1     
Impacted Files Coverage Δ
server/services/zigbee2mqtt/exposes/numericType.js 100.00% <100.00%> (ø)
...ervices/zigbee2mqtt/utils/features/buildFeature.js 100.00% <100.00%> (ø)
server/lib/scene/scene.addScene.js 92.59% <0.00%> (-1.86%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@stale
Copy link

stale bot commented Jan 27, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jan 27, 2022
@atrovato
Copy link
Contributor Author

I wait for dashboard display...

@stale stale bot removed the stale label Jan 27, 2022
@stale
Copy link

stale bot commented Mar 28, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Mar 28, 2022
@atrovato atrovato removed the stale label Mar 29, 2022
@stale
Copy link

stale bot commented May 28, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@atrovato
Copy link
Contributor Author

It can be insterresting to merge it wirh #1575

@atrovato atrovato marked this pull request as ready for review July 24, 2022 12:20
server/services/zigbee2mqtt/exposes/numericType.js Outdated Show resolved Hide resolved
server/services/zigbee2mqtt/exposes/numericType.js Outdated Show resolved Hide resolved
@VonOx VonOx mentioned this pull request Sep 6, 2022
5 tasks
@VonOx
Copy link
Contributor

VonOx commented Sep 6, 2022

I comment here cause not sure if #1546 is involved

image
image

{
          "name": "Signal strength",
          "selector": "zigbee2mqtt-cuisine-signal-integer-linkquality",
          "category": "signal",
          "type": "integer",
          "read_only": true,
          "unit": null,
          "min": 0,
          "max": 255,
          "last_value": 2,
          "last_value_changed": "2022-09-06T13:04:35.969Z"
}

image

@VonOx
Copy link
Contributor

VonOx commented Sep 6, 2022

Not sure why my features was created at 255 max.

After manually set to 5 max it's ok in dashboard.

image

@atrovato atrovato requested a review from VonOx September 7, 2022 17:41
@atrovato
Copy link
Contributor Author

atrovato commented Sep 7, 2022

@VonOx max with 255 was an old version.

VonOx
VonOx previously approved these changes Sep 7, 2022
@Pierre-Gilles
Copy link
Contributor

Tests are failing on Z2M discover:

Screenshot 2022-09-08 at 12 10 31

Screenshot 2022-09-08 at 12 10 36

@atrovato
Copy link
Contributor Author

atrovato commented Sep 8, 2022

@VonOx in fact, max=255 is provided by z2m device, I take it from the device if it is provided...
I will need to add a "override" option to force the defined mapping.

@VonOx
Copy link
Contributor

VonOx commented Sep 8, 2022

OK that's explain the behavior.

Not sure if it's a good way to store a converted value. ( I know we have already discussed this on forum 😉)

@Pierre-Gilles
Copy link
Contributor

Pierre-Gilles commented Sep 12, 2022

@VonOx Can you retry on your side and confirm it's working fine? :)

@VonOx
Copy link
Contributor

VonOx commented Sep 12, 2022

@VonOx Can you retry on your side and confirm it's working fine? :)

It is, can be merged.

Copy link
Contributor

@Pierre-Gilles Pierre-Gilles left a comment

Choose a reason for hiding this comment

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

Good for me, good work 👏

@Pierre-Gilles Pierre-Gilles merged commit 80ae2e4 into GladysAssistant:master Sep 12, 2022
@relativeci
Copy link

relativeci bot commented Sep 12, 2022

Job #465: Bundle Size — 7.01MB (0%).

80ae2e4 vs d6f0b2a

Changed metrics (1/10)
Metric Current Baseline
Cache Invalidation 0% 46.23%
Changed assets by type (0/7)

No changes


View Job #465 report on app.relative-ci.com

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