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

[bug] SpeedMax attribute missing for Fan device type #67

Closed
lboue opened this issue Jul 4, 2024 · 5 comments
Closed

[bug] SpeedMax attribute missing for Fan device type #67

lboue opened this issue Jul 4, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@lboue
Copy link

lboue commented Jul 4, 2024

Hardware

Silicon Labs xG24 Explorer Kit

Core version

2.0.0

Arduino IDE version

2.3.2

Operating system

Windows 11

Radio stack variant

Matter

OpenThread Border Router device (if using Matter)

Apple TV 4K

Issue description

The Matter specifications indicate that this attribute is mandatory but SpeedMax attribute missing for Fan device type.

Matter-1.3-Application-Cluster-Specification.pdf page 306

4.4.6.5. SpeedMax Attribute
This attribute SHALL indicate that the fan has one speed (value of 1) or the maximum speed, if the
fan is capable of multiple speeds.

I don't find SpeedMax Attribute in MatterFan.cpp:

// Fan control cluster attributes
DECLARE_DYNAMIC_ATTRIBUTE_LIST_BEGIN(fanControlAttrs)
DECLARE_DYNAMIC_ATTRIBUTE(FanControl::Attributes::FanMode::Id, INT8U, 1, ATTRIBUTE_MASK_WRITABLE), /* FanMode */
DECLARE_DYNAMIC_ATTRIBUTE(FanControl::Attributes::FanModeSequence::Id, INT8U, 1, 0), /* FanModeSequence */
DECLARE_DYNAMIC_ATTRIBUTE(FanControl::Attributes::PercentSetting::Id, INT8U, 1, ATTRIBUTE_MASK_WRITABLE), /* PercentSetting */
DECLARE_DYNAMIC_ATTRIBUTE(FanControl::Attributes::PercentCurrent::Id, INT8U, 1, 0), /* PercentCurrent */
DECLARE_DYNAMIC_ATTRIBUTE(FanControl::Attributes::FeatureMap::Id, BITMAP32, 4, 0), /* FeatureMap */
DECLARE_DYNAMIC_ATTRIBUTE(FanControl::Attributes::ClusterRevision::Id, INT16U, 2, 0), /* ClusterRevision */
DECLARE_DYNAMIC_ATTRIBUTE_LIST_END();

Serial output

No response

RTT output (if using Matter)

No response

Minimal reproducer code

matter_fan.ino

@lboue lboue added the bug Something isn't working label Jul 4, 2024
@lboue
Copy link
Author

lboue commented Jul 4, 2024

Check my PR #68 for this.

@silabs-bozont
Copy link
Collaborator

Hello @lboue,
Thank you for the finding and the PR. Unfortunately we don't have the community contributions set up yet - is it okay with you if I fix it in the upstream without your PR?

@lboue
Copy link
Author

lboue commented Jul 29, 2024

Yes, no problem with that

@silabs-bozont
Copy link
Collaborator

Hello @lboue,
It has been fixed in 2.1.0 - thank you for the report!

@lboue
Copy link
Author

lboue commented Aug 2, 2024

Thanks @silabs-bozont for this fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants