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

Bosch BSP-FZ2 (Plug Compact): Fix failing interview due to wrong device configuration #8359

Merged

Conversation

DerDreschner
Copy link
Contributor

@DerDreschner DerDreschner commented Nov 22, 2024

Due to refactoring in #7996 , Z2M tries to access/configure both voltage and current readings. These are unsupported attributes on the Bosch BSP-FZ2, which results in a failing/incomplete interview.

[2024-11-22 23:05:10] debug:    zh:controller:endpoint: Error: ZCL command 0x6c5cb1fffe102cc7/1 haElectricalMeasurement.read(["acCurrentDivisor","acCurrentMultiplier"], {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"reservedBits":0,"writeUndiv":false}) failed (Status 'UNSUPPORTED_ATTRIBUTE')
    at Endpoint.checkStatus (/app/node_modules/zigbee-herdsman/src/controller/model/endpoint.ts:350:28)                                                                                                                                                                                                                                                                                                                                            
    at Endpoint.zclCommand (/app/node_modules/zigbee-herdsman/src/controller/model/endpoint.ts:956:26)                                                                
    at processTicksAndRejections (node:internal/process/task_queues:95:5)                                                                                                                                                                                                                                                                                                                                                                          
    at Endpoint.read (/app/node_modules/zigbee-herdsman/src/controller/model/endpoint.ts:446:29)                                                                                                                                                                                                                                                                                                                                                   
    at result.configure (/app/node_modules/zigbee-herdsman-converters/src/lib/modernExtend.ts:1925:37)                                                                                                                                                                                                                                                                                                                                             
    at Object.configure (/app/node_modules/zigbee-herdsman-converters/src/index.ts:205:21)                                
    at Configure.configure (/app/lib/extension/configure.ts:130:13)                                                                                                                                                                                                                                                                                                                                                                                
    at Immediate.<anonymous> (/app/lib/extension/configure.ts:75:17)                                                                                                                                                                                                                                                                                               
[2024-11-22 23:05:10] error:    z2m: Failed to configure 'kitchen-refrigerator-plug', attempt 1 (Error: ZCL command 0x6c5cb1fffe102cc7/1 haElectricalMeasurement.read(["acCurrentDivisor","acCurrentMultiplier"], {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"reservedBits":0,"writeUndiv":false}) failed (Status 'UNSUPPORTED_ATTRIBUTE')                                       
    at Endpoint.checkStatus (/app/node_modules/zigbee-herdsman/src/controller/model/endpoint.ts:350:28)                                                                                                                                                                                                                                                                                                                                            
    at Endpoint.zclCommand (/app/node_modules/zigbee-herdsman/src/controller/model/endpoint.ts:956:26)                                                                                     
    at processTicksAndRejections (node:internal/process/task_queues:95:5)                                                                                                                                                                                                                                                           
    at Endpoint.read (/app/node_modules/zigbee-herdsman/src/controller/model/endpoint.ts:446:29)                                                                                                                                                                                                                                                                                                                                   
    at result.configure (/app/node_modules/zigbee-herdsman-converters/src/lib/modernExtend.ts:1925:37) 
    at Object.configure (/app/node_modules/zigbee-herdsman-converters/src/index.ts:205:21)                                
    at Configure.configure (/app/lib/extension/configure.ts:130:13)                                                                                                                                                                                                                                                                                                                                       
    at Immediate.<anonymous> (/app/lib/extension/configure.ts:75:17))

[...]

[2024-11-22 23:14:36] debug:    zh:controller:endpoint: Error: ZCL command 0x6c5cb1fffe102cc7/1 haElectricalMeasurement.read(["acVoltageDivisor","acVoltageMultiplier"], {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"reservedBits":0,"writeUndiv":false}) failed (Status 'UNSUPPORTED_ATTRIBUTE')                                                                                
    at Endpoint.checkStatus (/app/node_modules/zigbee-herdsman/src/controller/model/endpoint.ts:350:28)                                                                                                                                                                                                                                                                                                                                            
    at Endpoint.zclCommand (/app/node_modules/zigbee-herdsman/src/controller/model/endpoint.ts:956:26)                                                                                                                                                                                                                                                                                                                                             
    at processTicksAndRejections (node:internal/process/task_queues:95:5)                                                                                                                                                                                                                                                                                                                                                                          
    at Endpoint.read (/app/node_modules/zigbee-herdsman/src/controller/model/endpoint.ts:446:29)                                                                                                                                                                                                                                                                                                                                                   
    at result.configure (/app/node_modules/zigbee-herdsman-converters/src/lib/modernExtend.ts:1925:37)                                                                                                                                                                                                                                                                                                                                             
    at Object.configure (/app/node_modules/zigbee-herdsman-converters/src/index.ts:205:21)                                                                                                                                                                                                                                                                                                                                                         
    at Configure.configure (/app/lib/extension/configure.ts:130:13)                                                                                                                                                                                                                                                                                                                                                                                
    at Configure.onMQTTMessage (/app/lib/extension/configure.ts:57:21)                                                                                                                                                                                                                                                                                                                                                                             
    at EventEmitter.wrappedCallback (/app/lib/eventBus.ts:206:17)                                                                                                                                                                                                                                                                                                                                                                                  
[2024-11-22 23:14:36] error:    z2m: Failed to configure 'kitchen-refrigerator-plug', attempt 1 (Error: ZCL command 0x6c5cb1fffe102cc7/1 haElectricalMeasurement.read(["acVoltageDivisor","acVoltageMultiplier"], {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"reservedBits":0,"writeUndiv":false}) failed (Status 'UNSUPPORTED_ATTRIBUTE')                                       
    at Endpoint.checkStatus (/app/node_modules/zigbee-herdsman/src/controller/model/endpoint.ts:350:28)                                                                                                                                                                                                                                                                                                                                            
    at Endpoint.zclCommand (/app/node_modules/zigbee-herdsman/src/controller/model/endpoint.ts:956:26)                                                                                                                                                                                                                                                                                                                                             
    at processTicksAndRejections (node:internal/process/task_queues:95:5)                                                                                                                                                                                                                                                                                                                                                                          
    at Endpoint.read (/app/node_modules/zigbee-herdsman/src/controller/model/endpoint.ts:446:29)                                                                                                                                                                                                                                                                                                                                                   
    at result.configure (/app/node_modules/zigbee-herdsman-converters/src/lib/modernExtend.ts:1925:37)                                                                                                                                                                                                                                                                                                                                             
    at Object.configure (/app/node_modules/zigbee-herdsman-converters/src/index.ts:205:21)                                                                                                                                                                                                                                                                                                                                                         
    at Configure.configure (/app/lib/extension/configure.ts:130:13)                                                                                                                                                                                                                                                                                                                                                                                
    at Configure.onMQTTMessage (/app/lib/extension/configure.ts:57:21)                                                                                                                                                                                                                                                                                                                                                                             
    at EventEmitter.wrappedCallback (/app/lib/eventBus.ts:206:17))

This PR fixes the issue by disabling voltage and current readings for the BSP-FZ2.

@DerDreschner DerDreschner changed the title Bosch BSP-FZ2 (Plug Compact EU): Fix failing interview due to wrong device configuration Bosch BSP-FZ2 (Plug Compact): Fix failing interview due to wrong device configuration Nov 22, 2024
@Koenkk Koenkk merged commit 7c1ac76 into Koenkk:master Nov 24, 2024
2 checks passed
@Koenkk
Copy link
Owner

Koenkk commented Nov 24, 2024

Thanks!

@DerDreschner DerDreschner deleted the fix/bosch-bsp-fz2-failing-interview branch November 24, 2024 20:34
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