Skip to content

Conversation

@danieledwardgeorgehitchcock
Copy link
Contributor

@danieledwardgeorgehitchcock danieledwardgeorgehitchcock commented Feb 24, 2025

This is a draft pull request intended to begin the moving of manufacturerSpecific clusters out of the Herdsman Clusters specification and into the modernExtends format in preparation for some larger re-factoring taking place for the work done by @chrivers in the Bifrost project.

At present, this is just a lift and drop of the cluster specs as they are in Herdsman (will create a separate PR in that repo for removal).

Once I have got this over the line, I will begin porting across the newly documented cluster attributes / commands / responses

@danieledwardgeorgehitchcock danieledwardgeorgehitchcock marked this pull request as ready for review February 26, 2025 07:44
}

const customCluster = m.deviceAddCustomCluster("manuSpecificPhilips3", {
const customClusterFC00 = m.deviceAddCustomCluster("manuSpecificPhilips", {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code is only executed for Philips devices using philipsLight(), there are also e.g. plugs and motion sensors that have these clusters. Maybe we should create a new philipsCustomClusters() modern extend?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the review! I'll get right on it!

Copy link
Contributor Author

@danieledwardgeorgehitchcock danieledwardgeorgehitchcock Mar 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code is only executed for Philips devices using philipsLight(), there are also e.g. plugs and motion sensors that have these clusters. Maybe we should create a new philipsCustomClusters() modern extend?

This is looking like a larger job than I expected.

My thoughts so far:

  • Cluster FC00 can be stripped out from Light as, I cannot find any light fixture that uses it
  • I can port Philips only elements from fromZigbee and toZigbee into the new modernExtends light definition as part of this request (although, I am only seeing ones associated with switches so, this may have already been done)

What I am hesitant on doing (for now) is to do as you suggested and create a new extends definition for Switches which uses the FC00 cluster as part of this PR - I am trying to keep PR's as small and non-monolithic as possible so that things are easier to test (and revert if needed)

My suggestion (if you'd be happy), is for me to do the changes in the bullets above and keep that as the scope of this PR.

Actions for subsequent PR's:

  • Create switch modernExtends and port FC00 cluster and port definitions from other areas
  • Remove cluster definitions from Herdsman (done, PR raised)
  • Re-Name clusters to more descriptive names
  • Add additional cluster attributes / commands that have been documented by Christian in the Bifrost project

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see much risk with adding the custom clusters through the modern extend, could you elaborate more where you got stuck?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe I am just misunderstanding and going off on a tangent.

Here is what I have done so far:
https://github.com/danieledwardgeorgehitchcock/zigbee-herdsman-converters/tree/philips_switch_modern_extends

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would not expect this: danieledwardgeorgehitchcock@2b7cecf

What I expected:

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did think it was a lot! 😂 Hence why I branched..

I will have another go..

There is some stuff I've done though that I may bring over to other PRs.. so, I don't think it's necessarily wasted effort

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you look at

customClusterFC00: () => {
where I have had a go at splitting it out? Please let me know if I am in the right ballpark - I am new to the modernExtends concept and out of my comfort zone here :-)

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where I have had a go at splitting it out?

I don't understand what you mean with this, could you elaborate a bit more on this?

@Koenkk
Copy link
Owner

Koenkk commented Mar 1, 2025

Note to self; after this merge Koenkk/zigbee-herdsman#1326

@github-actions
Copy link
Contributor

github-actions bot commented May 6, 2025

This pull request is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

@github-actions github-actions bot added the stale label May 6, 2025
@chrivers
Copy link
Contributor

This isn't stale, but I can't remove the label. @Koenkk, a little help please? :)

@Koenkk Koenkk added dont-stale and removed stale labels May 12, 2025
@github-actions
Copy link
Contributor

This pull request is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

@github-actions github-actions bot added stale and removed stale labels Jul 12, 2025
@Koenkk Koenkk force-pushed the master branch 20 times, most recently from bf7848c to da8e480 Compare October 16, 2025 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants