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

[nanoleaf] reduce layout logs, fix wrong type detection, add discovery props #7180

Merged
merged 1 commit into from
Mar 15, 2020

Conversation

stefan-hoehn
Copy link
Contributor

  • Reduce layout logging by manual triggering
  • Add more test for inconsistent layout response from device
  • Fix wrong type detection for canvas
  • Fix rediscovery end handling (could have put controller offline)
  • Add model/vendor properties automatically if things configured manually in a static things file
  • Some code cleanup

Signed-off-by: Stefan Höhn stefan@andreaundstefanhoehn.de

…y props

- Reduce layout logging by manual triggering
- Add more test for inconsistent layout response from device
- Fix wrong type detection for canvas
- Fix rediscovery end handling (could have put controller offline)
- Add model/vendor properties automatically if things configured manually in a static things file
- Some code cleanup

Signed-off-by: Stefan Höhn <stefan@andreaundstefanhoehn.de>
@TravisBuddy
Copy link

Travis tests were successful

Hey @stefan-hoehn,
we found no major flaws with your code. Still you might want to look at this logfile, as we usually suggest some optional improvements.

Copy link

@raepple raepple left a comment

Choose a reason for hiding this comment

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

LGTM

@Nullable
Layout layout = controllerInfo.getPanelLayout().getLayout();
String layoutView = (layout != null) ? layout.getLayoutView() : "";
logger.info("Panel layout and ids for controller {} \n{}", thing.getUID(), layoutView);
Copy link
Contributor

Choose a reason for hiding this comment

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

please remove this logging statement, or set to debug

Copy link
Contributor Author

@stefan-hoehn stefan-hoehn Mar 15, 2020

Choose a reason for hiding this comment

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

In this case it is exactly the intention to have it on "info" as it is the standard logging setting (most OH users don't know how to change the log setting in karaf as it is rather advanced). It used to be info already before but was logged very often and filled the log. Now it is only logged upon request if needed intentionally as information for a standard user which is usually only done when you change the layout of your canvas. Hope that clarifies it :-)

@cpmeister cpmeister merged commit cc22605 into openhab:2.5.x Mar 15, 2020
@stefan-hoehn
Copy link
Contributor Author

Thanks, @cpmeister 👍

@kaikreuzer kaikreuzer added the bug An unexpected problem or unintended behavior of an add-on label Mar 18, 2020
@kaikreuzer kaikreuzer added this to the 2.5.3 milestone Mar 18, 2020
leluna pushed a commit to leluna/openhab2-addons that referenced this pull request Mar 21, 2020
…y props (openhab#7180)

- Reduce layout logging by manual triggering
- Add more test for inconsistent layout response from device
- Fix wrong type detection for canvas
- Fix rediscovery end handling (could have put controller offline)
- Add model/vendor properties automatically if things configured manually in a static things file
- Some code cleanup

Signed-off-by: Stefan Höhn <stefan@andreaundstefanhoehn.de>

Co-authored-by: Stefan Höhn <stefan@andreaundstefanhoehn.de>
Signed-off-by: leluna <hengrui.jiang@googlemail.com>
Hans-Reiner pushed a commit to Hans-Reiner/openhab2-addons that referenced this pull request Apr 11, 2020
…y props (openhab#7180)

- Reduce layout logging by manual triggering
- Add more test for inconsistent layout response from device
- Fix wrong type detection for canvas
- Fix rediscovery end handling (could have put controller offline)
- Add model/vendor properties automatically if things configured manually in a static things file
- Some code cleanup

Signed-off-by: Stefan Höhn <stefan@andreaundstefanhoehn.de>

Co-authored-by: Stefan Höhn <stefan@andreaundstefanhoehn.de>
Signed-off-by: Hans-Reiner Hoffmann <hans-reiner.hoffmann@gmx.de>
markus7017 pushed a commit to markus7017/openhab-addons that referenced this pull request May 29, 2020
…y props (openhab#7180)

- Reduce layout logging by manual triggering
- Add more test for inconsistent layout response from device
- Fix wrong type detection for canvas
- Fix rediscovery end handling (could have put controller offline)
- Add model/vendor properties automatically if things configured manually in a static things file
- Some code cleanup

Signed-off-by: Stefan Höhn <stefan@andreaundstefanhoehn.de>

Co-authored-by: Stefan Höhn <stefan@andreaundstefanhoehn.de>
LoungeFlyZ pushed a commit to LoungeFlyZ/openhab2-addons that referenced this pull request Jun 8, 2020
…y props (openhab#7180)

- Reduce layout logging by manual triggering
- Add more test for inconsistent layout response from device
- Fix wrong type detection for canvas
- Fix rediscovery end handling (could have put controller offline)
- Add model/vendor properties automatically if things configured manually in a static things file
- Some code cleanup

Signed-off-by: Stefan Höhn <stefan@andreaundstefanhoehn.de>

Co-authored-by: Stefan Höhn <stefan@andreaundstefanhoehn.de>
J-N-K pushed a commit to J-N-K/openhab-addons that referenced this pull request Jul 14, 2020
…y props (openhab#7180)

- Reduce layout logging by manual triggering
- Add more test for inconsistent layout response from device
- Fix wrong type detection for canvas
- Fix rediscovery end handling (could have put controller offline)
- Add model/vendor properties automatically if things configured manually in a static things file
- Some code cleanup

Signed-off-by: Stefan Höhn <stefan@andreaundstefanhoehn.de>

Co-authored-by: Stefan Höhn <stefan@andreaundstefanhoehn.de>
andrewfg pushed a commit to andrewfg/openhab-addons that referenced this pull request Aug 31, 2020
…y props (openhab#7180)

- Reduce layout logging by manual triggering
- Add more test for inconsistent layout response from device
- Fix wrong type detection for canvas
- Fix rediscovery end handling (could have put controller offline)
- Add model/vendor properties automatically if things configured manually in a static things file
- Some code cleanup

Signed-off-by: Stefan Höhn <stefan@andreaundstefanhoehn.de>

Co-authored-by: Stefan Höhn <stefan@andreaundstefanhoehn.de>
andrewfg pushed a commit to andrewfg/openhab-addons that referenced this pull request Aug 31, 2020
…y props (openhab#7180)

- Reduce layout logging by manual triggering
- Add more test for inconsistent layout response from device
- Fix wrong type detection for canvas
- Fix rediscovery end handling (could have put controller offline)
- Add model/vendor properties automatically if things configured manually in a static things file
- Some code cleanup

Signed-off-by: Stefan Höhn <stefan@andreaundstefanhoehn.de>

Co-authored-by: Stefan Höhn <stefan@andreaundstefanhoehn.de>
andrewfg pushed a commit to andrewfg/openhab-addons that referenced this pull request Aug 31, 2020
…y props (openhab#7180)

- Reduce layout logging by manual triggering
- Add more test for inconsistent layout response from device
- Fix wrong type detection for canvas
- Fix rediscovery end handling (could have put controller offline)
- Add model/vendor properties automatically if things configured manually in a static things file
- Some code cleanup

Signed-off-by: Stefan Höhn <stefan@andreaundstefanhoehn.de>

Co-authored-by: Stefan Höhn <stefan@andreaundstefanhoehn.de>
andrewfg pushed a commit to andrewfg/openhab-addons that referenced this pull request Aug 31, 2020
…y props (openhab#7180)

- Reduce layout logging by manual triggering
- Add more test for inconsistent layout response from device
- Fix wrong type detection for canvas
- Fix rediscovery end handling (could have put controller offline)
- Add model/vendor properties automatically if things configured manually in a static things file
- Some code cleanup

Signed-off-by: Stefan Höhn <stefan@andreaundstefanhoehn.de>

Co-authored-by: Stefan Höhn <stefan@andreaundstefanhoehn.de>
DaanMeijer pushed a commit to DaanMeijer/openhab-addons that referenced this pull request Sep 1, 2020
…y props (openhab#7180)

- Reduce layout logging by manual triggering
- Add more test for inconsistent layout response from device
- Fix wrong type detection for canvas
- Fix rediscovery end handling (could have put controller offline)
- Add model/vendor properties automatically if things configured manually in a static things file
- Some code cleanup

Signed-off-by: Stefan Höhn <stefan@andreaundstefanhoehn.de>

Co-authored-by: Stefan Höhn <stefan@andreaundstefanhoehn.de>
Signed-off-by: Daan Meijer <daan@studioseptember.nl>
markus7017 pushed a commit to markus7017/openhab-addons that referenced this pull request Sep 19, 2020
…y props (openhab#7180)

- Reduce layout logging by manual triggering
- Add more test for inconsistent layout response from device
- Fix wrong type detection for canvas
- Fix rediscovery end handling (could have put controller offline)
- Add model/vendor properties automatically if things configured manually in a static things file
- Some code cleanup

Signed-off-by: Stefan Höhn <stefan@andreaundstefanhoehn.de>

Co-authored-by: Stefan Höhn <stefan@andreaundstefanhoehn.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of an add-on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants