better_thermostat icon indicating copy to clipboard operation
better_thermostat copied to clipboard

BRT-100-TRV does not work in 0.9.3

Open tieuwe opened this issue 3 years ago • 9 comments

Valves are not working in version 0.9.3 (personally i rolled back to version 0.8.6 which works for me) In my setup i have:

  • 6x Moes BRT-100-TRV valves (of wich 4x with ai_thermostat integration and groups)
  • Installation Type: Home Assistant OS
  • Version: core-2021.12.7
  • Version Supervisor: supervisor-2021.12.2
  • Zigbee2mqtt Current version: 1.22.2-1
  • Also use the better-thermostat-ui-card and climate_group integrations as mentioned in the docs.

Below the configuration.yaml (which is as you can see quite lean)

climate:
  - platform: ai_thermostat
    name: Zone CV - TRV AI woonkamer achtergevel
    thermostat: climate.zone_cv_trv_woonkamer_achtergevel
    temperature_sensor: sensor.inhouse_temperature
#    window_sensors: group.office_windows # if this is not set, the window open detection is off
#    weather: weather.home # if this is set, the outdoor_sensor is ignored, remove the outdoor_sensor config!
    outdoor_sensor: sensor.nefit_outdoor_temperature # if you want to use it, remove the weather entity from the config!
    off_temperature: 15.0
#    window_off_delay: 15 # seconds
    valve_maintenance: true
#    night_temp: 18.5
#    night_start: '22:00'
#    night_end: '06:00'
    unique_id: 1
  - platform: ai_thermostat
    name: Zone CV - TRV AI woonkamer voorgevel
    thermostat: climate.zone_cv_trv_woonkamer_voorgevel
    temperature_sensor: sensor.inhouse_temperature
#    window_sensors: group.office_windows # if this is not set, the window open detection is off
#    weather: weather.home # if this is set, the outdoor_sensor is ignored, remove the outdoor_sensor config!
    outdoor_sensor: sensor.nefit_outdoor_temperature # if you want to use it, remove the weather entity from the config!
    off_temperature: 15.0
#    window_off_delay: 15 # seconds
    valve_maintenance: true
#    night_temp: 18.5
#    night_start: '22:00'
#    night_end: '06:00'
    unique_id: 2
  - platform: climate_group
    name: 'Woonkamer'
    temperature_unit: C  # default to celsius, 'C' or 'F'
    entities:
    - climate.zone_cv_trv_ai_woonkamer_achtergevel
    - climate.zone_cv_trv_ai_woonkamer_voorgevel
    
    
  - platform: ai_thermostat
    name: Zone CV - TRV AI kantoor kleine radiator
    thermostat: climate.zone_cv_trv_kantoor_kleine_radiator
    temperature_sensor: sensor.zone_cv_thermometer_kantoor_temperature
#    window_sensors: group.office_windows # if this is not set, the window open detection is off
#    weather: weather.home # if this is set, the outdoor_sensor is ignored, remove the outdoor_sensor config!
    outdoor_sensor: sensor.nefit_outdoor_temperature # if you want to use it, remove the weather entity from the config!
    off_temperature: 15.0
#    window_off_delay: 15 # seconds
    valve_maintenance: true
#    night_temp: 18.5
#    night_start: '22:00'
#    night_end: '06:00'
    unique_id: 3
  - platform: ai_thermostat
    name: Zone CV - TRV AI kantoor grote radiator
    thermostat: climate.zone_cv_trv_kantoor_grote_radiator
    temperature_sensor: sensor.zone_cv_thermometer_kantoor_temperature
#    window_sensors: group.office_windows # if this is not set, the window open detection is off
#    weather: weather.home # if this is set, the outdoor_sensor is ignored, remove the outdoor_sensor config!
    outdoor_sensor: sensor.nefit_outdoor_temperature # if you want to use it, remove the weather entity from the config!
    off_temperature: 15.0
#    window_off_delay: 15 # seconds
    valve_maintenance: true
#    night_temp: 18.5
#    night_start: '22:00'
#    night_end: '06:00'
    unique_id: 4
  - platform: climate_group
    name: 'Kantoor'
    temperature_unit: C  # default to celsius, 'C' or 'F'
    entities:
    - climate.zone_cv_trv_ai_kantoor_kleine_radiator
    - climate.zone_cv_trv_ai_kantoor_grote_radiator

Other issues (#138 and #140) about this subject were closed, unfortunately without solution. Personally i got the feeling that there is something changed with the support for these particular valves between old version 0.8.6 and 0.9.x @adamchemiawppl; your issue could be related if you use the same valves?

tieuwe avatar Jan 03 '22 08:01 tieuwe

My valves are TS0601. Plus, my issue was about lack of documentation whatsoever - due to that I can't even confirm, that there is something wrong with the code, or is it me doing something wrong. Fixing bug (if there is one) will not fix lack of documentation.

adamchemiawppl avatar Jan 03 '22 11:01 adamchemiawppl

@adamchemiawppl in that case, ignore my comments

tieuwe avatar Jan 03 '22 12:01 tieuwe

@adamchemiawppl in that case, ignore my comments

Sure, just wanted to clarify, as I'm not claiming my issue is a bug as such :-) Good luck with your issue nevertheless!

adamchemiawppl avatar Jan 03 '22 14:01 adamchemiawppl

The BRT-100-TRV are very special in case of support, see: https://github.com/Koenkk/zigbee2mqtt/issues/9486

Can you describe what exactly not working after the update to 0.9.3?

KartoffelToby avatar Jan 04 '22 14:01 KartoffelToby

Valves are not responding in latest version. When I change the thermostat setting from 20 to 30 degrees for example.

  • In version 0.8.6 this would change the TRV setpoint from 20 to 30 degrees for example.
  • In version 0.9.3 nothing happens.. The TRV setpoints doesn't change and valve positions don't change (also don't hear the TRV moving)

I ran some tests on one single TRV and show debug output from Zigbee2MQTT and Core with both versions if that helps?

In version 0.8.6:

Changing setpoint from 20 degrees to 30 degrees: Starting sistuation (left AI thermostat climate card, right TRV climate card): 0 8 6-20degrees Resulting situation (left AI thermostat climate card, right TRV climate card): 0 8 6-30degrees

log of AI_Thermostat:

2022-01-05 17:03:04 DEBUG (MainThread) [custom_components.ai_thermostat.climate] ai_thermostat: avg outdoor temp: 6
2022-01-05 17:03:04 DEBUG (MainThread) [custom_components.ai_thermostat.climate] ai_thermostat triggerd States > Window open: False Night mode: False Mode: heat Setted: heat hasmode: False Calibration: 20.9 - send: True settemp: 20.0 curtemp: 20.1 Model: BRT-100-TRV Calibration type: 1 Winter: True TRV: Zone CV - TRV woonkamer achtergevel
2022-01-05 17:03:24 DEBUG (MainThread) [custom_components.ai_thermostat.climate] ai_thermostat: avg outdoor temp: 6
2022-01-05 17:03:24 DEBUG (MainThread) [custom_components.ai_thermostat.climate] ai_thermostat triggerd States > Window open: False Night mode: False Mode: heat Setted: heat hasmode: False Calibration: 30.9 - send: False settemp: 30.0 curtemp: 20.1 Model: BRT-100-TRV Calibration type: 1 Winter: True TRV: Zone CV - TRV woonkamer achtergevel

log of Zigbee2MQTT:

Debug Received MQTT message on 'zigbee2mqtt/Zone CV - TRV woonkamer achtergevel/set' with data '{"current_heating_setpoint": 30.9}'
Debug Publishing 'set' 'current_heating_setpoint' to 'Zone CV - TRV woonkamer achtergevel'
Debug Received MQTT message on 'zigbee2mqtt/Zone CV - TRV woonkamer achtergevel/set/current_heating_setpoint' with data '30.9'
Debug Publishing 'set' 'current_heating_setpoint' to 'Zone CV - TRV woonkamer achtergevel'
Debug Received Zigbee message from 'Zone CV - TRV woonkamer achtergevel', type 'commandDataResponse', cluster 'manuSpecificTuya', data '{"data":{"data":[0,0,0,31],"type":"Buffer"},"datatype":2,"dp":2,"fn":0,"seq":1751}' from endpoint 1 with groupID 0
Info MQTT publish: topic 'zigbee2mqtt/Zone CV - TRV woonkamer achtergevel', payload '{"battery":61,"boost_heating":"OFF","boost_heating_countdown":0,"boost_heating_countdown_time_set":100,"child_lock":"LOCK","current_heating_setpoint":31,"device":{"applicationVersion":64,"dateCode":"","friendlyName":"Zone CV - TRV woonkamer achtergevel","hardwareVersion":1,"ieeeAddr":"0x84fd27fffea65d3b","manufacturerID":4098,"manufacturerName":"_TZE200_b6wax7g0","model":"BRT-100-TRV","networkAddress":13467,"powerSource":"Battery","stackVersion":0,"type":"EndDevice","zclVersion":3},"eco_mode":"OFF","eco_temperature":0,"linkquality":70,"local_temperature":21,"local_temperature_calibration":-4,"max_temperature":15,"min_temperature":5,"position":25,"preset":"manual","programming_mode":"06:00/20°C 11:30/21°C 13:30/22°C 17:30/23°C 06:00/24°C 12:00/23°C 14:30/22°C 17:30/21°C 06:00/19°C 12:30/20°C 14:30/21°C 18:30/20°C","update":{"state":"idle"},"update_available":false,"window":"CLOSED","window_detection":"OFF"}'
Debug Received Zigbee message from 'Zone CV - TRV woonkamer achtergevel', type 'commandDataResponse', cluster 'manuSpecificTuya', data '{"data":{"data":[0,0,0,31],"type":"Buffer"},"datatype":2,"dp":2,"fn":0,"seq":1752}' from endpoint 1 with groupID 0
Info MQTT publish: topic 'zigbee2mqtt/Zone CV - TRV woonkamer achtergevel', payload '{"battery":61,"boost_heating":"OFF","boost_heating_countdown":0,"boost_heating_countdown_time_set":100,"child_lock":"LOCK","current_heating_setpoint":31,"device":{"applicationVersion":64,"dateCode":"","friendlyName":"Zone CV - TRV woonkamer achtergevel","hardwareVersion":1,"ieeeAddr":"0x84fd27fffea65d3b","manufacturerID":4098,"manufacturerName":"_TZE200_b6wax7g0","model":"BRT-100-TRV","networkAddress":13467,"powerSource":"Battery","stackVersion":0,"type":"EndDevice","zclVersion":3},"eco_mode":"OFF","eco_temperature":0,"linkquality":70,"local_temperature":21,"local_temperature_calibration":-4,"max_temperature":15,"min_temperature":5,"position":25,"preset":"manual","programming_mode":"06:00/20°C 11:30/21°C 13:30/22°C 17:30/23°C 06:00/24°C 12:00/23°C 14:30/22°C 17:30/21°C 06:00/19°C 12:30/20°C 14:30/21°C 18:30/20°C","update":{"state":"idle"},"update_available":false,"window":"CLOSED","window_detection":"OFF"}'

Changing setpoint from 30 degrees to 20 degrees:

log of AI_Thermostat:

2022-01-05 17:06:16 DEBUG (MainThread) [custom_components.ai_thermostat.climate] ai_thermostat: avg outdoor temp: 6
2022-01-05 17:06:16 DEBUG (MainThread) [custom_components.ai_thermostat.climate] ai_thermostat triggerd States > Window open: False Night mode: False Mode: heat Setted: heat hasmode: False Calibration: 20.9 - send: True settemp: 20.0 curtemp: 20.1 Model: BRT-100-TRV Calibration type: 1 Winter: True TRV: Zone CV - TRV woonkamer achtergevel

log of Zigbee2MQTT:

Debug Received MQTT message on 'zigbee2mqtt/Zone CV - TRV woonkamer achtergevel/set' with data '{"current_heating_setpoint": 20.9}'
Debug Publishing 'set' 'current_heating_setpoint' to 'Zone CV - TRV woonkamer achtergevel'
Debug Received MQTT message on 'zigbee2mqtt/Zone CV - TRV woonkamer achtergevel/set/current_heating_setpoint' with data '20.9'
Debug Publishing 'set' 'current_heating_setpoint' to 'Zone CV - TRV woonkamer achtergevel'
Debug Received Zigbee message from 'Zone CV - TRV woonkamer achtergevel', type 'commandDataResponse', cluster 'manuSpecificTuya', data '{"data":{"data":[0,0,0,21],"type":"Buffer"},"datatype":2,"dp":2,"fn":0,"seq":1759}' from endpoint 1 with groupID 0
Info MQTT publish: topic 'zigbee2mqtt/Zone CV - TRV woonkamer achtergevel', payload '{"battery":61,"boost_heating":"OFF","boost_heating_countdown":0,"boost_heating_countdown_time_set":100,"child_lock":"LOCK","current_heating_setpoint":21,"device":{"applicationVersion":64,"dateCode":"","friendlyName":"Zone CV - TRV woonkamer achtergevel","hardwareVersion":1,"ieeeAddr":"0x84fd27fffea65d3b","manufacturerID":4098,"manufacturerName":"_TZE200_b6wax7g0","model":"BRT-100-TRV","networkAddress":13467,"powerSource":"Battery","stackVersion":0,"type":"EndDevice","zclVersion":3},"eco_mode":"OFF","eco_temperature":0,"linkquality":70,"local_temperature":21,"local_temperature_calibration":-4,"max_temperature":15,"min_temperature":5,"position":25,"preset":"manual","programming_mode":"06:00/20°C 11:30/21°C 13:30/22°C 17:30/23°C 06:00/24°C 12:00/23°C 14:30/22°C 17:30/21°C 06:00/19°C 12:30/20°C 14:30/21°C 18:30/20°C","update":{"state":"idle"},"update_available":false,"window":"CLOSED","window_detection":"OFF"}'
Debug Received Zigbee message from 'Zone CV - TRV woonkamer achtergevel', type 'commandDataResponse', cluster 'manuSpecificTuya', data '{"data":{"data":[0,0,0,21],"type":"Buffer"},"datatype":2,"dp":2,"fn":0,"seq":1760}' from endpoint 1 with groupID 0
Info MQTT publish: topic 'zigbee2mqtt/Zone CV - TRV woonkamer achtergevel', payload '{"battery":61,"boost_heating":"OFF","boost_heating_countdown":0,"boost_heating_countdown_time_set":100,"child_lock":"LOCK","current_heating_setpoint":21,"device":{"applicationVersion":64,"dateCode":"","friendlyName":"Zone CV - TRV woonkamer achtergevel","hardwareVersion":1,"ieeeAddr":"0x84fd27fffea65d3b","manufacturerID":4098,"manufacturerName":"_TZE200_b6wax7g0","model":"BRT-100-TRV","networkAddress":13467,"powerSource":"Battery","stackVersion":0,"type":"EndDevice","zclVersion":3},"eco_mode":"OFF","eco_temperature":0,"linkquality":70,"local_temperature":21,"local_temperature_calibration":-4,"max_temperature":15,"min_temperature":5,"position":25,"preset":"manual","programming_mode":"06:00/20°C 11:30/21°C 13:30/22°C 17:30/23°C 06:00/24°C 12:00/23°C 14:30/22°C 17:30/21°C 06:00/19°C 12:30/20°C 14:30/21°C 18:30/20°C","update":{"state":"idle"},"update_available":false,"window":"CLOSED","window_detection":"OFF"}'

In version 0.9.3:

Changing setpoint from 20 degrees to 30 degrees: Starting sistuation (left AI thermostat climate card, right TRV climate card): 0 9 3-20degrees Resulting situation (left AI thermostat climate card, right TRV climate card): 0 9 3-30degrees

log of AI_Thermostat:

2022-01-05 17:12:03 DEBUG (MainThread) [custom_components.ai_thermostat.climate] ai_thermostat: avg outdoor temp: 6
2022-01-05 17:12:03 DEBUG (MainThread) [custom_components.ai_thermostat.climate] ai_thermostat True
2022-01-05 17:12:03 DEBUG (MainThread) [custom_components.ai_thermostat.climate] ai_thermostat: running calibration
2022-01-05 17:12:03 DEBUG (MainThread) [custom_components.ai_thermostat.climate] ai_thermostat triggered states > window open: False night mode: False Mode: heat set: heat has_mode: False Calibration: -4 set_temp: 30.0 cur_temp: 20.1 Model: BRT-100-TRV Calibration type: 2 call for heat: True TRV: Zone CV - TRV woonkamer achtergevel

log of Zigbee2MQTT:

no data in log

Changing setpoint from 30 degrees to 20 degrees:

log of AI_Thermostat:

2022-01-05 17:17:07 DEBUG (MainThread) [custom_components.ai_thermostat.climate] ai_thermostat: avg outdoor temp: 6
2022-01-05 17:17:07 DEBUG (MainThread) [custom_components.ai_thermostat.climate] ai_thermostat True
2022-01-05 17:17:07 DEBUG (MainThread) [custom_components.ai_thermostat.climate] ai_thermostat triggered states > window open: False night mode: False Mode: heat set: heat has_mode: False Calibration: -4 set_temp: 30.0 cur_temp: 20.0 Model: BRT-100-TRV Calibration type: 2 call for heat: True TRV: Zone CV - TRV woonkamer achtergevel

log of Zigbee2MQTT:

no data in log

tieuwe avatar Jan 05 '22 16:01 tieuwe

I confirm. BRT-100-TRV does not work in 0.9.3 Version 0.8.6 is running

yavasilek avatar Jan 14 '22 07:01 yavasilek

@yavasilek / @tieuwe we will release the first RC for 1.0 shortly and fix any issues you might encounter with this version until the final release of 1.0.

Sorry for the inconvenience!

RubenKelevra avatar Jan 20 '22 19:01 RubenKelevra

Hoi, i have installed version RC 1.0 beta now. ~~TRV's seem to respond, so that is already better than versions between 0.8.6 and RC 1.0.~~ Will test this a bit more and give feedback later.

Update: Sorry.. found that the folder "ai_thermostat" was still in the custom_components folder after upgrading from 0.8.6 to RC 1.0. Removed the folder manually since logs showed that the data of "ai_thermostat" was loaded instead of the "better_thermostat" component. After deleting the folder, the system first would not restart.. Found that i didn't update the configuration.yaml file from platform "ai_thermostat" to "better_thermostat" (my bad) After updating the configuration.yaml i still get following errors after restarting HA:

Logger: homeassistant.components.climate
Source: custom_components/better_thermostat/climate.py:206
Integration: Climate (documentation, issues)
First occurred: 4:57:45 PM (4 occurrences)
Last logged: 4:57:45 PM

Error while setting up better_thermostat platform for climate
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform
    await asyncio.shield(task)
  File "/config/custom_components/better_thermostat/climate.py", line 109, in async_setup_platform
    BetterThermostat(
  File "/config/custom_components/better_thermostat/climate.py", line 206, in __init__
    self.version = Path("VERSION").read_text() or "unknown"
  File "/usr/local/lib/python3.9/pathlib.py", line 1266, in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
  File "/usr/local/lib/python3.9/pathlib.py", line 1252, in open
    return io.open(self, mode, buffering, encoding, errors, newline,
  File "/usr/local/lib/python3.9/pathlib.py", line 1120, in _opener
    return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: 'VERSION'

didn't check the other reported issues yet to see if i can find the solution there. if anybody wants to share how they managed to get it working, comments are welcome :D

Update2: got it; see it is already mentioned in issue #231. I'll stick with 0.8.6 and wait patiently for updates. Appreciate all the programming effort so far!

tieuwe avatar Jan 24 '22 11:01 tieuwe

This issue has been automatically marked as stale because it has not had recent activity.

stale[bot] avatar May 05 '22 23:05 stale[bot]