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

[1.4] Water heater / Missing Thermostat cluster #36798

Open
lboue opened this issue Dec 11, 2024 · 0 comments
Open

[1.4] Water heater / Missing Thermostat cluster #36798

lboue opened this issue Dec 11, 2024 · 0 comments
Labels
bug Something isn't working needs triage

Comments

@lboue
Copy link
Contributor

lboue commented Dec 11, 2024

Reproduction steps

Thermostat cluster is mandatory for WaterHeater device type but not implemented in device example :

WaterHeater.xml#L74

    <cluster id="0x0201" name="Thermostat" side="server">

WaterHeater device type example
image

Thermostat cluster is not implemented in the ZAP file

https://github.com/project-chip/connectedhomeip/blob/master/examples/energy-management-app/energy-management-common/water-heater/src/WhmDelegateImpl.cpp#L303-L316

int16_t WaterHeaterManagementDelegate::GetActiveTargetWaterTemperature() const
{
    // Determine the target temperature. If a boost command is in progress and has a mBoostTemporarySetpoint value use that as the
    // target temperature.
    // Note, in practise the actual heating is likely to be controlled by the thermostat's occupiedHeatingSetpoint most of the
    // time, and the TemporarySetpoint (if not null) would be overiding the thermostat's occupiedHeatingSetpoint.
    // However, this code doesn't rely upon the thermostat cluster.
    // TODO: Implement Thermostat Cluster temperature handling. It's mandatory to be spec conformant.
    int16_t targetTemperature = (mBoostState == BoostStateEnum::kActive && mBoostTemporarySetpoint.HasValue())
        ? mBoostTemporarySetpoint.Value()
        : mTargetWaterTemperature;

    return targetTemperature;
}

Bug prevalence

always

GitHub hash of the SDK that was being used

2c11741

Platform

core

Platform Version(s)

1.4

Type

Spec Compliance Issue

Anything else?

Water heater

@lboue lboue added bug Something isn't working needs triage labels Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage
Projects
None yet
Development

No branches or pull requests

1 participant