zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

[Problem]: Moes BRT-100-TRV (TS0601, _TZE200_b6wax7g0) position incorrect

Open fhempy opened this issue 4 years ago • 64 comments

What happened?

I'm using Moes BRT-100-TRV (TS0601, _TZE200_b6wax7g0) but unfortunately the valve position is somehow incorrect.

What I did: 9:14: set current_heating_setpoint to 21, temperature was 19, valve opened but position remains 0% ...: within that time valve position was reported 0% several times, but the radiator was already heating 9:38: position reports 25%

When using the tuya gateway I get work_state from tuya cloud which immediately changes from closed to opened. See https://developer.tuya.com/en/docs/iot/s?id=K9gf48r3k5ctd#title-1-Support%20reporting%20instructions%20to%20the%20cloud%20only

What did you expect to happen?

Position to be reported immediately after valve opens

How to reproduce it (minimal and precise)

  • set desired temperature higher than current temperature
  • check changes of position within z2m

The log shows changing desired temperature but position remains at 25%. Could it be that dp 7 reports opened (0) and closed (1)?

Zigbee2MQTT version

1.22.0

Adapter firmware version

20210708

Adapter

Sonoff Zigbee USB Dongle Plus

Debug log

debug_moes_trv.log

fhempy avatar Dec 27 '21 09:12 fhempy

Ciao ragazzi, I have the same problem too. It does not update in real time position with zigbee2mqtt version 1.22.1-1. The Home Assitant Core version is 2021.12.6. Tuya integration in hassio fails to see tubes. I needed to find the position of the valve to turn on the boiler circulator. How can it be done? I am attaching the log file. Grazie log.txt

torsetto avatar Dec 28 '21 14:12 torsetto

i have the same issue

mrybas avatar Dec 29 '21 15:12 mrybas

TV02 here, suggesting it is the same valve. I have them for 10 day and the positioning is strange. The temperature measured by valve updates only if i change the temperature calibration value. A lot of times changing setpoint temperature in manual mode by the valve wheel (or in z2m) to max and then to min does not move the position of the valve at all. I set the temp to 22°C while valve were reporting 19. Came home and on external sensor I had 26. Valve still reported 19. Changed the calibration value to random and back, valve temperature updated to 26,6 and after few seconds the valve finaly closed. I have two of those valves and the behaviour is the same.

Lipown avatar Jan 02 '22 18:01 Lipown

Same or similar issue here, I think. Wanting to control the programming using zigbee2mqtt (by setting the BRT100 to "manual" and sending the right target temperatures from my raspberry pi at the right moments). Position does not change when switching between 5 and 20 degrees. After limited testing, what does work are either (1) pressing "-" on the valve itself which then displays "OF", and (2) setting the "preset" to "programming" and then "manual" again using mqtt. In contrast to @Lipown , changing calibration value did not fix it for me.

jandot avatar Jan 03 '22 09:01 jandot

Can you please check with debug enabled if you get following message in the log: Received Zigbee message from 'TRV_Kinderzimmer', type 'commandGetData', cluster 'manuSpecificTuya', data '{"data":{"data":[1],"type":"Buffer"},"datatype":4,"dp":7,"fn":0,"status":0,"transid":31}' from endpoint 1 with groupID 0

I thought that this message indicates if the valve is opened or closed.

fhempy avatar Jan 03 '22 09:01 fhempy

I don't get that commandGetData message when running mosquitto_sub with debug flag. The position of the valve is however reported in the regular message as below:

{"battery":94,"boost_heating":"OFF","boost_heating_countdown":0,"boost_heating_countdown_time_set":300,"child_lock":"UNLOCK","current_heating_setpoint":5,"eco_mode":"ON","eco_temperature":20,"linkquality":48,"local_temperature":17,"local_temperature_calibration":1,"max_temperature":45,"min_temperature":5,"position":75,"preset":"manual","program_saturday":{"saturday":"7h:30m 20°C,  12h:0m 20°C,   14h:30m 20°C,  17h:30m 5°C "},"program_sunday":{"sunday":"  8h:0m 20°C,  12h:30m 20°C,  14h:30m 20°C,  17h:30m 5°C "},"program_weekday":{"weekday":" 7h:30m 20°C,  9h:0m 20°C,  13h:30m 20°C,  17h:30m 5°C "},"window":"CLOSED","window_detection":"OFF"}

As you can see in the message, target temperature is set to 5 degrees, but valve position remains at 75%.

jan.

jandot avatar Jan 03 '22 10:01 jandot

You need to run z2m with debug mode (Frontend - Log - Debug).

fhempy avatar Jan 03 '22 12:01 fhempy

Ah, thanks. I got the following message after command {"current_heating_setpoint":5}:

Received Zigbee message from 'MoesRadiatorValve', type 'commandGetData', cluster 'manuSpecificTuya', data '{"data":{"data":[0,0,0,5],"type":"Buffer"},"datatype":2,"dp":2,"fn":0,"status":0,"transid":76}' from endpoint 1 with groupID 0

The current state after this command:

{
    "battery": 94,
    "boost_heating": "OFF",
    "boost_heating_countdown": 0,
    "boost_heating_countdown_time_set": 300,
    "child_lock": "UNLOCK",
    "current_heating_setpoint": 5,
    "eco_mode": "ON",
    "eco_temperature": 20,
    "linkquality": 51,
    "local_temperature": 18,
    "local_temperature_calibration": -2,
    "max_temperature": 45,
    "min_temperature": 5,
    "position": 50,
    "preset": "manual",
    "program_saturday": {
        "saturday": "7h:30m 20°C,  12h:0m 20°C,   14h:30m 20°C,  17h:30m 5°C "
    },
    "program_sunday": {
        "sunday": "  8h:0m 20°C,  12h:30m 20°C,  14h:30m 20°C,  17h:30m 5°C "
    },
    "program_weekday": {
        "weekday": " 7h:30m 20°C,  9h:0m 20°C,  13h:30m 20°C,  17h:30m 5°C "
    },
    "window": "CLOSED",
    "window_detection": "OFF"
}

Although target is 5 degrees, the position stays at 50 (was 50 before sending the command).

jandot avatar Jan 03 '22 13:01 jandot

I think we should check in debug mode if we can find a proper ZigBee message which indicates if the valve is opened or closed. I have used this thermostat with tuya gateway as well and it reports opened/closed correctly. So there must be definitely some info about it.

fhempy avatar Jan 03 '22 14:01 fhempy

I only have a zigbee2mqtt running on RPi as a gateway, so no other way of interfacing at the moment. I'll keep on trying things out.

jandot avatar Jan 03 '22 15:01 jandot

It seems that switching "eco_temperature" (instead of "current_temperature_setpoint") between 5 and 20 does change the valve opening. At least I can hear the little motor turning, but the "position" does not change unfortunately. As we have old cast iron heating it will take a while to cool down, so I'll can check if it actually worked tomorrow.

jandot avatar Jan 03 '22 22:01 jandot

Hmm...seems little bit different than mine. In my case set heating temperature always changes the valve position as I can hear the motor. So the function itself works as it should, just the value position isn't updated in z2m.

fhempy avatar Jan 03 '22 23:01 fhempy

I have the same problem.

c0dr1ver avatar Jan 05 '22 17:01 c0dr1ver

I have now tested a couple of days and it does seem that the temperature setpoint does do what it is intended to do and that it is indeed just the reporting of the position that is wrong. My apologies for confusing anyone.

Jan.

On Tue, 4 Jan 2022, 00:12 Dominik, @.***> wrote:

Hmm...seems little bit different than mine. In my case set heating temperature always changes the valve position as I can hear the motor. So the function itself works as it should, just the value position isn't updated in z2m.

— Reply to this email directly, view it on GitHub https://github.com/Koenkk/zigbee2mqtt/issues/10384#issuecomment-1004418286, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAACOO5PVLGMON2BH24OP6DUUIUMVANCNFSM5K2AZIAA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>

jandot avatar Jan 05 '22 21:01 jandot

Hi, I noticed the same issue with a newly bought BRT-100-TRV (using Z2M 1.22.1 commit: c2b5229, zStack3x0). The TRV works correctly but the valve value {"position"} sometimes stops reporting its real position after a while. I have tried out many things like changing between the "preset" modes, or changing eco_temperature or setcurrent_heating_setpoint. Sometimes the valve position comes back being reported correctly but I cannot reproduce exactly the condition how to get it back working.

KaHeMu avatar Jan 06 '22 18:01 KaHeMu

Hi, I've already written somewhere when TRV delivers valve position, you have to search through topics instead of making new topics. Well it doesn't matter now.

BRT-100-TRV only supplies valve position if the touchscreen display is active. Probably the manufacturer Beca has done this on purpose to save battery, less data transport, less consumption. So in standbay mode there is also less data transport.

vladi1234 avatar Jan 06 '22 19:01 vladi1234

Hi Vladimir,

thank you for that info. Nevertheless tuya reports opened and closed via tuya gateway if I use smart life app. It's reported correctly all the time via smart life app. So there must be some info about the state of the valve, at least if it is opened or closed.

fhempy avatar Jan 06 '22 20:01 fhempy

There is a possibility for the Smart Life app to stay connected while you have the app open and keep TRV active to prevent TRV from going into standby mode.

TRV has five states, showing as a percentage: 0 - 25 - 50 - 75 - 100

vladi1234 avatar Jan 06 '22 20:01 vladi1234

Actually I can also receive the correct state (opened/closed) via Tuya Cloud API (no active Smart life app). So maybe the tuya gateway is sending some signal to prevent standby?

fhempy avatar Jan 06 '22 21:01 fhempy

You can find that documented here in the official API (valve_state): https://developer.tuya.com/en/docs/iot/s?id=K9gf48r3k5ctd#title-1-Support%20reporting%20instructions%20to%20the%20cloud%20only

fhempy avatar Jan 06 '22 21:01 fhempy