Skip to content

Commit

Permalink
Switch TFA rain sensor value (#133)
Browse files Browse the repository at this point in the history
According to reports, these are expected to use the second rain total value too.
  • Loading branch information
elupus authored Mar 1, 2022
1 parent 707210b commit bf43848
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion RFXtrx/lowlevel.py
Original file line number Diff line number Diff line change
Expand Up @@ -1694,7 +1694,8 @@ def load_receive(self, data):
# cartridge can be 0.01 inch rather than 0.2mm
self.raintotal = 0.2 * self.raintotal3
elif self.subtype == 9:
self.raintotal = 0.254 * self.raintotal3
self.raintotal = 0.254 * float((self.raintotal2 << 8) +
self.raintotal3)

self.rssi_byte = data[11]
self.battery = self.rssi_byte & 0x0f
Expand Down

0 comments on commit bf43848

Please sign in to comment.