Add support for La Crosse View LTV-TH2i Thermo/Hygro Sensor #3406
+31
−11
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Much like its predecessor the LTV-TH2, the CRC on some of the packets transmitted by the LTV-TH2i will be calculated with a fixed nonzero initial value. Unlike the LTV-TH2, the TH2i uses init=0xb2. The lacrosse_th3 decoder is still able to decode the TH2i packets with init=0x00 CRC values, but it discards the majority of the reports as corrupt. Add a check for init=0x2b CRC to the decoder to improve its support for decoding packets from LTV-TH2i sensors.
Change LaCrosse LTV-TH decoder to output battery_ok, retransmit
Experimentation with a La Crosse View LTV-TH2i sensor has revealed the semantics of two of the flags. One signals a low battery, and the other signals that the packet is a repeat broadcast triggered by a button press. (The La Crosse V41CA display audibly beeps upon reception of a packet with this flag set.) Break these flags out into their own output fields and squelch the display of the remaining unknown flags unless one of them is set.