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

General refactoring #11

Open
wants to merge 24 commits into
base: master
Choose a base branch
from
Open

General refactoring #11

wants to merge 24 commits into from

Conversation

santam85
Copy link

Hey @giannello,
not an ideal PR as it's massive and contains a lot of unrelated changes, but it was useful for me to refactor the code to debug and improve the implementation with more ease. Feel free to pick what you like, and add comments in case you have questions.

  • Added a README.md to document settings and the expected usage pattern
  • Added library sourcecode for warema-wms-venetian-blinds to allow upgrading dependencies of serialport and parsers
  • Improved logging by using winston, added log_level setting
  • Added the ability to specify device type when force-adding devices
  • Added targeted frequent polling for moving devices, as supported by warema-wms-venetian-blinds
  • Perfom scan anyway even when forcing a list of devices, and merge the resulting set, while still removing the blacklisted ones
  • Tweaked registration of devices to reuse some code for weather stations, added all supported sensors
  • Split code in a couple more files to improve readability

platforms: linux/amd64,linux/arm64,linux/arm/v7
push: true
tags: |
santam/wms-mqtt:latest
Copy link
Author

@santam85 santam85 Jan 25, 2023

Choose a reason for hiding this comment

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

This will need changing, can be parameterized with repo secrets or workflow parameters

Fix dockerfile paths in workflow
Refactor to avoid nested config files and paths in pipeline
Replaced logger with winston
Retain config messages to be robust against HA restarts
Only set open/closed when stopped
@santam85 santam85 force-pushed the main branch 3 times, most recently from 40f583c to 14876c7 Compare January 30, 2023 12:26
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.

1 participant