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

S-Bus transport protocol. Derived from Modbus protocol #4025

Open
wants to merge 48 commits into
base: main
Choose a base branch
from

Commits on Jan 17, 2024

  1. S-Bus transport protocol. Derived from Modbus protocol

    Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
    Ciprian Pascu committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    d3edb02 View commit details
    Browse the repository at this point in the history
  2. add sbus module to the list of bundles

    Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
    Ciprian Pascu committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    af5ad18 View commit details
    Browse the repository at this point in the history
  3. cleanup classpath and project files

    Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
    Ciprian Pascu committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    21fe586 View commit details
    Browse the repository at this point in the history
  4. fix unit tests

    Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
    Ciprian Pascu committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    1202a03 View commit details
    Browse the repository at this point in the history
  5. fix formatting issues

    Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
    Ciprian Pascu committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    fc6a680 View commit details
    Browse the repository at this point in the history
  6. fix sat-plugin issues

    Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
    Ciprian Pascu committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    1c8a36c View commit details
    Browse the repository at this point in the history
  7. Fix build number reporting at startup (openhab#3991)

    Signed-off-by: Kai Kreuzer <kai@openhab.org>
    Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
    kaikreuzer authored and Ciprian Pascu committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    d6fc1c2 View commit details
    Browse the repository at this point in the history
  8. New translations addons.properties (Italian) (openhab#3979)

    Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
    openhab-bot authored and Ciprian Pascu committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    1b6976f View commit details
    Browse the repository at this point in the history
  9. Refactor ThingHandlerService to an OSGi component prototype (openhab#…

    …3957)
    
    Also-by: Connor Petty <mistercpp2000+gitsignoff@gmail.com>
    Signed-off-by: J-N-K <github@klug.nrw>
    Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
    J-N-K authored and Ciprian Pascu committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    06e8ee4 View commit details
    Browse the repository at this point in the history
  10. Use isEmpty instead of 0 comparisons (openhab#3999)

    `isEmpty()` expresses the intent more clearly and is therefore preferred.
    Counting the number of elements can also be an expensive operation e.g. when using linked lists.
    
    Signed-off-by: Wouter Born <github@maindrain.net>
    Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
    wborn authored and Ciprian Pascu committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    b30517f View commit details
    Browse the repository at this point in the history
  11. Remove redundant array creation for calling varargs methods (openhab#…

    …3997)
    
    These array creations are unnecessary because arrays are created automatically for methods using varargs.
    
    Signed-off-by: Wouter Born <github@maindrain.net>
    Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
    wborn authored and Ciprian Pascu committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    8c96f38 View commit details
    Browse the repository at this point in the history
  12. Remove redundant modifiers (openhab#4000)

    Removes redundant modifiers from the code.
    These modifiers redeclare the default modifiers that apply to interfaces, enums etc.
    
    Signed-off-by: Wouter Born <github@maindrain.net>
    Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
    wborn authored and Ciprian Pascu committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    306f1af View commit details
    Browse the repository at this point in the history
  13. fix empty rule condition (openhab#3993)

    Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
    Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
    mherwege authored and Ciprian Pascu committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    85fba42 View commit details
    Browse the repository at this point in the history
  14. Replace or remove assert statements (openhab#3994)

    Java assertions are disabled by default so in this PR they are replaced/removed where applicable.
    
    Signed-off-by: Wouter Born <github@maindrain.net>
    Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
    wborn authored and Ciprian Pascu committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    cad8cfb View commit details
    Browse the repository at this point in the history
  15. Fix assertEquals order (openhab#3995)

    The first parameter should be the expected value and the second parameter the actual value.
    
    Signed-off-by: Wouter Born <github@maindrain.net>
    Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
    wborn authored and Ciprian Pascu committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    43212b8 View commit details
    Browse the repository at this point in the history
  16. Use diamond operator (openhab#4001)

    Often the type can be inferred so the diamond operator can be used to simplify the code.
    
    Signed-off-by: Wouter Born <github@maindrain.net>
    Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
    wborn authored and Ciprian Pascu committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    5932f44 View commit details
    Browse the repository at this point in the history
  17. Fix SerialPort.getFlowControlMode() infinite recursion (openhab#4007)

    An infinite recursion would occur when calling this method.
    I did not find any add-ons using this method but that could be due to this bug.
    
    Signed-off-by: Wouter Born <github@maindrain.net>
    Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
    wborn authored and Ciprian Pascu committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    76da465 View commit details
    Browse the repository at this point in the history
  18. Simplify assertions (openhab#3996)

    * Simplify assertions
    
    Using the appropriate assertion methods results in less and easier to read code as well as better error messages when assertions fail.
    
    Signed-off-by: Wouter Born <github@maindrain.net>
    Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
    wborn authored and Ciprian Pascu committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    7bebd52 View commit details
    Browse the repository at this point in the history
  19. Use static inner classes (openhab#4002)

    A static inner class does not keep an implicit reference to its enclosing instance.
    This prevents a common cause of memory leaks and uses less memory per instance of the class.
    
    Signed-off-by: Wouter Born <github@maindrain.net>
    Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
    wborn authored and Ciprian Pascu committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    ef5393a View commit details
    Browse the repository at this point in the history
  20. Fix String.format argument mismatches (openhab#4008)

    These argument mismatches cause wrong messages being logged and thrown in exceptions.
    
    Signed-off-by: Wouter Born <github@maindrain.net>
    Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
    wborn authored and Ciprian Pascu committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    608abf2 View commit details
    Browse the repository at this point in the history
  21. Remove unnecessary semicolons (openhab#4009)

    This helps with stopping the proliferation of unnecessary semicolons.
    
    Signed-off-by: Wouter Born <github@maindrain.net>
    Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
    wborn authored and Ciprian Pascu committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    fee7c6b View commit details
    Browse the repository at this point in the history
  22. Iterate using Map entries (openhab#4003)

    * Iterate using Map entries
    
    Iteration using Map entries is preferred because it is more efficient and helps preventing NPEs.
    
    Signed-off-by: Wouter Born <github@maindrain.net>
    Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
    wborn authored and Ciprian Pascu committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    e9089d8 View commit details
    Browse the repository at this point in the history
  23. Simplify adding elements to Collections (openhab#4006)

    * Simplify adding elements to Collections
    
    This optimizes and simplifies the code that adds elements to Collections.
    
    Signed-off-by: Wouter Born <github@maindrain.net>
    Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
    wborn authored and Ciprian Pascu committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    6aa01a3 View commit details
    Browse the repository at this point in the history
  24. Use protected modifier with constructor of abstract classes (openhab#…

    …4010)
    
    Abstract classes should not have public constructors.
    Constructors of abstract classes can only be called in constructors of their subclasses.
    So there is no point in making them public.
    The protected modifier should be enough.
    
    Signed-off-by: Wouter Born <github@maindrain.net>
    Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
    wborn authored and Ciprian Pascu committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    32c5a18 View commit details
    Browse the repository at this point in the history
  25. Update license headers to 2024 (openhab#4011)

    Signed-off-by: Wouter Born <github@maindrain.net>
    Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
    wborn authored and Ciprian Pascu committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    d277fe1 View commit details
    Browse the repository at this point in the history
  26. Fix openhab-core-auth-oauth2client feature installation (openhab#4012)

    Karaf does not automatically install the feature after `dependency="true"` was added in openhab#3814.
    
    Signed-off-by: Wouter Born <github@maindrain.net>
    Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
    wborn authored and Ciprian Pascu committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    e78155b View commit details
    Browse the repository at this point in the history
  27. Fix JavaDoc issues (openhab#4004)

    Fixes various issues including wrong parameter names, references, links and dangling JavaDocs.
    
    Signed-off-by: Wouter Born <github@maindrain.net>
    Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
    wborn authored and Ciprian Pascu committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    2b2085b View commit details
    Browse the repository at this point in the history
  28. IpAddonFinder: Skip installed addons (openhab#4013)

    Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
    Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
    holgerfriedrich authored and Ciprian Pascu committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    1529e7b View commit details
    Browse the repository at this point in the history
  29. Upgrade to JmDNS 3.5.9 (openhab#4015)

    For the changelog, see:
    
    https://github.com/jmdns/jmdns/milestone/11?closed=1
    
    Signed-off-by: Kai Kreuzer <kai@openhab.org>
    Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
    kaikreuzer authored and Ciprian Pascu committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    758f5d8 View commit details
    Browse the repository at this point in the history
  30. Fix JavaDoc build (openhab#4018)

    Caused by openhab#3957
    
    Signed-off-by: Wouter Born <github@maindrain.net>
    Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
    wborn authored and Ciprian Pascu committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    da0eb70 View commit details
    Browse the repository at this point in the history
  31. Fix CurrencyUnit (openhab#4016)

    Signed-off-by: Jan N. Klug <github@klug.nrw>
    Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
    J-N-K authored and Ciprian Pascu committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    6a280c9 View commit details
    Browse the repository at this point in the history
  32. [Audio] Add piped audio stream and fix raw PCM streams format (openha…

    …b#3960)
    
    * [Audio] Add piped audio stream and fix pcm format usage
    
    Signed-off-by: Miguel Álvarez <miguelwork92@gmail.com>
    Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
    GiviMAD authored and Ciprian Pascu committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    8034416 View commit details
    Browse the repository at this point in the history
  33. Refactor java.util.Date usages to java.time.Instant (openhab#4026)

    Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
    Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
    jlaur authored and Ciprian Pascu committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    de8c61a View commit details
    Browse the repository at this point in the history
  34. UsbSerialDiscovery service based on Windows registry (openhab#3934)

    Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
    Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
    andrewfg authored and Ciprian Pascu committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    1c11bd1 View commit details
    Browse the repository at this point in the history
  35. [discovery] Fix Instant serialization/deserialization regression (o…

    …penhab#4029)
    
    * Fix Instant serialization/deserialization regression
    
    Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
    
    * Consolidate serialization and deserialization in same type adapter
    
    Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
    
    * Simplify deserializer
    
    Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
    
    ---------
    
    Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
    Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
    jlaur authored and Ciprian Pascu committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    b88dfe4 View commit details
    Browse the repository at this point in the history
  36. Fix wrong class name logged in LocaleServiceImpl (openhab#4034)

    Signed-off-by: Wouter Born <github@maindrain.net>
    Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
    wborn authored and Ciprian Pascu committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    cbef713 View commit details
    Browse the repository at this point in the history
  37. Improve ThreadPoolManagerTest stability (openhab#4035)

    When the CPU load of a system is high these timeouts may not be realistic.
    
    Fixes openhab#3254
    
    Signed-off-by: Wouter Born <github@maindrain.net>
    Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
    wborn authored and Ciprian Pascu committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    1360107 View commit details
    Browse the repository at this point in the history
  38. Upgrade Jollyday to 0.23.2 (openhab#4033)

    Upgrades Jollyday 0.5.10 (de.jollyday) to 0.23.2 of a more actively maintained fork (de.focus-shift).
    
    * This adds many missing holidays.
    * Also removes the workaround for the Danish Great Prayer Day introduced by openhab#3573.
    
    For release notes, see:
    
    https://github.com/focus-shift/jollyday/releases
    
    Fixes openhab#3544
    
    Signed-off-by: Wouter Born <github@maindrain.net>
    Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
    wborn authored and Ciprian Pascu committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    e9925e3 View commit details
    Browse the repository at this point in the history
  39. Fix NPE in UpnpIOServiceImpl (openhab#4038)

    Fix openhab#4037
    
    Signed-off-by: Jan N. Klug <github@klug.nrw>
    Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
    J-N-K authored and Ciprian Pascu committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    1111939 View commit details
    Browse the repository at this point in the history
  40. Improve marketplace add-on handling (openhab#4019)

    It has been reported several times that add-ons were not properly installed / missing after an upgrade or the installation of incompatible add-ons resulted in broken installations.
    
    After an upgrade (or clean cache) the `AddonHandler`s try to re-install the add-ons from the download cache (`<userdata>/marketplace`). This happens without checking compatibility. This was needed before OH4, because the cache was the only source providing information about installed add-ons. This is now different, since we store the add-on information in a JSON database, so the UIDs of the add-ons are known.
    
    This PR changes improves the add-on services. It now
    
    1. Reads the information about the installed add-ons from the database and sets the installation status based on information from the handlers.
    2. Removes all add-ons that are not installed from the JSON database and remembers their UIDs.
    3. Refreshes the remote add-on list (including check for compatibility if not disabled).
    4. Tries installation of the add-ons remembered in step 2. Since incompatible add-ons are missing in the add-on list, their installation fails and a warning is logged.
    
    This PR is has two corresponding PR in openhab-distro and openhab-linuxpkg to ensure that the upgrade script and `openhab-cli` also clear the marketplace cache.
    
    Signed-off-by: Jan N. Klug <github@klug.nrw>
    Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
    J-N-K authored and Ciprian Pascu committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    ec3efa2 View commit details
    Browse the repository at this point in the history
  41. Fix logging in ChannelCommandDescriptionProvider (openhab#4040)

    The class of the the broken provider should be logged, not the class of the command description.
    
    Signed-off-by: Jan N. Klug <github@klug.nrw>
    Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
    J-N-K authored and Ciprian Pascu committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    739ffef View commit details
    Browse the repository at this point in the history
  42. Fix config parsing and version handling in RemoteAddonServices (openh…

    …ab#4043)
    
    Signed-off-by: Jan N. Klug <github@klug.nrw>
    Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
    J-N-K authored and Ciprian Pascu committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    89817bd View commit details
    Browse the repository at this point in the history
  43. Improve RemoteAddonService and fix test (openhab#4049)

    Signed-off-by: Jan N. Klug <github@klug.nrw>
    Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
    J-N-K authored and Ciprian Pascu committed Jan 17, 2024
    Configuration menu
    Copy the full SHA
    71fd2b4 View commit details
    Browse the repository at this point in the history

Commits on Jan 20, 2024

  1. Merge branch 'main' of https://github.com/openhab/openhab-core into f…

    …eature/s-bus
    Ciprian Pascu committed Jan 20, 2024
    Configuration menu
    Copy the full SHA
    5c34a7b View commit details
    Browse the repository at this point in the history
  2. fix spotless issues

    Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
    Ciprian Pascu committed Jan 20, 2024
    Configuration menu
    Copy the full SHA
    404f24a View commit details
    Browse the repository at this point in the history
  3. fix build problems

    Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
    Ciprian Pascu committed Jan 20, 2024
    Configuration menu
    Copy the full SHA
    fed04c1 View commit details
    Browse the repository at this point in the history
  4. fix build problems

    Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
    Ciprian Pascu committed Jan 20, 2024
    Configuration menu
    Copy the full SHA
    cdf8bae View commit details
    Browse the repository at this point in the history

Commits on Jan 27, 2024

  1. two forgoten but important lines, for transfering subnetId to the mod…

    …bus calls
    
    Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
    Ciprian Pascu committed Jan 27, 2024
    Configuration menu
    Copy the full SHA
    ae378d9 View commit details
    Browse the repository at this point in the history