-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Exception while calling fromZigbee converter: 'energy_calibration' is not a number, got string ()} #18169
Comments
I also have the same issue, after upgrading. Every message from Develco Electricity meter is creating an error: Error 2023-07-01 15:26:58Exception while calling fromZigbee converter: 'power_calibration' is not a number, got string ()} |
In the same way, it constantly writes such an error. Zigbee2MQTT:error 2023-07-01 19:15:08: Exception while calling fromZigbee converter: 'power_calibration' is not a number, got string ()} |
I had to downgrade, as I had same issue to control my IKEA ICPSHC24-10EU-IL-1. |
How did you downgrade? |
same for me, the problem is i can not downgrade so easily since is not a docker container |
same here |
i have the same issue i like to find a solution for this |
Make sure in your zigbee2mqtt configuration that e.g. |
I have a repeated error about power_calibration. The error appeared immediately after updating to 1.32, there were no errors on the previous version. no new devices connected. |
I got rid of the error by removing the power_calibration: '' line from the zigbee2mqtt config |
I had the same error with a smartplug. I choose a 0 for the field of power_calibration in the device "Settings (specific)" page and the error seems to be gone |
Thanks, I also had a I don't know why I did not have this error before but it is now fixed. |
Maybe in fact this issue should be opened against ZB2MQTT frontend? |
I found the issue, had in my device config some temperature_calibration: '' so basically a null or empty string, after removing them all it was OK. The problem is, I did not put them there, it was the UI who did when i saved some confs for that sensor. Since i did not put anything there, UI decided to put temperature_calibration: '' |
I have the same trouble... While I'm waiting for the fix, I rolled back to the old version. |
Solved for my by remplacing |
|
Thanks. Removed this line, now there are no more errors. |
This did the trick. I had a space in one of my smartplugs power_calibration, replaced it with a 0 (zero). |
Hello, Worked well |
So I close this issue which is more related to the frontend, thanks @alray31 for opening nurikk/zigbee2mqtt-frontend#1750 |
Pushed a fix! Changes will be available in the dev branch in a few hours from now. (https://www.zigbee2mqtt.io/advanced/more/switch-to-dev-branch.html) |
hey @Koenkk I have HA with z2m -> 1.32.1-1 which should have |
Can you provide the debug log with 1.32.1? |
here
okay, looks like this device had |
|
@Koenkk |
this is most likely an issue with the Frotnend part/package not this package... which has more issues with inputs and numbers... |
Please create an issue in the frontend repo: https://github.com/nurikk/zigbee2mqtt-frontend |
Except if there is now something different, nurikk/zigbee2mqtt-frontend#1750 is still opened. |
Similar log entries here. I did not changed any device in my network and did not had such messages.
|
@popy2k14 did you check your configuration.yaml? |
@Kepro thx for the hint. In my configuration.yaml was illuminance_calibration: '' for one device. Removed it, restarted Z2M and issue is gone. Dont know why this value was in there. Anyway, it's solved now. |
@popy2k14 so same as I wrote above, it is an issue with frontend, adding empty string to config.. issue nurikk/zigbee2mqtt-frontend#1750 btw if you read a couple of messages above you will find out what to do :-P |
Thx for the hint. Those who can read have a clear advantage 😉😂 |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days |
I had the same with
Need to do the same with all powered devices apparently. |
updated docker gave me "1.33.2 commit: 9996c93" - and I still see this issue? |
still the same issue with 1.35.1 commit: 9eaaa0f is this going to get fixed? |
@AndKe you didn't even try to read the whole issue, right? ad 1 remove |
@Kepro thanks, no the issue consists of lots of posts, and none contains a described workaround.
|
no man just remove in configuration.yaml or devices.yaml or what you have it set to, entire line. for example I have this device: '0x00xxxxxxxxxxxxx8':
friendly_name: Master Bedroom Motion
temperature_calibration: 2
temperature_precision: 1 now if is set like this will error out: '0x00xxxxxxxxxxxxx8':
friendly_name: Master Bedroom Motion
temperature_calibration: 2
temperature_precision: '' because temperature_precision is NULL Observe how values between quotes are strings and no quotes are usually numbers (this is not mandatory) depends on the programming language but usually is like this. - hope this addresses comments about strings and stuff! For this error to be gone remove the hole line that contains the null string in this case: temperature_precision: '' Restart zigbee2mqtt note: I had exactly this explained half a year ago, others did to (on Jul 2, 2023) read the thread please |
Thank you, fixed it after locating the file in docker. - I hoped this was automatically handled in newer releases. |
What happened?
Since version 1.32.0 I have errors about "Exception while calling fromZigbee converter: 'energy_calibration' is not a number, got string ()}"
What did you expect to happen?
I did not have these error before
How to reproduce it (minimal and precise)
I did not something else than starting Zigbee2MQTT after I updated it.
Zigbee2MQTT version
1.32.0
Adapter firmware version
20230507
Adapter
Sonoff dongle 2652P not ezsp
Debug log
debug 01/07/2023 14:48:51: Received Zigbee message from 'prise_entree', type 'attributeReport', cluster 'genBasic', data '{"65506":54,"65508":0,"appVersion":192}' from endpoint 1 with groupID 0
debug 01/07/2023 14:49:04: Received Zigbee message from 'prise_meuble_bureau', type 'attributeReport', cluster 'genBasic', data '{"65506":54,"65508":0,"appVersion":192}' from endpoint 1 with groupID 0
debug 01/07/2023 14:49:37: Received Zigbee message from 'prise_meuble_bureau', type 'readResponse', cluster 'seMetering', data '{"currentSummDelivered":[0,1]}' from endpoint 1 with groupID 0
info 01/07/2023 14:49:37: MQTT publish: topic 'zigbee2mqtt/prise_meuble_bureau', payload '{"child_lock":"UNLOCK","current":0,"elapsed":60079,"energy":0.01,"indicator_mode":"off/on","last_seen":"2023-05-21T16:39:03+02:00","linkquality":58,"power":0,"power_outage_memory":"restore","state":"ON","update":{"installed_version":192,"latest_version":192,"state":"idle"},"update_available":null,"voltage":240}'
debug 01/07/2023 14:49:37: Received Zigbee message from 'prise_entree', type 'readResponse', cluster 'seMetering', data '{"currentSummDelivered":[0,39]}' from endpoint 1 with groupID 0
error 01/07/2023 14:49:37: Exception while calling fromZigbee converter: 'energy_calibration' is not a number, got string ()}
debug 01/07/2023 14:49:37: Error: 'energy_calibration' is not a number, got string ()
at assertNumber (/opt/zigbee2mqtt/node_modules/zigbee-herdsman-converters/src/lib/utils.ts:502:42)
at calibrateAndPrecisionRoundOptions (/opt/zigbee2mqtt/node_modules/zigbee-herdsman-converters/src/lib/utils.ts:90:5)
at Object.convert (/opt/zigbee2mqtt/node_modules/zigbee-herdsman-converters/src/converters/fromZigbee.js:768:34)
at Receive.onDeviceMessage (/opt/zigbee2mqtt/lib/extension/receive.ts:150:51)
at EventEmitter.emit (node:events:525:35)
at EventBus.emitDeviceMessage (/opt/zigbee2mqtt/lib/eventBus.ts:102:22)
at Controller. (/opt/zigbee2mqtt/lib/zigbee.ts:106:27)
at Controller.emit (node:events:513:28)
at Controller.selfAndDeviceEmit (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/controller/controller.ts:515:14)
at Controller.onZclOrRawData (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/controller/controller.ts:726:18)
debug 01/07/2023 14:49:37: Received Zigbee message from 'Prise Salle de Bain', type 'readResponse', cluster 'haElectricalMeasurement', data '{"activePower":1,"rmsCurrent":12,"rmsVoltage":238}' from endpoint 1 with groupID 0
info 01/07/2023 14:49:37: MQTT publish: topic 'zigbee2mqtt/Prise Salle de Bain', payload '{"current":0.01,"elapsed":60086,"energy":30.27,"indicator_mode":"off/on","last_seen":"2023-05-21T16:38:27+02:00","linkquality":80,"power":1,"power_outage_memory":"restore","state":"ON","voltage":238}'
debug 01/07/2023 14:49:38: Received Zigbee message from 'Prise Masque Ingrid', type 'attributeReport', cluster 'genBasic', data '{"65506":30,"appVersion":66}' from endpoint 1 with groupID 0
debug 01/07/2023 14:49:46: Received Zigbee message from 'Prise Salle de Bain', type 'attributeReport', cluster 'seMetering', data '{"currentSummDelivered":[0,3027]}' from endpoint 1 with groupID 0
info 01/07/2023 14:49:46: MQTT publish: topic 'zigbee2mqtt/Prise Salle de Bain', payload '{"current":0.01,"elapsed":8026,"energy":30.27,"indicator_mode":"off/on","last_seen":"2023-05-21T16:38:27+02:00","linkquality":76,"power":1,"power_outage_memory":"restore","state":"ON","voltage":238}'
debug 01/07/2023 14:50:05: Received Zigbee message from 'prise_entree', type 'read', cluster 'genTime', data '["localTime"]' from endpoint 1 with groupID 0
debug 01/07/2023 14:50:12: Received Zigbee message from 'prise_entree', type 'attributeReport', cluster 'haElectricalMeasurement', data '{"activePower":0,"rmsCurrent":0,"rmsVoltage":237}' from endpoint 1 with groupID 0
error 01/07/2023 14:50:12: Exception while calling fromZigbee converter: 'power_calibration' is not a number, got string ()}
debug 01/07/2023 14:50:12: Error: 'power_calibration' is not a number, got string ()
at assertNumber (/opt/zigbee2mqtt/node_modules/zigbee-herdsman-converters/src/lib/utils.ts:502:42)
at calibrateAndPrecisionRoundOptions (/opt/zigbee2mqtt/node_modules/zigbee-herdsman-converters/src/lib/utils.ts:90:5)
at Object.convert (/opt/zigbee2mqtt/node_modules/zigbee-herdsman-converters/src/converters/fromZigbee.js:830:41)
at Receive.onDeviceMessage (/opt/zigbee2mqtt/lib/extension/receive.ts:150:51)
at EventEmitter.emit (node:events:525:35)
at EventBus.emitDeviceMessage (/opt/zigbee2mqtt/lib/eventBus.ts:102:22)
at Controller. (/opt/zigbee2mqtt/lib/zigbee.ts:106:27)
at Controller.emit (node:events:513:28)
at Controller.selfAndDeviceEmit (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/controller/controller.ts:515:14)
at Controller.onZclOrRawData (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/controller/controller.ts:726:18)
debug 01/07/2023 14:50:12: Received Zigbee message from 'prise_entree', type 'attributeReport', cluster 'seMetering', data '{"currentSummDelivered":[0,39]}' from endpoint 1 with groupID 0
error 01/07/2023 14:50:12: Exception while calling fromZigbee converter: 'energy_calibration' is not a number, got string ()}
debug 01/07/2023 14:50:12: Error: 'energy_calibration' is not a number, got string ()
at assertNumber (/opt/zigbee2mqtt/node_modules/zigbee-herdsman-converters/src/lib/utils.ts:502:42)
at calibrateAndPrecisionRoundOptions (/opt/zigbee2mqtt/node_modules/zigbee-herdsman-converters/src/lib/utils.ts:90:5)
at Object.convert (/opt/zigbee2mqtt/node_modules/zigbee-herdsman-converters/src/converters/fromZigbee.js:768:34)
at Receive.onDeviceMessage (/opt/zigbee2mqtt/lib/extension/receive.ts:150:51)
at EventEmitter.emit (node:events:525:35)
at EventBus.emitDeviceMessage (/opt/zigbee2mqtt/lib/eventBus.ts:102:22)
at Controller. (/opt/zigbee2mqtt/lib/zigbee.ts:106:27)
at Controller.emit (node:events:513:28)
at Controller.selfAndDeviceEmit (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/controller/controller.ts:515:14)
at Controller.onZclOrRawData (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/controller/controller.ts:726:18)
debug 01/07/2023 14:50:35: Saving state to file /home/homeassistant/config/zigbee2mqtt/state.json
debug 01/07/2023 14:50:37: Received Zigbee message from 'Prise Bureau', type 'readResponse', cluster 'genBasic', data '{"zclVersion":3}' from endpoint 1 with groupID 0
debug 01/07/2023 14:50:37: Successfully pinged 'Prise Bureau' (attempt 1/2)
debug 01/07/2023 14:50:37: Received Zigbee message from 'prise_meuble_bureau', type 'readResponse', cluster 'seMetering', data '{"currentSummDelivered":[0,1]}' from endpoint 1 with groupID 0
info 01/07/2023 14:50:38: MQTT publish: topic 'zigbee2mqtt/prise_meuble_bureau', payload '{"child_lock":"UNLOCK","current":0,"elapsed":60108,"energy":0.01,"indicator_mode":"off/on","last_seen":"2023-05-21T16:39:03+02:00","linkquality":51,"power":0,"power_outage_memory":"restore","state":"ON","update":{"installed_version":192,"latest_version":192,"state":"idle"},"update_available":null,"voltage":240}'
debug 01/07/2023 14:50:38: Received Zigbee message from 'prise_entree', type 'readResponse', cluster 'seMetering', data '{"currentSummDelivered":[0,39]}' from endpoint 1 with groupID 0
error 01/07/2023 14:50:38: Exception while calling fromZigbee converter: 'energy_calibration' is not a number, got string ()}
debug 01/07/2023 14:50:38: Error: 'energy_calibration' is not a number, got string ()
at assertNumber (/opt/zigbee2mqtt/node_modules/zigbee-herdsman-converters/src/lib/utils.ts:502:42)
at calibrateAndPrecisionRoundOptions (/opt/zigbee2mqtt/node_modules/zigbee-herdsman-converters/src/lib/utils.ts:90:5)
at Object.convert (/opt/zigbee2mqtt/node_modules/zigbee-herdsman-converters/src/converters/fromZigbee.js:768:34)
at Receive.onDeviceMessage (/opt/zigbee2mqtt/lib/extension/receive.ts:150:51)
at EventEmitter.emit (node:events:525:35)
at EventBus.emitDeviceMessage (/opt/zigbee2mqtt/lib/eventBus.ts:102:22)
at Controller. (/opt/zigbee2mqtt/lib/zigbee.ts:106:27)
at Controller.emit (node:events:513:28)
at Controller.selfAndDeviceEmit (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/controller/controller.ts:515:14)
at Controller.onZclOrRawData (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/controller/controller.ts:726:18)
debug 01/07/2023 14:50:38: Received Zigbee message from 'Prise Salle de Bain', type 'readResponse', cluster 'haElectricalMeasurement', data '{"activePower":1,"rmsCurrent":12,"rmsVoltage":238}' from endpoint 1 with groupID 0
info 01/07/2023 14:50:38: MQTT publish: topic 'zigbee2mqtt/Prise Salle de Bain', payload '{"current":0.01,"elapsed":52123,"energy":30.27,"indicator_mode":"off/on","last_seen":"2023-05-21T16:38:27+02:00","linkquality":80,"power":1,"power_outage_memory":"restore","state":"ON","voltage":238}'
debug 01/07/2023 14:50:40: Received Zigbee message from 'Prise Chambre d'Amis', type 'readResponse', cluster 'genBasic', data '{"zclVersion":3}' from endpoint 1 with groupID 0
debug 01/07/2023 14:50:40: Successfully pinged 'Prise Chambre d'Amis' (attempt 1/2)
debug 01/07/2023 14:50:42: Received Zigbee message from 'Spot Canapé', type 'readResponse', cluster 'genBasic', data '{"zclVersion":8}' from endpoint 11 with groupID 0
debug 01/07/2023 14:50:42: Successfully pinged 'Spot Canapé' (attempt 1/2)
debug 01/07/2023 14:51:00: Received Zigbee message from 'prise_meuble_bureau', type 'attributeReport', cluster 'haElectricalMeasurement', data '{"activePower":0,"rmsCurrent":0,"rmsVoltage":239}' from endpoint 1 with groupID 0
info 01/07/2023 14:51:00: MQTT publish: topic 'zigbee2mqtt/prise_meuble_bureau', payload '{"child_lock":"UNLOCK","current":0,"elapsed":22245,"energy":0.01,"indicator_mode":"off/on","last_seen":"2023-05-21T16:39:03+02:00","linkquality":43,"power":0,"power_outage_memory":"restore","state":"ON","update":{"installed_version":192,"latest_version":192,"state":"idle"},"update_available":null,"voltage":239}'
debug 01/07/2023 14:51:00: Received Zigbee message from 'prise_meuble_bureau', type 'attributeReport', cluster 'seMetering', data '{"currentSummDelivered":[0,1]}' from endpoint 1 with groupID 0
info 01/07/2023 14:51:00: MQTT publish: topic 'zigbee2mqtt/prise_meuble_bureau', payload '{"child_lock":"UNLOCK","current":0,"elapsed":84,"energy":0.01,"indicator_mode":"off/on","last_seen":"2023-05-21T16:39:03+02:00","linkquality":54,"power":0,"power_outage_memory":"restore","state":"ON","update":{"installed_version":192,"latest_version":192,"state":"idle"},"update_available":null,"voltage":239}'
The text was updated successfully, but these errors were encountered: