Closed TurboTronix closed 11 months ago
Thanks for pointing out the incorrect types. The temperatures seem to be encoded as 3 bytes per probe, with another 1 byte of flags. The previous masks were based on 2 bytes per probe, so the odd numbered probes were actually picking up the leading byte and the flags, and probes 2 and 4 were showing the temperatures of probes 1 and 2 (or maybe 3 and 4).
Do you think you can do some experimenting to check if the probes are ordered correctly? DONE: probe order is confirmed to be correct
Also, the "preset temperature" settings are also currently masked to 2 bytes per probe, but that dp seems to have 28 bytes in total. I am not sure whether it is 7 bytes per probe, or some smaller number per probe, with some more general settings in there as well. Currently the only capture of that DP is in a comment in the original issue that has all 28 bytes set to 0, so some experimenting with those presets from the app and capturing the base64 values will help try to figure them out. TODO
OK will do some testing this coming weekend to see if I can help out.
My findings:
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40">
Probe 1 in hot water | DP107 | UEYAAKIcAAAqHAAANBwAAA== | 82 | 23 | 22 | 22 -- | -- | -- | -- | -- | -- | -- Probe 2 in hot water | DP107 | GiIAAP5CAAAqHAAANBwAAA== | 31 | 78 | 22 | 22 Probe 3 in hot water | DP107 | PB4AAE4gAAB0QAAA5BsAAA== | 26 | 28 | 74 | 22 Probe 4 in hot water | DP107 | ehwAAN4cAABKHwAABD0AAA== | 23 | 23 | 27 | 69
This form is for reporting bugs. If you have encountered a bug, you should generally have some log messages or device diagnostics to show something is going wrong. If your problem is more of a question or a request for help, then Discussions is probably a more suitable venue.
Describe the bug
To Reproduce Steps to reproduce the behavior including the device the issue was observed with:
Step 1: use the following device
Step 2: this will use the following yaml: inkbird_bbq4t_thermometerv2.yaml
Expected behavior The code in inkbird_bbq4t_thermometerv2.yaml needs to be modified for probe 2-3-4 (change type to base64):
Additional context I also noted that probe 1 and 3 don't give the accurate temps, I can't figure out why. I've tried several things but can't pin point the reason.
The following picture shows that Probe 1 and Probe 3 seem to give the same faulty value of -16.36 (they seem to be the same value as well, not 2 diff values but a duplication of the same value). However these temps should be similar to those given by Probe 1 and Probe 4.
Debug log: tuya_local-d64ae89f06e1f8c04fc2f9ccc6c9fb9b-BBQ thermometer-ad5f5d681fb06a690e5c35076defe4da.json.txt
If the bug involves a device, then please include device diagnostics from Settings / Devices & Services / Tuya Local (your device) / "1 device"
Please check if there are messages from Tuya Local in the Home Assistant log (Settings / System / Logs), and include those too.
If applicable, add screenshots to help explain your problem.