I am having issues getting the temperatures from my IBBQ-4T V2 into Hassio. I am using LocalTuya to get the data from my device into hassio.
This is what I get:
Hassio debuger from LocalTuya gives me:
"107": "1j0AAShBAAEIPgABNj0AAQ=="
So as per the link you provided from InkBirds tech:
I get the following from DP107: 1j0AAShBAAEIPgABNj0AAQ==
Converted to HEX: d6 3d 00 01 28 41 00 01 08 3e 00 01 36 3d 00 01
Which gives us:
Probe 1:
- d6 3d 00 01 reversed → 01003dd6
- converted to decimal: 16793046
- 16793046/100,000 = 167.93 F which is 75 C
Probe 2:
- 28 41 00 01 reversed → 01004128
- converted to decimal: 16793896
- 16793896/100,000 = 167.93 F which is 75 C
Probe 3:
- 08 3e 00 01 reversed → 01003e08
- converted to decimal: 16793096
- 16793096/100,000 = 167.93 F which is 75 C
Probe 4:
- 36 3d 00 01 reversed → 01003d36
- converted to decimal: 16792886
- 16792886/100,000 = 167.92 F which is 75 C
This matched all my probes inserted all at once into a cup of hot water (+/- 1C).
So in conclusion, I believe something is wrong with the conversion inside the yaml file. Since we can see that Tuya_Local debug log does indeed get the correct numbers from dp107 but hassio is not outputing them correctly.
In the yaml this is done:
- id: 107
type: base64
name: sensor
class: measurement
optional: true
mapping:
- mask: FFFF000000000000
endianness: little
scale: 100
unit: F
From my understanding:
mask: FFFF000000000000
it takes the first 4 HEXendianness: little
reverse the bytesscale: 100
divide by 100
Code seems correct but for some reason Probe1 and Probe3 are not giving the correct measurement in hassio.