WIP feat: Add get_fan_param service
for reading fan parameters
#256
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi zxdavb,
First PR to add fan param (2411) features to Ramses_cc. Hope you find time to take a look.
This PR is based on the previous ramses_rf PR #198.
Regards, Willem
Dependencies
ramses_rf
library'sget_fan_param
method ramses_rf PR #198Description
This PR adds a new
get_fan_param
service to the Ramses CC integration, enabling users to read parameter values from fan devices using the 2411 command. The service is implemented as a domain service for simplicity and follows the existing code patterns.Features
ramses_cc.get_fan_param
servicefrom_id
parameter (defaults to HGI if not specified)fan_id
parameter for devices with multiple fansImplementation Details
broker.py
schemas.py
const.py
tests/tests_new/test_fan_param.py
Key Files Changed
custom_components/ramses_cc/broker.py
- Service handler implementationcustom_components/ramses_cc/schemas.py
- Service schema and validationcustom_components/ramses_cc/const.py
- Service constantstests/tests_new/test_fan_param.py
- Test cases for the new serviceTesting
paho-mqtt
pytest-homeassistant-custom-component
requirespaho-mqtt==1.6.1
paho-mqtt>=2.1.0
Python Version Compatibility
paho-mqtt
pytest-homeassistant-custom-component
requirespaho-mqtt==1.6.1
paho-mqtt>=2.1.0
paho-mqtt
dependency conflictThe production code itself is compatible with all Python versions, but the test environment has these limitations due to test dependencies.
Notes