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

[boschshc] Add support for Light/Shutter Control II #16400

Merged
merged 17 commits into from
Mar 31, 2024

Commits on Feb 27, 2024

  1. [boschshc] Add support for Shutter Control II (openhab#14562)

    * add thing type for Shutter Control II
    * add new channel type for child protection
    * add child protection service and state
    * implement handler for Shutter Control II
    * register device in factory
    * register device in discovery
    * add unit test
    * add README section
    
    Signed-off-by: David Pace <dev@davidpace.de>
    david-pace committed Feb 27, 2024
    Configuration menu
    Copy the full SHA
    111dbaa View commit details
    Browse the repository at this point in the history
  2. [boschshc] Add support for Light Control II

    * split AbstractPowerSwitchHandler into two abstract classes, one only
    providing power switch support and the other one providing power
    metering support in addition
    * add thing types for Light Control II (parent devices) and light switch
    circuits (child devices)
    * implement handlers for Light Control II and light switch child devices
    * register devices in factory
    * register devices in discovery
    * escape hash characters in URLs
    * add unit tests
    * add README sections
    * improve Javadocs
    
    Signed-off-by: David Pace <dev@davidpace.de>
    david-pace committed Feb 27, 2024
    Configuration menu
    Copy the full SHA
    50a03cd View commit details
    Browse the repository at this point in the history
  3. Adapt documentation enhancements

    Co-authored-by: lsiepel <leosiepel@gmail.com>
    Signed-off-by: David Pace <dev@davidpace.de>
    david-pace and lsiepel committed Feb 27, 2024
    Configuration menu
    Copy the full SHA
    48f5cb2 View commit details
    Browse the repository at this point in the history
  4. Adapt documentation enhancements

    Co-authored-by: lsiepel <leosiepel@gmail.com>
    Signed-off-by: David Pace <dev@davidpace.de>
    david-pace and lsiepel committed Feb 27, 2024
    Configuration menu
    Copy the full SHA
    285db3c View commit details
    Browse the repository at this point in the history
  5. fix table formatting

    Signed-off-by: David Pace <dev@davidpace.de>
    david-pace committed Feb 27, 2024
    Configuration menu
    Copy the full SHA
    7f8e213 View commit details
    Browse the repository at this point in the history
  6. [boschshc] Implement support for Light Control II as a single device

    Instead of presenting the Light Control II as three things to the user,
    all is combined into a single thing type with numbered channels for the
    two power switch circuits.
    
    * add numbered power switch and child protection channels to Light
    Control II thing type definition
    * remove child thing type for switch circuits
    * remove obsolete handler implementation for child things
    * add configuration description and class for devices with two logical
    child devices
    * add utility class to handle Bosch parent/child IDs
    * implement handler for Light Control II with numbered channels
    * extract constants for service names in PowerSwitchService and
    ChildProtectionService
    * enhance discovery to detect child device IDs
    * add unit tests
    * improve Javadocs
    
    Signed-off-by: David Pace <dev@davidpace.de>
    david-pace committed Feb 27, 2024
    Configuration menu
    Copy the full SHA
    07f8db7 View commit details
    Browse the repository at this point in the history
  7. add comment

    Signed-off-by: David Pace <dev@davidpace.de>
    david-pace committed Feb 27, 2024
    Configuration menu
    Copy the full SHA
    436c01b View commit details
    Browse the repository at this point in the history
  8. update documentation

    Signed-off-by: David Pace <dev@davidpace.de>
    david-pace committed Feb 27, 2024
    Configuration menu
    Copy the full SHA
    b6b33f9 View commit details
    Browse the repository at this point in the history
  9. improve table alignment

    Signed-off-by: David Pace <dev@davidpace.de>
    david-pace committed Feb 27, 2024
    Configuration menu
    Copy the full SHA
    68a3825 View commit details
    Browse the repository at this point in the history
  10. re-generate i18n properties file

    Signed-off-by: David Pace <dev@davidpace.de>
    david-pace committed Feb 27, 2024
    Configuration menu
    Copy the full SHA
    a6a8ec3 View commit details
    Browse the repository at this point in the history
  11. remove obsolete i18n entries, remove unnecessary empty line

    the i18n generator seems to behave incorrectly when entries are removed
    
    Signed-off-by: David Pace <dev@davidpace.de>
    david-pace committed Feb 27, 2024
    Configuration menu
    Copy the full SHA
    66cfcb4 View commit details
    Browse the repository at this point in the history
  12. remove unnecessary test method prefixes

    Signed-off-by: David Pace <dev@davidpace.de>
    david-pace committed Feb 27, 2024
    Configuration menu
    Copy the full SHA
    7035cb5 View commit details
    Browse the repository at this point in the history
  13. remove configuration with child IDs, obtain IDs during initialization

    Signed-off-by: David Pace <dev@davidpace.de>
    david-pace committed Feb 27, 2024
    Configuration menu
    Copy the full SHA
    6baf4da View commit details
    Browse the repository at this point in the history
  14. initialization code enhancements, additional unit tests

    Signed-off-by: David Pace <dev@davidpace.de>
    david-pace committed Feb 27, 2024
    Configuration menu
    Copy the full SHA
    553a450 View commit details
    Browse the repository at this point in the history
  15. [boschshc] remove child ID properties in discovery

    Signed-off-by: David Pace <dev@davidpace.de>
    david-pace committed Feb 27, 2024
    Configuration menu
    Copy the full SHA
    204ef4b View commit details
    Browse the repository at this point in the history
  16. [boschshc] add childprotection to service list

    Signed-off-by: David Pace <dev@davidpace.de>
    david-pace committed Feb 27, 2024
    Configuration menu
    Copy the full SHA
    06dc7b2 View commit details
    Browse the repository at this point in the history
  17. Suppress log entry about unknown device model for child devices

    Signed-off-by: David Pace <dev@davidpace.de>
    david-pace committed Feb 27, 2024
    Configuration menu
    Copy the full SHA
    4ee1f23 View commit details
    Browse the repository at this point in the history