Skip to content

Commit eb7693f

Browse files
authored
fix: Fix CO2 values #26108 (#8733)
1 parent d88f402 commit eb7693f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/converters/fromZigbee.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ const converters1 = {
503503
cluster: 'msCO2',
504504
type: ['attributeReport', 'readResponse'],
505505
convert: (model, msg, publish, options, meta) => {
506-
return {co2: Math.floor(1 / msg.data.measuredValue)};
506+
return {co2: Math.floor(msg.data.measuredValue * 1000000)};
507507
},
508508
} satisfies Fz.Converter,
509509
occupancy: {

0 commit comments

Comments
 (0)