Open Burki24 opened 7 months ago
What is the power_calibration
value in your configuration.yaml
?
Didn't changed it. So it is not used. the calibration I never changed. It isn't inside configuration.yaml and also not in devices.yaml.
That, I written in the Issue description allready.
Okay, after setting power_calibration in frontend to "0", in device.yaml it looks like:
'0x60a423fffeff3d21':
friendly_name: Kueche/Strom/Plug-Geschirrspueler
icon: >-
data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAASABIAAD/4Qv3RXhpZgAATU0AKgAAAAgABQESAAMAAAABAAEAAAEaAAUAAAABAAAASgEbAAUAAAABAAAAUgExAAIAAAAfAAAAWodpAAQAAAABAAAAegAAAAAAAABIAAAAAQAAAEgAAAABQWRvYmUgUGhvdG9zaG9wIDIxLjAgKFdpbmRvd3MpAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAlqADAAQAAAABAAAAlgAAAABodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDUuNC4wIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NDAyQzRCODE5NUFBMTFFQUE0NDFERkZBNTNEMTJFQzgiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NDAyQzRCODI5NUFBMTFFQUE0NDFERkZBNTNEMTJFQzgiIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDpjYjgwMzE0My1iMDUxLTZlNGEtYmE2YS0wZDlhNDA0YzIxYjkiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIDIxLjAgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6NmJkZThjOWUtNTNkMy05MDQwLWJmZDgtYWVkMjNmMjVlOGYxIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOmNiODAzMTQzLWIwNTEtNmU0YS1iYTZhLTBkOWE0MDRjMjFiOSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8P3hwYWNrZXQgZW5kPSJ3Ij8+AP/tADhQaG90b3Nob3AgMy4wADhCSU0EBAAAAAAAADhCSU0EJQAAAAAAENQdjNmPALIE6YAJmOz4Qn7/2wBDAAUDBAQEAwUEBAQFBQUGBwwIBwcHBw8LCwkMEQ8SEhEPERETFhwXExQaFRERGCEYGh0dHx8fExciJCIeJBweHx7/2wBDAQUFBQcGBw4ICA4eFBEUHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh7/wAARCACWAJYDAREAAhEBAxEB/8QAHAABAAIDAQEBAAAAAAAAAAAAAAMFAgQGBwEI/8QAPRAAAgIBAgMEBggDCAMAAAAAAQIAAwQFESExUQYSQWETFCIycZEjM0JSgaGxwQdy0Qg0NkNTY5KisrXh/8QAGQEBAQEBAQEAAAAAAAAAAAAAAAECAwQF/8QAIBEBAQACAgMAAwEAAAAAAAAAAAECERIxAyFBBBRhUf/aAAwDAQACEQMRAD8A/ZcBAQEBAQEBAQEBAQEBAQEBAQEBAQEBA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Fc12Zq27P4u447H9ZqpG+VA5yCG5VI47/OVVTqlajbYeBhGOm1k0hVG7MdgPOKR6X2I0S7RNMavIsVrrWDuF5Jw2238fjOGeW63JpfzKkBAQEBAQEBAQEBA0dZ02nU8R6LGZCyle+vMAzWOViWbUXanFXECX7CvFrqVDYxAVdjsNz4eE3hUsUFpX7yn8ZtGtaw6j5wKjUMrCGsaXpd+VXVk6lkerYyncln7rPyHL2UY8ekb0j0XT+x+nYt1FhtutWvZijbbM3Xh4eU5XyWt8XSzCkBAQEBAQEBAQEBAQECPIppyKWpyKq7anGzI6hlYdCDAgxNN0/Ex/V8XBxqKe8W9HXUqruTuTsBzJ4y7olXFxlO649SnqEEmx+eO3Kgf2kOzxAH+IMf/ANbkzp8Z+v0Yvuj4Tm0+wEBAQEBAQEBAQEBAQEBAQEDlNV7A6DqPa3E7TX12+vYuSuShVuHpFqaoH/g7D8ZqZetJp1cypAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQP/9k=
state_action: true
power_calibration: 0
measurement_poll_interval: 30
@Koenkk Same Issue with https://www.zigbee2mqtt.io/devices/SP_240.html.
Zigbee2MQTT V. 1.35.1-dev commit: 0b59a51c Coordinator-Typ EZSP v8 Coordinator-Version 7.0.2.0 build 406 Coordinator IEEE Adresse 0xe0798dfffebbe7d6 Frontend-Version 0.6.152 Zigbee-herdsman-converters version 18.25.1 Zigbee-herdsman version 0.33.5
Debug:
Debug 2024-02-01 16:34:12Received MQTT message on 'zigbee2mqtt/0xa4c138a71702a8fe/get' with data '{"state":""}'
Debug 2024-02-01 16:34:12Publishing get 'get' 'state' to '0xa4c138a71702a8fe'
Debug 2024-02-01 16:34:12Received Zigbee message from '0xa4c138a71702a8fe', type 'readResponse', cluster 'genOnOff', data '{"onOff":1}' from endpoint 1 with groupID 0
Info 2024-02-01 16:34:12MQTT publish: topic 'zigbee2mqtt/0xa4c138a71702a8fe', payload '{"action":"on","current":0,"energy":0,"linkquality":255,"power":0,"power_on_behavior":"previous","state":"ON","voltage":227}'
Debug 2024-02-01 16:34:13Received MQTT message on 'zigbee2mqtt/0xa4c138a71702a8fe/get' with data '{"power_on_behavior":""}'
Debug 2024-02-01 16:34:13Publishing get 'get' 'power_on_behavior' to '0xa4c138a71702a8fe'
Debug 2024-02-01 16:34:13Received Zigbee message from '0xa4c138a71702a8fe', type 'readResponse', cluster 'genOnOff', data '{"startUpOnOff":255}' from endpoint 1 with groupID 0
Info 2024-02-01 16:34:13MQTT publish: topic 'zigbee2mqtt/0xa4c138a71702a8fe', payload '{"current":0,"energy":0,"linkquality":255,"power":0,"power_on_behavior":"previous","state":"ON","voltage":227}'
Debug 2024-02-01 16:34:13Received MQTT message on 'zigbee2mqtt/0xa4c138a71702a8fe/get' with data '{"power":""}'
Debug 2024-02-01 16:34:13Publishing get 'get' 'power' to '0xa4c138a71702a8fe'
Debug 2024-02-01 16:34:13Received Zigbee message from '0xa4c138a71702a8fe', type 'readResponse', cluster 'haElectricalMeasurement', data '{"activePower":0}' from endpoint 1 with groupID 0
Error 2024-02-01 16:34:13Failed to apply calibration to 'power': 'power_precision' is not a number, got string ()
Info 2024-02-01 16:34:13MQTT publish: topic 'zigbee2mqtt/0xa4c138a71702a8fe', payload '{"current":0,"energy":0,"linkquality":255,"power":0,"power_on_behavior":"previous","state":"ON","voltage":227}'
Debug 2024-02-01 16:34:14Received MQTT message on 'zigbee2mqtt/0xa4c138a71702a8fe/get' with data '{"voltage":""}'
Debug 2024-02-01 16:34:14Publishing get 'get' 'voltage' to '0xa4c138a71702a8fe'
Debug 2024-02-01 16:34:14Received Zigbee message from '0xa4c138a71702a8fe', type 'readResponse', cluster 'haElectricalMeasurement', data '{"rmsVoltage":228}' from endpoint 1 with groupID 0
Error 2024-02-01 16:34:14Failed to apply calibration to 'voltage': 'voltage_precision' is not a number, got string ()
Info 2024-02-01 16:34:14MQTT publish: topic 'zigbee2mqtt/0xa4c138a71702a8fe', payload '{"current":0,"energy":0,"linkquality":255,"power":0,"power_on_behavior":"previous","state":"ON","voltage":228}'
Debug 2024-02-01 16:34:14Received MQTT message on 'zigbee2mqtt/0xa4c138a71702a8fe/get' with data '{"current":""}'
Debug 2024-02-01 16:34:14Publishing get 'get' 'current' to '0xa4c138a71702a8fe'
Debug 2024-02-01 16:34:14Received Zigbee message from '0xa4c138a71702a8fe', type 'readResponse', cluster 'haElectricalMeasurement', data '{"rmsCurrent":0}' from endpoint 1 with groupID 0
Error 2024-02-01 16:34:14Failed to apply calibration to 'current': 'current_precision' is not a number, got string ()
Info 2024-02-01 16:34:14MQTT publish: topic 'zigbee2mqtt/0xa4c138a71702a8fe', payload '{"current":0,"energy":0,"linkquality":255,"power":0,"power_on_behavior":"previous","state":"ON","voltage":228}'
Debug 2024-02-01 16:34:15Received MQTT message on 'zigbee2mqtt/0xa4c138a71702a8fe/get' with data '{"energy":""}'
Debug 2024-02-01 16:34:15Publishing get 'get' 'energy' to '0xa4c138a71702a8fe'
Debug 2024-02-01 16:34:15Received Zigbee message from '0xa4c138a71702a8fe', type 'readResponse', cluster 'seMetering', data '{"currentSummDelivered":[0,0]}' from endpoint 1 with groupID 0
Error 2024-02-01 16:34:15Failed to apply calibration to 'energy': 'energy_calibration' is not a number, got string ()
Info 2024-02-01 16:34:15MQTT publish: topic 'zigbee2mqtt/0xa4c138a71702a8fe', payload '{"current":0,"energy":0,"linkquality":255,"power":0,"power_on_behavior":"previous","state":"ON","voltage":228}'
configuration.yaml:
homeassistant: false
frontend: true
mqtt:
base_topic: zigbee2mqtt
server: mqtt://localhost:1024
serial:
port: /dev/ttyACM0
advanced:
network_key:
-
pan_id:
ext_pan_id:
-
homeassistant_legacy_entity_attributes: false
legacy_api: false
legacy_availability_payload: false
device_options:
legacy: false
devices:
'0xa4c138a71702a8fe':
friendly_name: '0xa4c138a71702a8fe'
energy_calibration: ''
power_precision: ''
voltage_precision: ''
current_precision: ''
energy_precision: ''
state_action: true
energy_calibration: ''
power_precision: ''
voltage_precision: ''
current_precision: ''
energy_precision: ''
This is what causes the issue, removing it should fix the problem. I'm not sure how it ended up there in the first place.
energy_calibration: '' power_precision: '' voltage_precision: '' current_precision: '' energy_precision: ''
This is what causes the issue, removing it should fix the problem. I'm not sure how it ended up there in the first place.
But it wasn't added by myself. So I think there is an issue in Zigbee2MQTT. When I try to change a parameter here:
There are no values shown in the frontend and in configuration will be added the seen lines above. So for me, I think, there are problems within the converter for this device.
The log, if I try to change something inside 'Settings (specific)':
Info 2024-02-01 21:08:08Changed config for device 0xa4c138a71702a8fe
Info 2024-02-01 21:08:08MQTT publish: topic 'zigbee2mqtt/bridge/response/device/options', payload '{"data":{"from":{"legacy":false},"id":"0xa4c138a71702a8fe","restart_required":false,"to":{"legacy":false,"power_precision":""}},"status":"ok","transaction":"mw2iu-1"}'
Info 2024-02-01 21:08:12Changed config for device 0xa4c138a71702a8fe
Info 2024-02-01 21:08:12MQTT publish: topic 'zigbee2mqtt/bridge/response/device/options', payload '{"data":{"from":{"legacy":false,"power_precision":""},"id":"0xa4c138a71702a8fe","restart_required":false,"to":{"legacy":false,"power_precision":""}},"status":"ok","transaction":"mw2iu-2"}'
Info 2024-02-01 21:09:09MQTT publish: topic 'zigbee2mqtt/0xa4c138dafc377c8f', payload '{"brightness":254,"color":{"hue":240,"saturation":100},"color_mode":"hs","linkquality":255,"state":"ON"}'
Info 2024-02-01 21:10:41Changed config for device 0xa4c138a71702a8fe
Info 2024-02-01 21:10:41MQTT publish: topic 'zigbee2mqtt/bridge/response/device/options', payload '{"data":{"from":{"legacy":false,"power_precision":""},"id":"0xa4c138a71702a8fe","restart_required":false,"to":{"legacy":false,"power_precision":""}},"status":"ok","transaction":"mw2iu-3"}'
Info 2024-02-01 21:12:24MQTT publish: topic 'zigbee2mqtt/0xa4c138dafc377c8f', payload '{"brightness":254,"color":{"hue":240,"saturation":100},"color_mode":"hs","linkquality":255,"state":"ON"}'
So these lines appear after changing something in the frontend?
So these lines appear after changing something in the frontend?
I will try this with other devices, to see if it's a device spcific problem or a general problem. So I tried it with this device: https://www.zigbee2mqtt.io/devices/TS0121_plug.html#tuya-ts0121_plug with the same result. If you need more details, please tell me.
I also tried this on a different zigbee2MQTT installation to eliminate the possibility of a issue in my installation. But there also the same result.
i've the same error Failed to apply calibration to 'power': 'power_calibration' is not a number, got string ()
with my tuya-ts011f_plug_1 after i've set current_precision (some month ago) with value of 1 and energy_precision to 2, and they automaticly setted power_precision to ''.
'0xa4c138fe4acfec57':
friendly_name: SwitchFrigo
energy_precision: 2
current_precision: 1
power_precision: ''
i fact when you set some parametters and the other are not populated is saved with ''
i've forced to 0
and no more error.
i think you must remove parametters when is void when save.
Recently started getting this issue with all my Tuya smart plugs. And theyve all stopped reporting power consumption via z2m when they used to work flawlessly for months.
Same issue with my blitzwolf BW-SHP15 smartplug. According to z2m Tuya is the manufacture for these as well. Got the error message when changing the polling interval. Interval does not seem to change either. Stays at the standard 60 seconds on the background. So I think non of these settings will be working as long as this bug exists.
I tried filling in every empty settings field and the error messages disappeared. But changing the "Measurement poll interval" setting still does nothing.
UPDATE: forgot to restart the z2m addon after filling in in all the settings. After that the interval setting was changed.
I have been getting this error with these sockets: https://www.zigbee2mqtt.io/devices/AU-A1ZBDSS.html#aurora%2520lighting-au-a1zbdss But also from what I can tell with this switch: https://www.zigbee2mqtt.io/devices/SSM-U01.html#aqara-ssm-u01 In the logs it is not clear which device is throwing the error, but after reviewing the config file these all had power_precision = "" and when I set them to 0s or 1s the issue went away. But more importantly for me, after an update to Z2M version 1.37 all three of the Aurora sockets stopped reporting power consumption. Interesting is that one reports constant 0W power, one reports Null and one says N/A. I tried deleting the device and re-adding and it didn't do anything, still showing as Null. Any help or pointers would be appreciated!
I have been getting this error with these sockets: https://www.zigbee2mqtt.io/devices/AU-A1ZBDSS.html#aurora%2520lighting-au-a1zbdss But also from what I can tell with this switch: https://www.zigbee2mqtt.io/devices/SSM-U01.html#aqara-ssm-u01 In the logs it is not clear which device is throwing the error, but after reviewing the config file these all had power_precision = "" and when I set them to 0s or 1s the issue went away. But more importantly for me, after an update to Z2M version 1.37 all three of the Aurora sockets stopped reporting power consumption. Interesting is that one reports constant 0W power, one reports Null and one says N/A. I tried deleting the device and re-adding and it didn't do anything, still showing as Null. Any help or pointers would be appreciated!
This definitely helped me with z2m....but requires a z2m reset every now and then to get HA to go grab the values from the plug.
Created a new installation yesterday from the docker image koenkk/zigbee2mqtt. Started getting lots of warnings popping up on screen after a while and found multiple instances of *_precision: '' having been automatically added to configuration.yaml for seemingly no good reason.
What happened?
When I set 'Measurement poll interval' on device '_TZ3000_rdtixbnu' (TS0121_plug), I get this error-log: Error 2024-01-27 07:32:36Failed to apply calibration to 'power': 'power_calibration' is not a number, got string (). But I didn't change calibration for power.
After setting 'poll interval' this error message persists and pop up every minute, until I change the parameter 'calibration for power' to '0'.
What did you expect to happen?
Change the poll interval only, not changing anything other without getting that error message.
How to reproduce it (minimal and precise)
On every plug-device with powermeassurement, if there were manually changes in settings(specific). Tested on tuya-devices.
Zigbee2MQTT version
1.35.1-dev commit: a879382c
Adapter firmware version
EZSP V8 - 7.0.2.0 build 406
Adapter
sonoff-zigbee-3-0-usb-dongle-plus-e
Setup
plain on Pi
Debug log
Error 2024-01-27 09:02:42Failed to apply calibration to 'power': 'power_calibration' is not a number, got string () Error 2024-01-27 09:03:42Failed to apply calibration to 'power': 'power_calibration' is not a number, got string () Error 2024-01-27 09:04:42Failed to apply calibration to 'power': 'power_calibration' is not a number, got string () Error 2024-01-27 09:06:15Failed to apply calibration to 'power': 'power_calibration' is not a number, got string () Error 2024-01-27 09:06:42Failed to apply calibration to 'power': 'power_calibration' is not a number, got string () Error 2024-01-27 09:07:42Failed to apply calibration to 'power': 'power_calibration' is not a number, got string () Error 2024-01-27 09:08:42Failed to apply calibration to 'power': 'power_calibration' is not a number, got string () Error 2024-01-27 09:09:42Failed to apply calibration to 'power': 'power_calibration' is not a number, got string () Error 2024-01-27 09:10:42Failed to apply calibration to 'power': 'power_calibration' is not a number, got string () Error 2024-01-27 09:11:42Failed to apply calibration to 'power': 'power_calibration' is not a number, got string () Error 2024-01-27 09:12:43Failed to apply calibration to 'power': 'power_calibration' is not a number, got string () Error 2024-01-27 09:13:43Failed to apply calibration to 'power': 'power_calibration' is not a number, got string () Error 2024-01-27 09:14:43Failed to apply calibration to 'power': 'power_calibration' is not a number, got string () Error 2024-01-27 09:15:43Failed to apply calibration to 'power': 'power_calibration' is not a number, got string () Info 2024-01-27 09:15:43MQTT publish: topic 'zigbee2mqtt/bridge/response/options', payload '{"data":{"restart_required":false},"status":"ok","transaction":"b8w1a-6"}' Debug 2024-01-27 09:15:44Received Zigbee message from 'Wohnzimmer/Sicherheit/Wohnbereich/Radar', type 'commandDataReport', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[0,0,2,223],"type":"Buffer"},"datatype":2,"dp":9}],"seq":20992}' from endpoint 1 with groupID 0 Info 2024-01-27 09:15:44MQTT publish: topic 'zigbee2mqtt/Wohnzimmer/Sicherheit/Wohnbereich/Radar', payload '{"illuminance_lux":15,"last_seen":1706343343992,"linkquality":212,"target_distance":7.35}' Debug 2024-01-27 09:15:44Received Zigbee message from 'Buero/Sicherheit/Radar', type 'commandDataReport', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[0,0,0,186],"type":"Buffer"},"datatype":2,"dp":9}],"seq":33024}' from endpoint 1 with groupID 0 Info 2024-01-27 09:15:44MQTT publish: topic 'zigbee2mqtt/Buero/Sicherheit/Radar', payload '{"cli":" ","detection_delay":0,"fading_time":20,"illuminance_lux":24,"last_seen":1706343344460,"linkquality":164,"maximum_range":3,"minimum_range":0.3,"presence":true,"radar_sensitivity":8,"self_test":"check_success","target_distance":1.86}' Debug 2024-01-27 09:15:45Received Zigbee message from 'Wohnzimmer/Sicherheit/Wohnbereich/Radar', type 'commandDataReport', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[0,0,2,211],"type":"Buffer"},"datatype":2,"dp":9}],"seq":21248}' from endpoint 1 with groupID 0