- Note that this is also EcoWitt WH41.
- Note that device id matches sticker on device in hex. This is at
least true for WH41, and in my view removes the ? about device id.
- Decode family and unknown bit in WH0290
* Extend decoded values + HCA
* add support for BCD value decoding and 64bit values
* add support for H.C.A
* add support for OnTime and Operation Time
* remove left shift of signed
* Add support for parsing timedate in wbus
Tested on Maddalena water meter
* fix code format
* replace assert by condition
* remove vararg
* remove Z from the end of time strings
- Fix a signed/unsigned bug in temperature reception
- Use a new linear estimate that fits my logged temperature data better
- Speed up ID guessing method by 64x by using a reverse CRC
- Improve ID guessing logic to also ensure that the "winning" ID isn't tied
with another possibility
- Improve comments and documentation
Signed-off-by: Justin Brzozoski <justin.brzozoski@gmail.com>
* Add support for wmbus water meter Maddalena
* Add actual water measure
* Add measure of last months
* fix code style
* fix lenght of parsed value
* Add support for mbus units, value types
* Fix json keys
* add storage number to json keys
* reduce bit buffer and add note
* update formatting
This decoder currently outputs the raw values as sent by the sensor (raw_rain1 and raw_rain2).
Work continues to determine how to calculate rain_mm from these values.
Closes#1553
Modified to support LaCrosse LTV-TH2 Thermo/Hygro sensor.
TH2 differs from the TH3 in the following ways:
pulse width is 107us (TH3 is 104us) so bitbuffer reports bit_per_row to be ~289 instead of ~256
CRC for packets with sequence # 0,1,3,4,5 and 7 is CRC-8 poly 0x31 init 0xac
CRC for packets with sequence # 2 and 6 is CRC-8 poly 0x31 init 0x00 (same as TH3 for all sequence numbers)