Closed myhomeiot closed 2 years ago
Yes, for the soil probe type (b[6] == 0x4?) we should ignore the other values. We expected 0xff in those fields (= invalid) but here we get 0xbb strangely.
Not sure if (b[13] &0xf) can be the battery, other samples have 2
there, you have 6
and 0
.
I did 10+ tests with good and bad batteries, and resync weather station console each time (in order to be sure that I get correct battery icon at console), so I'm confident that (b[13] &0xf) it's a battery for BRESSER soil temperature and moisture meter. I also never seen 0xff in the fields where I see 0xbb.
I have the Ambient Weather branded version of this sensor (TX-3102). I did some tests and found that b[13] bit 1 was set when battery was good and clear when battery was low.
Low battery (less than 3V total):
bresser_6in1_decode: : {144} 60 5a 18 70 07 93 41 ff ff ff 00 00 22 50 01 ff f2 3b bresser_6in1_decode: : {144} 39 88 18 70 07 93 41 ff ff ff 00 00 22 30 01 ff f2 5b bresser_6in1_decode: : {144} 3d 2c 18 70 07 93 41 ff ff ff 00 00 21 90 01 ff f2 fc bresser_6in1_decode: : {144} 3d 2c 18 70 07 93 41 ff ff ff 00 00 21 90 01 ff f2 fc
More than 3V total:
bresser_6in1_decode: : {144} e3 ae 18 70 07 93 41 ff ff ff 00 00 22 12 01 ff f2 79 bresser_6in1_decode: : {144} e3 ae 18 70 07 93 41 ff ff ff 00 00 22 12 01 ff f2 79 bresser_6in1_decode: : {144} e3 ae 18 70 07 93 41 ff ff ff 00 00 22 12 01 ff f2 79 bresser_6in1_decode: : {144} cf 47 18 70 07 93 41 ff ff ff 00 00 22 22 01 ff f2 69
Hope that helps.
Thanks. So b[13] & 0x02
is a battery_good bit.
Thanks. So
b[13] & 0x02
is a battery_good bit.
Hello, do you need more data or tests? Can you make the fix for battery state? Thanks in advance!
Yes, I'll try to get this in soon, sorry.
Bump, thanks in advance!
Bump, with love! ;-)
Finally got around to add this. Thanks for figuring out the mapping and sticking around to see it through!
Thanks a lot for great job! I can confirm that now battery state works!
Wind information (wind_max_m_s, wind_avg_m_s, wind_dir_deg) disappear that also great, startup was added from #1214 probably ok, last things which stay it's uv with has a value same as wind before, probably 44.4 mean that value is not defined and uv_ok calculation should be adjasted as well. Thanks again!
{
"time": "2022-06-08 11:53:55+0300",
"model": "Bresser-6in1",
"id": 4734287345,
"channel": 1,
"battery_ok": 0,
"temperature_C": 25.3,
"sensor_type": 4,
"moisture": 0,
"uv": 44.4,
"startup": 1,
"flags": 0,
"mic": "CRC"
}
Oh, I missed UV. Thanks!
In the examples posted above by anthyz the UV value was ff f2
:
{144} 39 88 18 70 07 93 41 ff ff ff 00 00 22 30 01 ff f2 5b
that's the expected "no value" code.
But you see bb b0
which is a valid reading (b
== 4, 0
= valid). That's strange.
But I'll just add a suppression for the moisture sensor then ;)
Hello,
First I want to thanks for your great work!
The new BRESSER soil temperature and moisture meter for 7-in-1 weather station (Product number: 7009972, EAN: 4007922074153) show wrong battery state and non relevant wind data (this sensor meter only soil temperature and moisture). I check the data with weather station console, temperature and moisture is OK.
Good battery:
Bad battery, weather station console shows low battery icon:
Difference in msg[13], good battery has 0x86, bad 0x80, looks like battery state it's last 4 bits which should be xor'ed with 0x0f?