-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UART response for sensor "Vorlauftemperatur ist" has sometimes wrong values #1
Comments
I've not seen that tbh and I would assume that should be prevented by the checksum check. You could try to run with debugging enabled and check the logs if anything stands out. |
Here is the log from the webview. I configured webserver in YAML-file, but nothing else that in my opinion consumes resources from esp32. I also think the checksum should prevent these false values. How does the algorithm or ESPhome handle false or missing values? [D][sensor:094]: 'Heap Free': Sending state 248276.00000 B with 0 decimals of accuracy |
This means the request packet was sent but the ESP did not receive any data within 4x50ms. But in that case the sensor is not populated with a new value (so I guess HA will show the old one): Lines 196 to 207 in fa1c2f6
As there is no data on the bus there is nothing to flush either so it continues with the next command (reading "Vorlauf Set") which seems to return a coherent value. You could try to increase the timeout/retries in the code above or try to read from the bus before the first command is executed with |
I investigated something interesting. My heater is equipped with an VRC410 device. When I connect the ESP after the heater is fully booted I get these errors. In the DIA diagnostics menu of the heater I can read out the same parameters as via UART. Parameter d.90 ("digitaler Regler") shows 1. My conclusion is, the VRC410 and the ESP using the same communication line (X6 UART) for data exchange with the main board of the heater. If the VRC410 is recognised at boot then it is correctly working and sending and receiving data and interferencing the data exchange with the ESP. If the VRC410 is not recognised at boot, there is no further communication on X6 line and no disturbance of ESPs data exchange. Besides: I don't use the ESP's pwm and 789-line for set temperature. At the moment I just use the ESP for logging. |
That sounds comprehensible as two devices on the bus will most likely step on each others toes. |
It seems that this happen just to the first request in the line of requests (all other sensors do not have these spikes).
Does anybody have the same issue?
Could a clear or flush of the UART before the first request solve this issue. Or does this wrong value happen after the checksum check?
The text was updated successfully, but these errors were encountered: