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

Aqara SRTS-A01 - sensor_temp Error: Value is not a number, got string since upgrade to 1.32.0 #18212

Closed
chris94440 opened this issue Jul 4, 2023 · 2 comments
Labels
problem Something isn't working

Comments

@chris94440
Copy link

chris94440 commented Jul 4, 2023

What happened?

Error when updating sensor temperature through endpoint sensor_temp => Error: Value is not a number, got string (25.41)
And temperature is not updated

What did you expect to happen?

Temperature would be updated (local_temperature)

How to reproduce it (minimal and precise)

Send data to endpoint sensor_temp

Zigbee2MQTT version

1.32.0 commit 69638d7

Adapter firmware version

20220219

Adapter

SONOFF ZigBee 3.0 USB Dongle Plus, TI CC2652P

Debug log

Debug 2023-07-04 17:20:03Received MQTT message on 'zigbee2mqtt/Z2M_XIAOMI_Vanne_Thermostatique_Chambre_Noe/set' with data '{"sensor_temp":"25.41"}'
Debug 2023-07-04 17:20:03Publishing 'set' 'sensor_temp' to 'Z2M_XIAOMI_Vanne_Thermostatique_Chambre_Noe'
Error 2023-07-04 17:20:03Publish 'set' 'sensor_temp' to 'Z2M_XIAOMI_Vanne_Thermostatique_Chambre_Noe' failed: 'Error: Value is not a number, got string (25.41)'
Debug 2023-07-04 17:20:03Error: Value is not a number, got string (25.41) at Object.assertNumber (/opt/zigbee2mqtt/node_modules/zigbee-herdsman-converters/src/lib/utils.ts:502:42) at Object.convertSet (/opt/zigbee2mqtt/node_modules/zigbee-herdsman-converters/src/devices/xiaomi.ts:463:27) at Publish.onMQTTMessage (/opt/zigbee2mqtt/lib/extension/publish.ts:248:52) at EventEmitter.emit (node:events:525:35) at EventBus.emitMQTTMessage (/opt/zigbee2mqtt/lib/eventBus.ts:109:22) at MQTT.onMessage (/opt/zigbee2mqtt/lib/mqtt.ts:140:27) at MqttClient.emit (node:events:513:28) at MqttClient._handlePublish (/opt/zigbee2mqtt/node_modules/mqtt/lib/client.js:1547:12) at MqttClient._handlePacket (/opt/zigbee2mqtt/node_modules/mqtt/lib/client.js:535:12) at work (/opt/zigbee2mqtt/node_modules/mqtt/lib/client.js:438:12)

@chris94440 chris94440 added the problem Something isn't working label Jul 4, 2023
@Koenkk
Copy link
Owner

Koenkk commented Jul 4, 2023

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)

@Koenkk Koenkk closed this as completed Jul 4, 2023
@chris94440
Copy link
Author

Thx a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
problem Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants