-
Notifications
You must be signed in to change notification settings - Fork 43
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
Device temp offset is not taken into account in the regulated temp sending step calculation #705
Comments
Fix issue jmcollin78#705 Device temp offset is not taken into account in the regulated temp sending step calculation
Hello @FockeOeuf , I will need some time to analyse and eventually take this proposal into account. Please be patient. |
Hi @jmcollin78, no worries for the moment I use an automation to compensate the offset every 5 minutes. Not so pretty but it kinda works. This enhancement would be very useful for the cases where TRVs have a very different offset, and especially when they are linked to the same climate entity. |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
Hello @SP2FET Have you tried without "use the internal device's temperature" but set the regulation to 'Strong' ? |
Hi @jmcollin78, thanks for answer. I'll switch to strong regulation and observe that, will let you know |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
Hello all, This thread is now a mix of many question, proposal and discussion. I will keep only the first post of @FockeOeuf which a proposal to change the algo and this has nothing to do with your posts @andyxpert and @SP2FET. @andyxpert and @SP2FET you have regulation problems which should be easily resolve (I hope so), by uncheck the "use internal temp" and set the self regulation to Strong (or expert if Strong is not enough). See here: https://github.com/jmcollin78/versatile_thermostat/blob/main/documentation/en/self-regulation.md#other-self-regulation @SP2FET for the window detection issue, look at the #683 and check it is the same. I guess yes. The workaround is to set the window action to "turn off", while waiting for a fix. |
Version of the custom_component
6.8.2
Describe the bug
When using the auto_regulation_use_device_temp parameter, the comparison with the regulated temperature sending step is performed before taking into account the device temp offset.
Let's take the situation where the regulated temperature doesn't have to change during the cycle calculation, but one underlying device temp offset have moved by a value superior to the regulated temperature step parameter, the new target temp isn't sent to any device, whereas it should have been.
With a 5 min cycle and auto regulation parameters which do not make the regulated temp move a lot, the target temp is almost never sent to the device, even though the device temp is far off the last regulated temperature sent (with the offset).
To fix the behavior, when using the auto_regulation_device_temp, the following test
if not force and abs(dtemp) < self._auto_regulation_dtemp
should be located further down the code when sending the target temp per underlying device using the following dtemp formula
dtemp = device target temp - (self.regulated_target_temp + offset_temp)
That way each device temp offset is correctly taken into account for the regulation step comparison.
The final code would look like (I didn't test it, just my assumption)
The text was updated successfully, but these errors were encountered: