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

Add Support for Shelly Plus RGBW PM and BLE Gateway 3rd Party Sensor Support #1039

Merged
merged 34 commits into from
Sep 17, 2024

Conversation

Paradoxa
Copy link
Contributor

Description:

This Pull Request adds support for Shelly Plus RGBW PM and BLE gateway 3rd party sensor support, based on the official API documentation.

Changes:

  • RGBW Support:

    • Added the addRGBW() function to support RGBW components.
    • Integrated MQTT and HTTP methods for setting and retrieving RGBW data.
    • Added comments and descriptions for the addRGBW() function to improve readability and maintainability.
  • Sensor Types:

    • Added BLE gateway 3rd party sensor support by introducing new sensor types:
      • moisture: Type number, unit %
      • soil: Type number, unit µS/cm
    • These entries were added to main.js under the typesList object.

Linked Issues:

  • Resolves #1030 - BLE gateway 3rd party sensor support
  • Resolves #996 - Support for Shelly Plus RGBW PM

Testing Steps:

  1. RGBW Integration:

    • Test the RGBW light integration in the Shelly Adapter.
    • Validate MQTT messages for RGBW controls and ensure color, brightness, and white channel adjustments work correctly.
  2. Sensor Types:

    • Test BLE gateway functionality with supported 3rd party sensors.
    • Validate sensor readings for moisture and soil types with proper unit conversions.
  3. Compatibility:

    • Ensure compatibility with existing Shelly RGB and RGBW devices.

Additional Information:

  • Based on the official API documentation: Shelly Plus RGBW API and Shelly BLE gateway documentation.

 [Hardware Request]: BLE gateway 3rd party sensor support iobroker-community-adapters#1030 
added to types to typesList for Ble messages
moisture: { type: 'number', unit: '%' },
soil: { type: 'number', unit: 'µS/cm' },
add shellyplusrgbwpm
add shellyplusrgbwpm
Add device Config
add addRGB and addRGBW for Shelly Plus RGBW PM
update version
update version
update nameing mistake
Update nameing mistake
update version
update version
Fix: error  Trailing spaces not allowed  no-trailing-spaces
Fix:
Expected indentation of 4 spaces but found 6    indent
Missing trailing comma                          comma-dangle
Fix:
AssertionError: common.role "level.dimmer" is invalid for type "number" - shellyplusrgbwpm (RGB0.Brightness): expected 'level.dimmer' to be one of [ 'level.blind', …(29) ]
Fix:
AssertionError: common.unit for role "level.brightness" must have unit - shellyplusrgbwpm (RGB0.Brightness): expected undefined to be one of [ '%' ]
string conversion
delete effect
fix ;
array handling
add Transition Time
Added transition time support to RGB light definition and corrected ColorRGB format in comments.
Added support for RGB color in HEX format, clarified comments, and updated state definitions for RGB light functionality.
White had unit % but is 0-255
fix Transition if not available
fix lint error
@klein0r
Copy link
Contributor

klein0r commented Sep 14, 2024

Danke, gucke ich mir in Ruhe an. An den commit messages arbeiten wir aber nochmal 😄

@klein0r klein0r merged commit 4b8fffb into iobroker-community-adapters:master Sep 17, 2024
9 checks passed
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.

[Hardware Request]: BLE gateway 3rd party sensor support [Hardware Request]: Shelly Plus RGBW PM
2 participants