-
Notifications
You must be signed in to change notification settings - Fork 211
Open
Description
Describe the bug
Creating electrical_energy_tariff via all_device_types_app adds the CommodityPrice cluster without a delegate. The server instance never registers AttributeAccess, so reading TariffUnit (0x0000) fails with InteractionModelError: Failure (0x1).
- Steps to Reproduce:
- Build/flash all_device_types_app (esp32c6 in my case).
- In the device console:
create --device_type=electrical_energy_tariff. - From chip-tool:
chip-tool commodityprice read tariff-unit 1 1.
- Expected:
TariffUnitreturns a valid enum value. - Actual: Read returns
InteractionModelError: Failure (0x1). - Suspected Cause: In esp_matter_console_helpers.cpp,
cluster::commodity_price::config_tis created without settingdelegate, soCommodityPrice::Instanceisn’t constructed and its AttributeAccess isn’t registered. No default TariffUnit is set. - Suggested Fix: Provide a
CommodityPrice::Delegatewhen creating the cluster and set a defaultTariffUnit(e.g.,TariffUnitEnum::kKWh) after creation so reads succeed immediately. - Workaround: Patch the example to set the delegate and write TariffUnit once the cluster is created.
Environment
-
ESP-Matter Commit Id: be8d1e7
-
ESP-IDF Commit Id:
-
SoC (eg: ESP32 or ESP32-C3): ESP32-C6
-
Device Logs (Please attach the log file):
-
Host Machine OS:
-
Host Machine Python version:
-
Commissioner app and versions if present:
-
Home hub app and versions if present:
-
Commissioner's logs if present:
Any additional details
Metadata
Metadata
Assignees
Labels
No labels