Skip to content

Commit 11969e6

Browse files
authored
Improve formatting of ppb and mg/m³ equations
Formatted equations for better readability.
1 parent 2fff705 commit 11969e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ The integration supports automatic discovery of Qingping CGS1/CGS2/CGDN1 devices
8787
- mg/m³ = ppb/218.77<br />
8888

8989
**eTVOC Sensor**: The sensor can be set to 3 different measurement units, by default it is VOC index. The component converts from voc index to get ppb and mg/m³.
90-
- ppb = (math.log(501-voc_index) - 6.24) * -2215.4
91-
- mg/m³ = (ppb*4.5*10 + 5) / 10 / 1000
90+
- ppb = ( math.log ( 501 - voc_index ) - 6.24) * -2215.4
91+
- mg/m³ = ( ppb * 4.5 * 10 + 5 ) / 10 / 1000
9292

9393
5. **Data Updates**: The component subscribes to MQTT messages from the device. When new data is received, it updates the relevant sensors in Home Assistant.
9494

0 commit comments

Comments
 (0)