KEMBAR78
fix: Make PI heating demand from `zhc.Climate` writable in Home Assistant by DerDreschner · Pull Request #29188 · Koenkk/zigbee2mqtt · GitHub
Skip to content

Conversation

DerDreschner
Copy link

@DerDreschner DerDreschner commented Oct 20, 2025

Previously, the zhc.Climate feature exposed the pi_heating_demand attribute as read-only attribute. This didn't changed when I make the attribute writable in zigbee-herdsman-converters with this change.

Therefore, this pull requests makes the pi_heating_demand writable when the access state is SET. Additionally, I've added integration tests for both conditions.

This matches the ZCL specifications:

image

@DerDreschner DerDreschner changed the base branch from master to dev October 20, 2025 13:19
discoveryEntry.type = "number";
discoveryEntry.discovery_payload = {
...discoveryEntry.discovery_payload,
...{
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 think the spread is needed here, same for entity_category: "diagnostic", below

Copy link
Author

Choose a reason for hiding this comment

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

I removed the spread syntax. Needs the assert(discoveryEntry.discovery_payload) command before as discovery_payload may theoretically be empty due to the Partial<DiscoveryEntry>. I wanted to avoid the assert, that's why I've chosen the spread syntax before.

@Koenkk Koenkk merged commit 174ba64 into Koenkk:dev Oct 21, 2025
11 checks passed
@Koenkk
Copy link
Owner

Koenkk commented Oct 21, 2025

Thanks again @DerDreschner !

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.

2 participants