Skip to content
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

Moes BRT-100-TRV didnt update local_temperature after local_temperature_calibration is set #9486

Closed
KartoffelToby opened this issue Nov 3, 2021 · 21 comments
Labels
problem Something isn't working stale Stale issues

Comments

@KartoffelToby
Copy link

If local_temperature_calibration is set, local_temperature should be updated instandly with the new value.

@KartoffelToby KartoffelToby added the problem Something isn't working label Nov 3, 2021
@craiq
Copy link

craiq commented Nov 9, 2021

confirm, I've the same problem. local_temperature_calibration has no effect, after hours too.
With the older TS0601_thermostat this works just fine.

@upais
Copy link

upais commented Nov 9, 2021

Same problem. Two BRT-100-TRV

@craiq
Copy link

craiq commented Nov 9, 2021

Any hints how to fix this?

@upais
Copy link

upais commented Nov 10, 2021

A workaround to calibrate from an external temperature sensor is to ignore the local_temperature_calibration.
It works like this for me: {{states (temp_sensor) | float (0) | round (0) - (state_attr (climate_device, 'current_temperature') | float (0) | round (0))}}

@craiq
Copy link

craiq commented Nov 10, 2021

@IvanUpa how are you using this temperature difference then?
I want to set the target temperatur via the climate entity or manual on the trv

@upais
Copy link

upais commented Nov 10, 2021

@IvanUpa how are you using this temperature difference then? I want to set the target temperatur via the climate entity or manual on the trv

I can't say for sure why this works. As if, if you do not touch TRV, then "local_temperature" is returned without correction.
In any case, the final problem is solved, for a week in the z2m the data is correct, and the temperature in the rooms is maintained according to the settings.

@KartoffelToby
Copy link
Author

But "tvr" Not touched is the Problem, as soon as the tvr wake up from sleep state the Temperature ist correctly updated, so my idea is to fix this in z2m
with the following Logic:

if the calibration is set, update the current temp with it internal in z2m if a event direcly from the device is fired Override the current temp. if everythig is correct the current temp dosent changed.

@KartoffelToby
Copy link
Author

btw the calibration isn't reported to HA and i don't know why.

other tvr works great.

but i think the "instand" intern Update with the current Temperature and calibration should be done on any Thermostats

@github-actions
Copy link
Contributor

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

@github-actions github-actions bot added the stale Stale issues label Dec 11, 2021
@upais
Copy link

upais commented Dec 12, 2021

The problem is relevant.

@yavasilek
Copy link

Проблема актуальна.

@mrybas
Copy link

mrybas commented Dec 29, 2021

i have the same issue

{{states (temp_sensor) | float (0) | round (0) - (state_attr (climate_device, 'current_temperature') | float (0) | round (0))}}

@IvanUpa
how do you use this value later?
write in local_temperature_calibration

@upais
Copy link

upais commented Dec 29, 2021

@mrybas
I do not know, stopped using this method. Try integration:
https://github.com/KartoffelToby/ai_thermostat

@eraycetinay
Copy link

eraycetinay commented Jan 22, 2022

It is a big problem if you are using an external temperature sensor. It is not updating the latest temperature after the calibration. So home assistant is not able to know what is the latest temperature on trv. and that makes the external sensor usage meaningless.

Probably it is going to work if you are going to make a calibration setting once every hour. But if you want to make calibration settings once every 5 minutes you will broke the trv system.

Update: I fixed my problems. I stopped using trv's temperature control and i created new virtual climate devices by 'generic_thermostat' and i used boolean inputs and external temperature sensors on that virtual climate devices. Created a script which sets the real brt climate devices to 5 degree and 35 degree according the position of boolean switch's on/off state. So i used my real trv's like a switch based water heater in that way. At the end of the day, my whole house has a perfect heating system now. The only negative point is; im not able to use brt's smart positioning feature. Now its always %100 or %0. At least i have a system that is more sensitive to temperature changes and works healthier.

@github-actions
Copy link
Contributor

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

@github-actions github-actions bot added the stale Stale issues label Mar 21, 2022
@Smo-RBR
Copy link

Smo-RBR commented Apr 14, 2022

Problem still exists

@rotilho
Copy link

rotilho commented Jul 25, 2022

Are there any solution for this or returning is the only option?

@Der-Nax
Copy link

Der-Nax commented Sep 25, 2022

It is a big problem if you are using an external temperature sensor. It is not updating the latest temperature after the calibration. So home assistant is not able to know what is the latest temperature on trv. and that makes the external sensor usage meaningless.

Probably it is going to work if you are going to make a calibration setting once every hour. But if you want to make calibration settings once every 5 minutes you will broke the trv system.

Update: I fixed my problems. I stopped using trv's temperature control and i created new virtual climate devices by 'generic_thermostat' and i used boolean inputs and external temperature sensors on that virtual climate devices. Created a script which sets the real brt climate devices to 5 degree and 35 degree according the position of boolean switch's on/off state. So i used my real trv's like a switch based water heater in that way. At the end of the day, my whole house has a perfect heating system now. The only negative point is; im not able to use brt's smart positioning feature. Now its always %100 or %0. At least i have a system that is more sensitive to temperature changes and works healthier.

Could you please share your script and settings of 'generic_thermostat'?

@willhaggan
Copy link

having the same problem with the local temperature calibration setting and also the update of the local temperature seems very slow back to z2m

@Alex2zl
Copy link

Alex2zl commented Oct 10, 2022

It is a big problem if you are using an external temperature sensor. It is not updating the latest temperature after the calibration. So home assistant is not able to know what is the latest temperature on trv. and that makes the external sensor usage meaningless.

Probably it is going to work if you are going to make a calibration setting once every hour. But if you want to make calibration settings once every 5 minutes you will broke the trv system.

Update: I fixed my problems. I stopped using trv's temperature control and i created new virtual climate devices by 'generic_thermostat' and i used boolean inputs and external temperature sensors on that virtual climate devices. Created a script which sets the real brt climate devices to 5 degree and 35 degree according the position of boolean switch's on/off state. So i used my real trv's like a switch based water heater in that way. At the end of the day, my whole house has a perfect heating system now. The only negative point is; im not able to use brt's smart positioning feature. Now its always %100 or %0. At least i have a system that is more sensitive to temperature changes and works healthier.

Please show your configuration of the created new virtual climate device.
I think many users will find this information useful. Thanks in advance

@eraycetinay
Copy link

eraycetinay commented Oct 10, 2022

sorry for the delay.

in configuration yaml i added a virtual trv.
i created an input_boolean (on/off) and added it to heater param. (input_boolean.trv1_durum)
also i added the external thermometer sensor to target_sensor param. (sensor.termometre_1_temperature)

climate:
  - platform: generic_thermostat
    name: TRV1
    heater: input_boolean.trv1_durum
    target_sensor: sensor.termometre_1_temperature
    min_temp: 10
    max_temp: 30
    ac_mode: false
    cold_tolerance: 0.25
    hot_tolerance: 0.5
    initial_hvac_mode: "heat"
    precision: 0.5

for sync between virtual and real trv i used 2 automation.
first automation triggers when boolen status changes.

alias: Trv1_sync
description: ""
trigger:
  - platform: state
    entity_id: input_boolean.trv1_durum
condition: []
action:
  - service: climate.set_temperature
    data:
      temperature: |-
        {% if is_state('input_boolean.trv1_durum','off') %}
          5
        {% elif is_state('input_boolean.trv1_durum','on') %}
          35
        {% endif %}
    target:
      device_id: DEVICE_ID_OF_REAL_TRV
mode: single

second automation might not be necessary but its effective on problems created by first automation
so second automation runs the first automation every hour.
basically, virtual trv will change the status between on and off of input_boolean
and when input boolean status changed, first automation will set the degree to 5 or 35 of real trv
if degree is 5, real trv is not going to work. if it is 35, it will work.
also second automation is a life vest. it will fix problem if any problem occurs on first automation.
hassio restarts, electric cuts etc might create problems. so use both for a better results.

alias: Trv_sync
description: ""
trigger:
  - platform: time_pattern
    hours: /1
    minutes: "0"
    seconds: "0"
condition: []
action:
  - service: automation.trigger
    data: {}
    target:
      entity_id:
        - automation.trv1_sync
        - automation.trv2_sync (if you have)
        - automation.trv3_sync (if you have)
        - automation.trv4_sync (if you have)
mode: single

if you have multiple trv's like mine. create multiple from the 'first automation' and generic_thermostat virtual climate for each. 1 secondary automation will be enough for all (every hour fixer)

i used this for 6 months and works perfectly.
i hope it helps.
cheers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
problem Something isn't working stale Stale issues
Projects
None yet
Development

No branches or pull requests