@@ -100,6 +100,18 @@ def baseline_eCO2(self):
100
100
"""Carbon Dioxide Equivalent baseline value"""
101
101
return self .get_iaq_baseline ()[0 ]
102
102
103
+ @property
104
+ # pylint: disable=invalid-name
105
+ def Ethanol (self ):
106
+ """Ethanol Raw Signal in ticks"""
107
+ return self .raw_measure ()[1 ]
108
+
109
+ @property
110
+ # pylint: disable=invalid-name
111
+ def H2 (self ):
112
+ """H2 Raw Signal in ticks"""
113
+ return self .raw_measure ()[0 ]
114
+
103
115
def iaq_init (self ):
104
116
"""Initialize the IAQ algorithm"""
105
117
# name, command, signals, delay
@@ -110,6 +122,11 @@ def iaq_measure(self):
110
122
# name, command, signals, delay
111
123
return self ._run_profile (["iaq_measure" , [0x20 , 0x08 ], 2 , 0.05 ])
112
124
125
+ def raw_measure (self ):
126
+ """Measure H2 and Ethanol (Raw Signals)"""
127
+ # name, command, signals, delay
128
+ return self ._run_profile (["raw_measure" , [0x20 , 0x50 ], 2 , 0.025 ])
129
+
113
130
def get_iaq_baseline (self ):
114
131
"""Retreive the IAQ algorithm baseline for eCO2 and TVOC"""
115
132
# name, command, signals, delay
0 commit comments