Koenkk / zigbee2mqtt

Zigbee 🐝 to MQTT bridge 🌉, get rid of your proprietary Zigbee bridges 🔨
https://www.zigbee2mqtt.io
GNU General Public License v3.0
11.12k stars 1.59k forks source link

Tuya thermostatic valve #3821

Closed Romioyar closed 2 years ago

Romioyar commented 3 years ago

Bug Report

What happened

New Tuya thermostatic valve was auto discovered in Zigbee2Mqtt 1.14.0 as Tuya curtain motor. Valve reports model as TS0601 which is occupied already in devices.js by Tuya curtain motor. https://aliexpress.ru/item/4001043738901.html?spm=a2g0s.9042311.0.0.1b6033edHXNB4c&_ga=2.27185918.2138683156.1593276537-279917533.1590225196

info  2020-06-27 17:39:11: Device '0xbc33acfffe6d821c' joined
info  2020-06-27 17:39:11: Starting interview of '0xbc33acfffe6d821c'
info  2020-06-27 17:39:11: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"device_connected","message":{"friendly_name":"0xbc33acfffe6d821c"}}'
info  2020-06-27 17:39:11: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"pairing","message":"interview_started","meta":{"friendly_name":"0xbc33acfffe6d821c"}}'
debug 2020-06-27 17:39:11: Device '0xbc33acfffe6d821c' announced itself
info  2020-06-27 17:39:11: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"device_announced","message":"announce","meta":{"friendly_name":"0xbc33acfffe6d821c"}}'
debug 2020-06-27 17:39:11: Received Zigbee message from '0xbc33acfffe6d821c', type 'readResponse', cluster 'genBasic', data '{"modelId":"TS0601"}' from endpoint 1 with groupID 0
info  2020-06-27 17:39:12: MQTT publish: topic 'homeassistant/cover/0xbc33acfffe6d821c/cover/config', payload '{"command_topic":"zigbee2mqtt/0xbc33acfffe6d821c/set","position_topic":"zigbee2mqtt/0xbc33acfffe6d821c","set_position_topic":"zigbee2mqtt/0xbc33acfffe6d821c/set","set_position_template":"{ \"position\": {{ position }} }","value_template":"{{ value_json.position }}","json_attributes_topic":"zigbee2mqtt/0xbc33acfffe6d821c","name":"0xbc33acfffe6d821c_cover","unique_id":"0xbc33acfffe6d821c_cover_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0xbc33acfffe6d821c"],"name":"0xbc33acfffe6d821c","sw_version":"Zigbee2mqtt 1.14.0","model":"Curtain motor (TS0601)","manufacturer":"TuYa"},"availability_topic":"zigbee2mqtt/bridge/state"}'
info  2020-06-27 17:39:12: MQTT publish: topic 'homeassistant/sensor/0xbc33acfffe6d821c/linkquality/config', payload '{"icon":"mdi:signal","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}","state_topic":"zigbee2mqtt/0xbc33acfffe6d821c","json_attributes_topic":"zigbee2mqtt/0xbc33acfffe6d821c","name":"0xbc33acfffe6d821c_linkquality","unique_id":"0xbc33acfffe6d821c_linkquality_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0xbc33acfffe6d821c"],"name":"0xbc33acfffe6d821c","sw_version":"Zigbee2mqtt 1.14.0","model":"Curtain motor (TS0601)","manufacturer":"TuYa"},"availability_topic":"zigbee2mqtt/bridge/state"}'
debug 2020-06-27 17:39:12: Received Zigbee message from '0xbc33acfffe6d821c', type 'readResponse', cluster 'genBasic', data '{"manufacturerName":"_TZE200_ckud7u2l"}' from endpoint 1 with groupID 0
debug 2020-06-27 17:39:12: Received Zigbee message from '0xbc33acfffe6d821c', type 'readResponse', cluster 'genBasic', data '{"powerSource":3}' from endpoint 1 with groupID 0
debug 2020-06-27 17:39:12: Received Zigbee message from '0xbc33acfffe6d821c', type 'readResponse', cluster 'genBasic', data '{"zclVersion":3}' from endpoint 1 with groupID 0
debug 2020-06-27 17:39:12: Received Zigbee message from '0xbc33acfffe6d821c', type 'readResponse', cluster 'genBasic', data '{"appVersion":83}' from endpoint 1 with groupID 0
debug 2020-06-27 17:39:12: Received Zigbee message from '0xbc33acfffe6d821c', type 'readResponse', cluster 'genBasic', data '{"stackVersion":0}' from endpoint 1 with groupID 0
debug 2020-06-27 17:39:12: Received Zigbee message from '0xbc33acfffe6d821c', type 'readResponse', cluster 'genBasic', data '{"hwVersion":1}' from endpoint 1 with groupID 0
debug 2020-06-27 17:39:13: Received Zigbee message from '0xbc33acfffe6d821c', type 'readResponse', cluster 'genBasic', data '{"dateCode":""}' from endpoint 1 with groupID 0
debug 2020-06-27 17:39:13: Received Zigbee message from '0xbc33acfffe6d821c', type 'readResponse', cluster 'genBasic', data '{}' from endpoint 1 with groupID 0
info  2020-06-27 17:39:13: Successfully interviewed '0xbc33acfffe6d821c', device has successfully been paired
info  2020-06-27 17:39:13: Device '0xbc33acfffe6d821c' is supported, identified as: TuYa Curtain motor (TS0601)

I deleted TS0601 device in devices.js and repaired and got this:

warn  2020-06-27 19:05:57: Received message from unsupported device with Zigbee model 'TS0601'
warn  2020-06-27 19:05:57: Please see: https://www.zigbee2mqtt.io/how_tos/how_to_support_new_devices.html.

Then I changed devices.js and added TS0601 as Tuya thermostatic valve and deleted curtain part, also fixed homeassistant.js for autodiscovery :

    {
        zigbeeModel: ['TS0601'],
        model: 'TS0601',
        vendor: 'Moes',
        description: 'Radiator valve with thermostat',
        supports: 'thermostat, temperature',
        fromZigbee: [
            fz.tuya_thermostat,
            fz.tuya_thermostat_on_set_data,
            fz.ignore_basic_report,
        ],
        toZigbee: [
            tz.tuya_thermostat_child_lock,
            tz.tuya_thermostat_window_detection,
            tz.tuya_thermostat_valve_detection,
            tz.tuya_thermostat_current_heating_setpoint,
            tz.tuya_thermostat_system_mode,
            tz.tuya_thermostat_auto_lock,
            tz.tuya_thermostat_calibration,
            tz.tuya_thermostat_min_temp,
            tz.tuya_thermostat_max_temp,
            tz.tuya_thermostat_boost_time,
            tz.tuya_thermostat_comfort_temp,
            tz.tuya_thermostat_eco_temp,
            tz.tuya_thermostat_force,
        ],

    },

And thermostatic valve works correctly after this. I bought 4 of them so could you please fix so it is correctly recognized out of the box.

Thanks!

What did you expect to happen

Valve autodiscovered as Tuya thermostatic valve which is actually similar to Moes.

How to reproduce it (minimal and precise)

Start pairing thermostatic valve.

Debug Info

Zigbee2mqtt version: 1.14.0 Adapter hardware: CC2538 Adapter firmware version: zStack30x

Koenkk commented 3 years ago

Can you share the data/database.db entry of this device?

Romioyar commented 3 years ago

Hi, sure here are entries for 4 different devices

{"id":48,"type":"EndDevice","ieeeAddr":"0xbc33acfffe6d807b","nwkAddr":2412,"manufId":4098,"manufName":"_TZE200_ckud7u2l","powerSource":"Battery","modelId":"TS0601","epList":[1],"endpoints":{"1":{"profId":260,"epId":1,"devId":81,"inClusterList":[0,4,5,61184],"outClusterList":[25,10],"clusters":{"genBasic":{"attributes":{"modelId":"TS0601","manufacturerName":"_TZE200_ckud7u2l","powerSource":3,"zclVersion":3,"appVersion":83,"stackVersion":0,"hwVersion":1,"dateCode":""}}},"binds":[]}},"appVersion":83,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"meta":{},"lastSeen":1593341216187}
{"id":49,"type":"EndDevice","ieeeAddr":"0xbc33acfffe6d821c","nwkAddr":40345,"manufId":4098,"manufName":"_TZE200_ckud7u2l","powerSource":"Battery","modelId":"TS0601","epList":[1],"endpoints":{"1":{"profId":260,"epId":1,"devId":81,"inClusterList":[0,4,5,61184],"outClusterList":[25,10],"clusters":{"genBasic":{"attributes":{"modelId":"TS0601","manufacturerName":"_TZE200_ckud7u2l","powerSource":3,"zclVersion":3,"appVersion":83,"stackVersion":0,"hwVersion":1,"dateCode":""}}},"binds":[]}},"appVersion":83,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"meta":{},"lastSeen":1593274610200}
{"id":50,"type":"EndDevice","ieeeAddr":"0xbc33acfffe6557d3","nwkAddr":55948,"manufId":4098,"manufName":"_TZE200_ckud7u2l","powerSource":"Battery","modelId":"TS0601","epList":[1],"endpoints":{"1":{"profId":260,"epId":1,"devId":81,"inClusterList":[0,4,5,61184],"outClusterList":[25,10],"clusters":{"genBasic":{"attributes":{"modelId":"TS0601","manufacturerName":"_TZE200_ckud7u2l","powerSource":3,"zclVersion":3,"appVersion":83,"stackVersion":0,"hwVersion":1,"dateCode":""}}},"binds":[]}},"appVersion":83,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"meta":{},"lastSeen":1593342591143}
{"id":51,"type":"EndDevice","ieeeAddr":"0xbc33acfffe6d8231","nwkAddr":51668,"manufId":4098,"manufName":"_TZE200_ckud7u2l","powerSource":"Battery","modelId":"TS0601","epList":[1],"endpoints":{"1":{"profId":260,"epId":1,"devId":81,"inClusterList":[0,4,5,61184],"outClusterList":[25,10],"clusters":{"genBasic":{"attributes":{"modelId":"TS0601","manufacturerName":"_TZE200_ckud7u2l","powerSource":3,"zclVersion":3,"appVersion":83,"stackVersion":0,"hwVersion":1,"dateCode":""}}},"binds":[]}},"appVersion":83,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"meta":{},"lastSeen":1593342645599}
Koenkk commented 3 years ago

Thanks, asked for some help in https://github.com/Koenkk/zigbee2mqtt/issues/2778#issuecomment-650788198

fr34kyn01535 commented 3 years ago

Same issue here:

{"id":5,"type":"EndDevice","ieeeAddr":"0xbc33acfffe6eb997","nwkAddr":8048,"manufId":4098,"manufName":"_TZE200_ckud7u2l","powerSource":"Battery","modelId":"TS0601","epList":[1],"endpoints":{"1":{"profId":260,"epId":1,"devId":81,"inClusterList":[0,4,5,61184],"outClusterList":[25,10],"clusters":{"genBasic":{"attributes":{"modelId":"TS0601","manufacturerName":"_TZE200_ckud7u2l","powerSource":3,"zclVersion":3,"appVersion":83,"stackVersion":0,"hwVersion":1,"dateCode":""}}},"binds":[]}},"appVersion":83,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"meta":{},"lastSeen":1593875683098}
{"id":6,"type":"EndDevice","ieeeAddr":"0xbc33acfffe6d7fef","nwkAddr":2904,"manufId":4098,"manufName":"_TZE200_ckud7u2l","powerSource":"Battery","modelId":"TS0601","epList":[1],"endpoints":{"1":{"profId":260,"epId":1,"devId":81,"inClusterList":[0,4,5,61184],"outClusterList":[25,10],"clusters":{"genBasic":{"attributes":{"modelId":"TS0601","manufacturerName":"_TZE200_ckud7u2l","powerSource":3,"zclVersion":3,"appVersion":83,"stackVersion":0,"hwVersion":1,"dateCode":""}}},"binds":[]}},"appVersion":83,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"meta":{},"lastSeen":1593875621151}
{"id":7,"type":"EndDevice","ieeeAddr":"0xbc33acfffe6d80cf","nwkAddr":29801,"manufId":4098,"manufName":"_TZE200_ckud7u2l","powerSource":"Battery","modelId":"TS0601","epList":[1],"endpoints":{"1":{"profId":260,"epId":1,"devId":81,"inClusterList":[0,4,5,61184],"outClusterList":[25,10],"clusters":{"genBasic":{"attributes":{"modelId":"TS0601","manufacturerName":"_TZE200_ckud7u2l","powerSource":3,"zclVersion":3,"appVersion":83,"stackVersion":0,"hwVersion":1,"dateCode":""}}},"binds":[]}},"appVersion":83,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"meta":{},"lastSeen":1593876100210}
{"id":8,"type":"EndDevice","ieeeAddr":"0xbc33acfffe6ec1cc","nwkAddr":38004,"manufId":4098,"manufName":"_TZE200_ckud7u2l","powerSource":"Battery","modelId":"TS0601","epList":[1],"endpoints":{"1":{"profId":260,"epId":1,"devId":81,"inClusterList":[0,4,5,61184],"outClusterList":[25,10],"clusters":{"genBasic":{"attributes":{"modelId":"TS0601","manufacturerName":"_TZE200_ckud7u2l","powerSource":3,"zclVersion":3,"appVersion":83,"stackVersion":0,"hwVersion":1,"dateCode":""}}},"binds":[]}},"appVersion":83,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"meta":{},"lastSeen":1593876848311}
tux0n commented 3 years ago

Thanks for solution. How did you fix auto Discovery?

'TS0601': [
    cfg.lock_child_lock,
    cfg.switch_window_detection,
    cfg.switch_valve_detection,
    thermostat(5, 30, 'current_heating_setpoint', 0.5),
    cfg.sensor_battery,
]

something like this? or more options?

Koenkk commented 3 years ago

Added support for this device out-of-the-box now.

Changes will be available in the latest dev branch in a few hours (https://www.zigbee2mqtt.io/how_tos/how-to-switch-to-dev-branch.html)

damianpasek commented 3 years ago

@Koenkk It there any ETA when this will be in the master branch?

Koenkk commented 3 years ago

@damianpasek it's in the just release zigbee2mqtt 1.14.2, please let me know if it works there.

Sthopeless commented 3 years ago

@Koenkk they are now correctly added to Zigbee2MQTT but at least on Hassio with the addon they are not working properly.

on printscreen is what's added from it to my HA, Valve detection and Window detection don't seen to do anything Screenshot from 2020-07-23 13-48-01

And here on the operation mode I can only set correctly Auto and whenever I try to set Heat or Off the device goes into away mode Screenshot from 2020-07-23 13-50-41

I'm currently using a CC2531 usb stick with 1.2 stack

Koenkk commented 3 years ago

@Sthopeless good that it is discovered correctly now, I'm not sure if this has been implemented/susposed to work, hopefully others from this thread can help (I don't have the device + original gateway).

cadavre commented 3 years ago

Confirmed that valve was discovered correctly and integrated into HA with no (or maybe little?) problems.

Right after pairing it is discovered as "cover" (browsed via z2mqtthelper), but after restarting z2m – it shows valve correctly and maked HA integration proper.

I can confirm what @Sthopeless said – modes are not working best, but I guess it's more to do with converters than z2m itself.

Tontze commented 3 years ago

https://www.moeshouse.com/collections/tuya-zigbee-switch/products/tuya-zigbee-push-light-switch-zigbee-hub-required-smart-home-automation-wireless-remote-control-work-with-tuya-zigbee-hub-only

This switch is also reported as TS0601

galzil commented 3 years ago

Same light switch as @Tontze which is supposed to be supported. Now identified as: TuYa Curtain motor (TS0601)

dedors commented 3 years ago

I got the same thermostat valve from aliexpress. Mine has a Moes branded box with model number HY368. Maybe add that on the wiki page too?

I had to troubles joining the network. Joining the network is explained to work after "short press home (turn on), long press home (enter settings), go to setting 5 (wifi logo), press home (only wifi now showing), long press home (wifi now blinking). I then pressed home every few seconds as it seems to timeout pretty fast. But it never joined the network.

Unscrew/rescrew the battery cover suddenly did the trick, it just joined, even I tried that a few times before.

RaveGun commented 3 years ago

Hi,

I also got the two MOES and installed them a few days apart. Both where after the pairing detected as Covers at the beginning and a Z2M restart updated the configuration and I had to delete the cover RETAINED topic.

The one issue I have is that the devices an "AUTO", a "MANUAL" and a "HOLIDAY" mode and if I setup the temperature manually it reports the system mode as "manual" and this generates a log into the HA.

I guess this also have something to do with the available modes in the HA for the Climate/MQTT component.

The following configuration mode is sent: homeassistant/climate/0x842e14fffef6d77c/climate/config

{
    "min_temp": "5",
    "max_temp": "30",
    "modes": [
        "off",
        "auto",
        "heat"
    ],
    "mode_state_topic": "zigbee2mqtt/0x842e14fffef15510",
    "mode_state_template": "{{ value_json.system_mode }}",
    "mode_command_topic": "zigbee2mqtt/0x842e14fffef15510/set/system_mode",
    "current_temperature_topic": "zigbee2mqtt/0x842e14fffef15510",
    "current_temperature_template": "{{ value_json.local_temperature }}",
    "temperature_state_topic": "zigbee2mqtt/0x842e14fffef15510",
    "temperature_state_template": "{{ value_json.current_heating_setpoint }}",
    "temperature_command_topic": "zigbee2mqtt/0x842e14fffef15510/set/current_heating_setpoint",
    "temp_step": 0.5,
    "action_topic": "zigbee2mqtt/0x842e14fffef15510",
    "action_template": "{% set values = {'idle':'off','heat':'heating','cool':'cooling','fan only':'fan'} %}{{ values[value_json.running_state] }}",
    "json_attributes_topic": "zigbee2mqtt/0x842e14fffef15510",
    "name": "0x842e14fffef15510_climate",
    "unique_id": "0x842e14fffef15510_climate_zigbee2mqtt",
    "device": {
        "identifiers": [
            "zigbee2mqtt_0x842e14fffef15510"
        ],
        "name": "0x842e14fffef15510",
        "sw_version": "Zigbee2mqtt 1.14.2",
        "model": "Radiator valve with thermostat (TS0601_thermostat)",
        "manufacturer": "TuYa"
    },
    "availability_topic": "zigbee2mqtt/bridge/state"
}

There seems to be also a firmware difference between the two because one sends also the "auto" configuration for the weekdays and holidays through the main topic and the other one doesn't.

Bart-1992 commented 3 years ago

Hi guys,

I also have 6 moes branded TRV (TS0601 thermostat ), they all first appeared as curtain motor, but eventually got them to show up as TRV in HA.

I have some issues with the mode settings as well.

I found out that it's not possible to turn the valves into 'manual' mode unfortunately. Auto mode = weekly schedule mode on TRV itself, off = holiday mode, and heating mode immediately turns into off mode in HA?

To put/hold the TRV in manual mode you have to adjust it on the TRV itself, and only change the temperature trough HA ( so don't do anything with the modes).

Battery status is also not working for all 6 off the valves. Valve detection is not doing anything? Open window mode is working for me.

mgrom commented 3 years ago

Hey, I'm currently working on making some changes to this thermostat implementation. One of them is using Presets instead of Modes. List of modes is fixed set in home assistant so it's not good to use them. Presets are open so you can put there whatever you want. There will be presets:

Bart-1992 commented 3 years ago

@mgrom Nice work!!

This would be a perfect solution to put the TRV remotely into manual mode.

mgrom commented 3 years ago

Guys,

  1. Does current configuration let you to change open window detection parameter through mqtt/homeassistant?
  2. Is local_temperature being updated regulary, or it skips some steps. For example change from 26 directly to 24.5, instead of changes 26->25.5->25->24.5

regarding point 2: mine device was sending temp updates infrequently and skipping some of steps in between like in mine example. So, I was looking for solution, how to force device to make it more often. I've found a way to do that, just send: zigbee2mqtt/FRIENDLY_NAME/set/local_temperature_calibration {YOUR_CURRENT_CALIBRATION_VALUE} and thermostat will answer with current temperature and confirmation of local_temperature_calibration "change" :)

Bart-1992 commented 3 years ago

Hi, @mgrom answer to your questions:

1) There is an option in the current config to turn on/off window detection, however im not able to test the functionality at the moment.

2) all of my 6 TRVS are updating at ireggular frequency unfortunately. How did you fixxed it? With an automation/script sendint this mqtt message?

Curious when your changes will be implemented in the stable version of zigbee2mqtt.

Thanks,

mgrom commented 3 years ago

@Bart-1992 Thanks for info. Window detection will work in next release.

I've made simple automation:

trv_automations:
  automation:
    - id: bedroom_trv_get_temp
      alias: Bedroom TRV get current temp
      trigger: 
        - platform: time_pattern
          minutes: "/2"
      action:
        - service: mqtt.publish
          data_template:
            topic: 'zigbee2mqtt/bedroom_moes_trv/set/local_temperature_calibration'
            payload: '0'

Just change minutes to anything fits you. The same with payload. Finally change topic and make action to run for all your trvs

No idea when my changes will be implemented :) sorry, but I'm just a gust here :D

One more question:

Bart-1992 commented 3 years ago

Hi @mgrom,

I have not tested the schedule mode on the TRV itself, i'm also not planning to use it. There probably is a cheap bad functioning RTC module inside.... if there even is a RTC module allready....

I've implemented your automation, it's working perfectly ;)!

However, I have some issues, check the log :

zigbee2mqtt:info 2020-08-12 11:59:43: MQTT publish: topic 'zigbee2mqtt/0x842e14fffef6ea3e', payload '{"boost_time":300,"linkquality":36,"force":"normal","comfort_temperature":20,"eco_temperature":15,"position":0,"week":"5+2","workdays":[{"hour":6,"minute":0,"temperature":20},{"hour":8,"minute":0,"temperature":15},{"hour":11,"minute":30,"temperature":15},{"hour":12,"minute":30,"temperature":15},{"hour":17,"minute":30,"temperature":20},{"hour":22,"minute":0,"temperature":15}],"holidays":[{"hour":6,"minute":0,"temperature":20},{"hour":8,"minute":0,"temperature":15},{"hour":11,"minute":30,"temperature":15},{"hour":12,"minute":30,"temperature":15},{"hour":17,"minute":30,"temperature":20},{"hour":22,"minute":0,"temperature":15}],"preset_temperature":16,"auto_lock":"MANUAL","preset":1,"current_heating_setpoint":"20.0","system_mode":"manual","local_temperature":"28.0","min_temperature":5,"max_temperature":35,"child_lock":"UNLOCKED","local_temperature_calibration":"0.0","window_detection_params":{"valve":"OFF","temperature":5,"minutes":10}}' zigbee-herdsman-converters:siterwell_gs361: NOT RECOGNIZED DP #366 with data {"type":"Buffer","data":[1]}

It gives a strange error about siterwell GS361 conversion? I'm not that into Zigbee2Mqtt's internal functioning, but it looks like it's not recognizing it properly? Do you know what it means?

Thanks, BR, Bart

mgrom commented 3 years ago

@Bart-1992 can you give me some previous messages? I didn't get dp 366 so far. Is it often?

about automation, I've found out that it's enough to call this command between 10 and 20 minutes - depends on environment (air conditioning etc), maybe during winter it will be better to call it more often to react on open windows.

Bart-1992 commented 3 years ago

@mgrom

Check the log :

It appears pretty often as you can see. In this log it's only appearing on the same TRV(0x842e14fffefd9bbe), but in my previous post it was another TRV (0x842e14fffef6ea3e)

Indeed maybe 2 minutes is a bit too often, don't know if the battery will drain faster?

zigbee2mqtt:info 2020-08-12 12:54:08: MQTT publish: topic 'zigbee2mqtt/0x842e14fffefd9bbe', payload '{"window_detection_params":{"valve":"OFF","temperature":5,"minutes":10},"linkquality":39,"boost_time":300,"force":"normal","comfort_temperature":20,"eco_temperature":15,"position":0,"week":"5+2","workdays":[{"hour":6,"minute":0,"temperature":20},{"hour":8,"minute":0,"temperature":15},{"hour":11,"minute":30,"temperature":15},{"hour":12,"minute":30,"temperature":15},{"hour":17,"minute":30,"temperature":20},{"hour":22,"minute":0,"temperature":15}],"holidays":[{"hour":6,"minute":0,"temperature":20},{"hour":136,"minute":0,"temperature":15},{"hour":11,"minute":30,"temperature":15},{"hour":12,"minute":30,"temperature":15},{"hour":17,"minute":30,"temperature":20},{"hour":22,"minute":0,"temperature":15}],"preset_temperature":15,"auto_lock":"MANUAL","preset":1,"current_heating_setpoint":"17.5","system_mode":"manual","local_temperature":"29.0","min_temperature":5,"max_temperature":35,"child_lock":"UNLOCKED","local_temperature_calibration":"0.0"}' zigbee-herdsman-converters:siterwell_gs361: NOT RECOGNIZED DP #366 with data {"type":"Buffer","data":[1]} zigbee2mqtt:info 2020-08-12 12:54:12: MQTT publish: topic 'zigbee2mqtt/0x842e14fffeef7023', payload '{"window_detection_params":{"valve":"OFF","temperature":5,"minutes":10},"linkquality":39,"boost_time":300,"force":"normal","comfort_temperature":20,"eco_temperature":15,"position":0,"week":"5+2","workdays":[{"hour":6,"minute":0,"temperature":20},{"hour":8,"minute":0,"temperature":15},{"hour":11,"minute":30,"temperature":15},{"hour":12,"minute":30,"temperature":15},{"hour":17,"minute":30,"temperature":20},{"hour":22,"minute":0,"temperature":15}],"holidays":[{"hour":6,"minute":0,"temperature":20},{"hour":8,"minute":0,"temperature":15},{"hour":11,"minute":30,"temperature":15},{"hour":12,"minute":30,"temperature":15},{"hour":17,"minute":30,"temperature":20},{"hour":150,"minute":0,"temperature":15}],"preset_temperature":15,"auto_lock":"MANUAL","preset":1,"min_temperature":5,"max_temperature":35,"current_heating_setpoint":"19.5","local_temperature":"29.5","system_mode":"manual","child_lock":"UNLOCKED","local_temperature_calibration":"0.0"}' zigbee2mqtt:info 2020-08-12 12:54:22: MQTT publish: topic 'zigbee2mqtt/0x00158d00044c76b6', payload '{"battery":100,"voltage":3045,"illuminance":21,"illuminance_lux":21,"linkquality":39,"occupancy":false}' zigbee2mqtt:info 2020-08-12 12:55:33: MQTT publish: topic 'zigbee2mqtt/0x00158d000313fefd', payload '{"battery":100,"voltage":3025,"illuminance":1000,"illuminance_lux":1000,"linkquality":39,"occupancy":false}' zigbee2mqtt:info 2020-08-12 12:55:49: MQTT publish: topic 'zigbee2mqtt/0x00158d000313fefd', payload '{"battery":100,"voltage":3025,"illuminance":1000,"illuminance_lux":1000,"linkquality":39,"occupancy":false}' zigbee2mqtt:info 2020-08-12 12:55:49: MQTT publish: topic 'zigbee2mqtt/0x00158d000313fefd', payload '{"battery":100,"voltage":3025,"illuminance":1000,"illuminance_lux":1000,"linkquality":39,"occupancy":true}' zigbee2mqtt:info 2020-08-12 12:55:57: MQTT publish: topic 'zigbee2mqtt/0x00158d0004201077', payload '{"battery":100,"voltage":3055,"illuminance":625,"illuminance_lux":625,"linkquality":18,"occupancy":false}' zigbee2mqtt:info 2020-08-12 12:55:57: MQTT publish: topic 'zigbee2mqtt/0x00158d0004201077', payload '{"battery":100,"voltage":3055,"illuminance":625,"illuminance_lux":625,"linkquality":21,"occupancy":true}' zigbee2mqtt:info 2020-08-12 12:56:00: MQTT publish: topic 'zigbee2mqtt/0x842e14fffef30ccf', payload '{"min_temperature":5,"linkquality":63,"max_temperature":35,"current_heating_setpoint":"20.0","local_temperature":"30.5","system_mode":"auto","child_lock":"UNLOCKED","local_temperature_calibration":"0.0","window_detection_params":{"valve":"OFF","temperature":5,"minutes":10},"boost_time":300,"force":"normal","comfort_temperature":20,"eco_temperature":15,"position":0,"week":"5+2","workdays":[{"hour":6,"minute":0,"temperature":20},{"hour":8,"minute":0,"temperature":15},{"hour":11,"minute":30,"temperature":15},{"hour":12,"minute":30,"temperature":15},{"hour":17,"minute":30,"temperature":20},{"hour":22,"minute":0,"temperature":15}],"holidays":[{"hour":6,"minute":0,"temperature":20},{"hour":8,"minute":0,"temperature":15},{"hour":11,"minute":30,"temperature":15},{"hour":12,"minute":30,"temperature":15},{"hour":17,"minute":30,"temperature":20},{"hour":22,"minute":0,"temperature":15}],"preset_temperature":15,"auto_lock":"MANUAL","preset":1}' zigbee2mqtt:info 2020-08-12 12:56:00: MQTT publish: topic 'zigbee2mqtt/0x842e14fffef30ccf', payload '{"min_temperature":5,"linkquality":63,"max_temperature":35,"current_heating_setpoint":"20.0","local_temperature":"30.5","system_mode":"auto","child_lock":"UNLOCKED","local_temperature_calibration":"0.0","window_detection_params":{"valve":"OFF","temperature":5,"minutes":10},"boost_time":300,"force":"normal","comfort_temperature":20,"eco_temperature":15,"position":0,"week":"5+2","workdays":[{"hour":6,"minute":0,"temperature":20},{"hour":8,"minute":0,"temperature":15},{"hour":11,"minute":30,"temperature":15},{"hour":12,"minute":30,"temperature":15},{"hour":17,"minute":30,"temperature":20},{"hour":22,"minute":0,"temperature":15}],"holidays":[{"hour":6,"minute":0,"temperature":20},{"hour":8,"minute":0,"temperature":15},{"hour":11,"minute":30,"temperature":15},{"hour":12,"minute":30,"temperature":15},{"hour":17,"minute":30,"temperature":20},{"hour":22,"minute":0,"temperature":15}],"preset_temperature":15,"auto_lock":"MANUAL","preset":1}' zigbee2mqtt:info 2020-08-12 12:56:01: MQTT publish: topic 'zigbee2mqtt/0x842e14fffef30cd9', payload '{"running":true,"linkquality":55,"position":0,"min_temperature":5,"max_temperature":35,"current_heating_setpoint":"20.0","local_temperature":"27.5","system_mode":"manual","child_lock":"UNLOCKED","local_temperature_calibration":"0.0","window_detection_params":{"valve":"OFF","temperature":5,"minutes":10},"boost_time":300,"force":"normal","comfort_temperature":20,"eco_temperature":15,"week":"5+2","workdays":[{"hour":6,"minute":0,"temperature":20},{"hour":8,"minute":0,"temperature":15},{"hour":12,"minute":30,"temperature":15},{"hour":12,"minute":32,"temperature":15},{"hour":17,"minute":30,"temperature":20},{"hour":22,"minute":0,"temperature":15}],"holidays":[{"hour":134,"minute":0,"temperature":20},{"hour":8,"minute":0,"temperature":15},{"hour":11,"minute":30,"temperature":15},{"hour":12,"minute":30,"temperature":15},{"hour":17,"minute":30,"temperature":20},{"hour":22,"minute":0,"temperature":15}],"preset_temperature":15,"auto_lock":"MANUAL","preset":1}' zigbee2mqtt:info 2020-08-12 12:56:01: MQTT publish: topic 'zigbee2mqtt/0x842e14fffef30cd9', payload '{"running":true,"linkquality":55,"position":0,"min_temperature":5,"max_temperature":35,"current_heating_setpoint":"20.0","local_temperature":"27.5","system_mode":"manual","child_lock":"UNLOCKED","local_temperature_calibration":"0.0","window_detection_params":{"valve":"OFF","temperature":5,"minutes":10},"boost_time":300,"force":"normal","comfort_temperature":20,"eco_temperature":15,"week":"5+2","workdays":[{"hour":6,"minute":0,"temperature":20},{"hour":8,"minute":0,"temperature":15},{"hour":12,"minute":30,"temperature":15},{"hour":12,"minute":32,"temperature":15},{"hour":17,"minute":30,"temperature":20},{"hour":22,"minute":0,"temperature":15}],"holidays":[{"hour":134,"minute":0,"temperature":20},{"hour":8,"minute":0,"temperature":15},{"hour":11,"minute":30,"temperature":15},{"hour":12,"minute":30,"temperature":15},{"hour":17,"minute":30,"temperature":20},{"hour":22,"minute":0,"temperature":15}],"preset_temperature":15,"auto_lock":"MANUAL","preset":1}' zigbee2mqtt:info 2020-08-12 12:56:01: MQTT publish: topic 'zigbee2mqtt/0x842e14fffef30b8e', payload '{"running":false,"linkquality":39,"position":100,"current_heating_setpoint":"31.0","local_temperature":"27.0","system_mode":"manual","preset_temperature":15,"min_temperature":5,"max_temperature":35,"child_lock":"UNLOCKED","local_temperature_calibration":"0.0","window_detection_params":{"valve":"OFF","temperature":5,"minutes":10},"boost_time":300,"force":"normal","comfort_temperature":20,"eco_temperature":15,"week":"5+2","workdays":[{"hour":6,"minute":0,"temperature":20},{"hour":8,"minute":0,"temperature":15},{"hour":11,"minute":30,"temperature":15},{"hour":12,"minute":30,"temperature":15},{"hour":17,"minute":30,"temperature":20},{"hour":22,"minute":0,"temperature":15}],"holidays":[{"hour":6,"minute":0,"temperature":20},{"hour":8,"minute":0,"temperature":15},{"hour":11,"minute":30,"temperature":15},{"hour":12,"minute":30,"temperature":15},{"hour":17,"minute":30,"temperature":20},{"hour":22,"minute":0,"temperature":15}],"auto_lock":"MANUAL","preset":1}' zigbee2mqtt:info 2020-08-12 12:56:01: MQTT publish: topic 'zigbee2mqtt/0x842e14fffef30b8e', payload '{"running":false,"linkquality":39,"position":100,"current_heating_setpoint":"31.0","local_temperature":"27.0","system_mode":"manual","preset_temperature":15,"min_temperature":5,"max_temperature":35,"child_lock":"UNLOCKED","local_temperature_calibration":"0.0","window_detection_params":{"valve":"OFF","temperature":5,"minutes":10},"boost_time":300,"force":"normal","comfort_temperature":20,"eco_temperature":15,"week":"5+2","workdays":[{"hour":6,"minute":0,"temperature":20},{"hour":8,"minute":0,"temperature":15},{"hour":11,"minute":30,"temperature":15},{"hour":12,"minute":30,"temperature":15},{"hour":17,"minute":30,"temperature":20},{"hour":22,"minute":0,"temperature":15}],"holidays":[{"hour":6,"minute":0,"temperature":20},{"hour":8,"minute":0,"temperature":15},{"hour":11,"minute":30,"temperature":15},{"hour":12,"minute":30,"temperature":15},{"hour":17,"minute":30,"temperature":20},{"hour":22,"minute":0,"temperature":15}],"auto_lock":"MANUAL","preset":1}' zigbee2mqtt:info 2020-08-12 12:56:02: MQTT publish: topic 'zigbee2mqtt/0x842e14fffef6ea3e', payload '{"boost_time":300,"linkquality":39,"force":"normal","comfort_temperature":20,"eco_temperature":15,"position":0,"week":"5+2","workdays":[{"hour":6,"minute":0,"temperature":20},{"hour":8,"minute":0,"temperature":15},{"hour":11,"minute":30,"temperature":15},{"hour":12,"minute":30,"temperature":15},{"hour":17,"minute":30,"temperature":20},{"hour":22,"minute":0,"temperature":15}],"holidays":[{"hour":6,"minute":0,"temperature":20},{"hour":8,"minute":0,"temperature":15},{"hour":11,"minute":30,"temperature":15},{"hour":12,"minute":30,"temperature":15},{"hour":17,"minute":30,"temperature":20},{"hour":22,"minute":0,"temperature":15}],"preset_temperature":16,"auto_lock":"MANUAL","preset":1,"current_heating_setpoint":"20.0","system_mode":"manual","local_temperature":"28.0","min_temperature":5,"max_temperature":35,"child_lock":"UNLOCKED","local_temperature_calibration":"0.0","window_detection_params":{"valve":"OFF","temperature":5,"minutes":10}}' zigbee2mqtt:info 2020-08-12 12:56:02: MQTT publish: topic 'zigbee2mqtt/0x842e14fffef6ea3e', payload '{"boost_time":300,"linkquality":39,"force":"normal","comfort_temperature":20,"eco_temperature":15,"position":0,"week":"5+2","workdays":[{"hour":6,"minute":0,"temperature":20},{"hour":8,"minute":0,"temperature":15},{"hour":11,"minute":30,"temperature":15},{"hour":12,"minute":30,"temperature":15},{"hour":17,"minute":30,"temperature":20},{"hour":22,"minute":0,"temperature":15}],"holidays":[{"hour":6,"minute":0,"temperature":20},{"hour":8,"minute":0,"temperature":15},{"hour":11,"minute":30,"temperature":15},{"hour":12,"minute":30,"temperature":15},{"hour":17,"minute":30,"temperature":20},{"hour":22,"minute":0,"temperature":15}],"preset_temperature":16,"auto_lock":"MANUAL","preset":1,"current_heating_setpoint":"20.0","system_mode":"manual","local_temperature":"28.0","min_temperature":5,"max_temperature":35,"child_lock":"UNLOCKED","local_temperature_calibration":"0.0","window_detection_params":{"valve":"OFF","temperature":5,"minutes":10}}' zigbee2mqtt:info 2020-08-12 12:56:03: MQTT publish: topic 'zigbee2mqtt/0x00158d00045193ca', payload '{"illuminance":87,"illuminance_lux":87,"linkquality":86,"occupancy":false,"battery":100,"voltage":3025}' zigbee2mqtt:info 2020-08-12 12:56:03: MQTT publish: topic 'zigbee2mqtt/0x00158d00045193ca', payload '{"illuminance":87,"illuminance_lux":87,"linkquality":84,"occupancy":true,"battery":100,"voltage":3025}' zigbee2mqtt:info 2020-08-12 12:56:05: MQTT publish: topic 'zigbee2mqtt/0x842e14fffeef7023', payload '{"window_detection_params":{"valve":"OFF","temperature":5,"minutes":10},"linkquality":39,"boost_time":300,"force":"normal","comfort_temperature":20,"eco_temperature":15,"position":0,"week":"5+2","workdays":[{"hour":6,"minute":0,"temperature":20},{"hour":8,"minute":0,"temperature":15},{"hour":11,"minute":30,"temperature":15},{"hour":12,"minute":30,"temperature":15},{"hour":17,"minute":30,"temperature":20},{"hour":22,"minute":0,"temperature":15}],"holidays":[{"hour":6,"minute":0,"temperature":20},{"hour":8,"minute":0,"temperature":15},{"hour":11,"minute":30,"temperature":15},{"hour":12,"minute":30,"temperature":15},{"hour":17,"minute":30,"temperature":20},{"hour":150,"minute":0,"temperature":15}],"preset_temperature":15,"auto_lock":"MANUAL","preset":1,"min_temperature":5,"max_temperature":35,"current_heating_setpoint":"19.5","local_temperature":"29.5","system_mode":"manual","child_lock":"UNLOCKED","local_temperature_calibration":"0.0"}' zigbee2mqtt:info 2020-08-12 12:56:05: MQTT publish: topic 'zigbee2mqtt/0x842e14fffeef7023', payload '{"window_detection_params":{"valve":"OFF","temperature":5,"minutes":10},"linkquality":39,"boost_time":300,"force":"normal","comfort_temperature":20,"eco_temperature":15,"position":0,"week":"5+2","workdays":[{"hour":6,"minute":0,"temperature":20},{"hour":8,"minute":0,"temperature":15},{"hour":11,"minute":30,"temperature":15},{"hour":12,"minute":30,"temperature":15},{"hour":17,"minute":30,"temperature":20},{"hour":22,"minute":0,"temperature":15}],"holidays":[{"hour":6,"minute":0,"temperature":20},{"hour":8,"minute":0,"temperature":15},{"hour":11,"minute":30,"temperature":15},{"hour":12,"minute":30,"temperature":15},{"hour":17,"minute":30,"temperature":20},{"hour":150,"minute":0,"temperature":15}],"preset_temperature":15,"auto_lock":"MANUAL","preset":1,"min_temperature":5,"max_temperature":35,"current_heating_setpoint":"19.5","local_temperature":"29.5","system_mode":"manual","child_lock":"UNLOCKED","local_temperature_calibration":"0.0"}' zigbee2mqtt:info 2020-08-12 12:56:05: MQTT publish: topic 'zigbee2mqtt/0x842e14fffefd9bbe', payload '{"window_detection_params":{"valve":"OFF","temperature":5,"minutes":10},"linkquality":39,"boost_time":300,"force":"normal","comfort_temperature":20,"eco_temperature":15,"position":0,"week":"5+2","workdays":[{"hour":6,"minute":0,"temperature":20},{"hour":8,"minute":0,"temperature":15},{"hour":11,"minute":30,"temperature":15},{"hour":12,"minute":30,"temperature":15},{"hour":17,"minute":30,"temperature":20},{"hour":22,"minute":0,"temperature":15}],"holidays":[{"hour":6,"minute":0,"temperature":20},{"hour":136,"minute":0,"temperature":15},{"hour":11,"minute":30,"temperature":15},{"hour":12,"minute":30,"temperature":15},{"hour":17,"minute":30,"temperature":20},{"hour":22,"minute":0,"temperature":15}],"preset_temperature":15,"auto_lock":"MANUAL","preset":1,"current_heating_setpoint":"17.5","system_mode":"manual","local_temperature":"29.0","min_temperature":5,"max_temperature":35,"child_lock":"UNLOCKED","local_temperature_calibration":"0.0"}' zigbee2mqtt:info 2020-08-12 12:56:05: MQTT publish: topic 'zigbee2mqtt/0x842e14fffefd9bbe', payload '{"window_detection_params":{"valve":"OFF","temperature":5,"minutes":10},"linkquality":36,"boost_time":300,"force":"normal","comfort_temperature":20,"eco_temperature":15,"position":0,"week":"5+2","workdays":[{"hour":6,"minute":0,"temperature":20},{"hour":8,"minute":0,"temperature":15},{"hour":11,"minute":30,"temperature":15},{"hour":12,"minute":30,"temperature":15},{"hour":17,"minute":30,"temperature":20},{"hour":22,"minute":0,"temperature":15}],"holidays":[{"hour":6,"minute":0,"temperature":20},{"hour":136,"minute":0,"temperature":15},{"hour":11,"minute":30,"temperature":15},{"hour":12,"minute":30,"temperature":15},{"hour":17,"minute":30,"temperature":20},{"hour":22,"minute":0,"temperature":15}],"preset_temperature":15,"auto_lock":"MANUAL","preset":1,"current_heating_setpoint":"17.5","system_mode":"manual","local_temperature":"29.0","min_temperature":5,"max_temperature":35,"child_lock":"UNLOCKED","local_temperature_calibration":"0.0"}' zigbee-herdsman-converters:siterwell_gs361: NOT RECOGNIZED DP #366 with data {"type":"Buffer","data":[1]} zigbee2mqtt:info 2020-08-12 12:56:14: MQTT publish: topic 'zigbee2mqtt/0x00158d0003f3a1dc', payload '{"battery":100,"voltage":3005,"illuminance":323,"illuminance_lux":323,"linkquality":39,"occupancy":false}' zigbee2mqtt:info 2020-08-12 12:56:14: MQTT publish: topic 'zigbee2mqtt/0x00158d0003f3a1dc', payload '{"battery":100,"voltage":3005,"illuminance":323,"illuminance_lux":323,"linkquality":39,"occupancy":true}' zigbee2mqtt:info 2020-08-12 12:56:27: MQTT publish: topic 'zigbee2mqtt/0x00158d00031b0a66', payload '{"battery":100,"voltage":3015,"illuminance":390,"illuminance_lux":390,"linkquality":107,"occupancy":false}' zigbee2mqtt:info 2020-08-12 12:56:27: MQTT publish: topic 'zigbee2mqtt/0x00158d00031b0a66', payload '{"battery":100,"voltage":3015,"illuminance":390,"illuminance_lux":390,"linkquality":107,"occupancy":true}' zigbee2mqtt:info 2020-08-12 12:57:19: MQTT publish: topic 'zigbee2mqtt/0x00158d000313fefd', payload '{"battery":100,"voltage":3025,"illuminance":1000,"illuminance_lux":1000,"linkquality":39,"occupancy":false}' zigbee2mqtt:info 2020-08-12 12:57:27: MQTT publish: topic 'zigbee2mqtt/0x00158d0004201077', payload '{"battery":100,"voltage":3055,"illuminance":625,"illuminance_lux":625,"linkquality":21,"occupancy":false}' zigbee2mqtt:info 2020-08-12 12:57:33: MQTT publish: topic 'zigbee2mqtt/0x00158d00045193ca', payload '{"illuminance":87,"illuminance_lux":87,"linkquality":84,"occupancy":false,"battery":100,"voltage":3025}' zigbee2mqtt:info 2020-08-12 12:57:44: MQTT publish: topic 'zigbee2mqtt/0x00158d0003f3a1dc', payload '{"battery":100,"voltage":3005,"illuminance":323,"illuminance_lux":323,"linkquality":39,"occupancy":false}' zigbee2mqtt:info 2020-08-12 12:57:57: MQTT publish: topic 'zigbee2mqtt/0x00158d00031b0a66', payload '{"battery":100,"voltage":3015,"illuminance":390,"illuminance_lux":390,"linkquality":107,"occupancy":false}' zigbee2mqtt:info 2020-08-12 12:58:01: MQTT publish: topic 'zigbee2mqtt/0x842e14fffeef7023', payload '{"window_detection_params":{"valve":"OFF","temperature":5,"minutes":10},"linkquality":39,"boost_time":300,"force":"normal","comfort_temperature":20,"eco_temperature":15,"position":0,"week":"5+2","workdays":[{"hour":6,"minute":0,"temperature":20},{"hour":8,"minute":0,"temperature":15},{"hour":11,"minute":30,"temperature":15},{"hour":12,"minute":30,"temperature":15},{"hour":17,"minute":30,"temperature":20},{"hour":22,"minute":0,"temperature":15}],"holidays":[{"hour":6,"minute":0,"temperature":20},{"hour":8,"minute":0,"temperature":15},{"hour":11,"minute":30,"temperature":15},{"hour":12,"minute":30,"temperature":15},{"hour":17,"minute":30,"temperature":20},{"hour":150,"minute":0,"temperature":15}],"preset_temperature":15,"auto_lock":"MANUAL","preset":1,"min_temperature":5,"max_temperature":35,"current_heating_setpoint":"19.5","local_temperature":"29.5","system_mode":"manual","child_lock":"UNLOCKED","local_temperature_calibration":"0.0"}' zigbee2mqtt:info 2020-08-12 12:58:02: MQTT publish: topic 'zigbee2mqtt/0x842e14fffef30ccf', payload '{"min_temperature":5,"linkquality":63,"max_temperature":35,"current_heating_setpoint":"20.0","local_temperature":"30.5","system_mode":"auto","child_lock":"UNLOCKED","local_temperature_calibration":"0.0","window_detection_params":{"valve":"OFF","temperature":5,"minutes":10},"boost_time":300,"force":"normal","comfort_temperature":20,"eco_temperature":15,"position":0,"week":"5+2","workdays":[{"hour":6,"minute":0,"temperature":20},{"hour":8,"minute":0,"temperature":15},{"hour":11,"minute":30,"temperature":15},{"hour":12,"minute":30,"temperature":15},{"hour":17,"minute":30,"temperature":20},{"hour":22,"minute":0,"temperature":15}],"holidays":[{"hour":6,"minute":0,"temperature":20},{"hour":8,"minute":0,"temperature":15},{"hour":11,"minute":30,"temperature":15},{"hour":12,"minute":30,"temperature":15},{"hour":17,"minute":30,"temperature":20},{"hour":22,"minute":0,"temperature":15}],"preset_temperature":15,"auto_lock":"MANUAL","preset":1}' zigbee2mqtt:info 2020-08-12 12:58:02: MQTT publish: topic 'zigbee2mqtt/0x842e14fffef30ccf', payload '{"min_temperature":5,"linkquality":63,"max_temperature":35,"current_heating_setpoint":"20.0","local_temperature":"30.5","system_mode":"auto","child_lock":"UNLOCKED","local_temperature_calibration":"0.0","window_detection_params":{"valve":"OFF","temperature":5,"minutes":10},"boost_time":300,"force":"normal","comfort_temperature":20,"eco_temperature":15,"position":0,"week":"5+2","workdays":[{"hour":6,"minute":0,"temperature":20},{"hour":8,"minute":0,"temperature":15},{"hour":11,"minute":30,"temperature":15},{"hour":12,"minute":30,"temperature":15},{"hour":17,"minute":30,"temperature":20},{"hour":22,"minute":0,"temperature":15}],"holidays":[{"hour":6,"minute":0,"temperature":20},{"hour":8,"minute":0,"temperature":15},{"hour":11,"minute":30,"temperature":15},{"hour":12,"minute":30,"temperature":15},{"hour":17,"minute":30,"temperature":20},{"hour":22,"minute":0,"temperature":15}],"preset_temperature":15,"auto_lock":"MANUAL","preset":1}' zigbee2mqtt:info 2020-08-12 12:58:02: MQTT publish: topic 'zigbee2mqtt/0x842e14fffef30cd9', payload '{"running":true,"linkquality":55,"position":0,"min_temperature":5,"max_temperature":35,"current_heating_setpoint":"20.0","local_temperature":"27.5","system_mode":"manual","child_lock":"UNLOCKED","local_temperature_calibration":"0.0","window_detection_params":{"valve":"OFF","temperature":5,"minutes":10},"boost_time":300,"force":"normal","comfort_temperature":20,"eco_temperature":15,"week":"5+2","workdays":[{"hour":6,"minute":0,"temperature":20},{"hour":8,"minute":0,"temperature":15},{"hour":12,"minute":30,"temperature":15},{"hour":12,"minute":32,"temperature":15},{"hour":17,"minute":30,"temperature":20},{"hour":22,"minute":0,"temperature":15}],"holidays":[{"hour":134,"minute":0,"temperature":20},{"hour":8,"minute":0,"temperature":15},{"hour":11,"minute":30,"temperature":15},{"hour":12,"minute":30,"temperature":15},{"hour":17,"minute":30,"temperature":20},{"hour":22,"minute":0,"temperature":15}],"preset_temperature":15,"auto_lock":"MANUAL","preset":1}' zigbee2mqtt:info 2020-08-12 12:58:02: MQTT publish: topic 'zigbee2mqtt/0x842e14fffef30cd9', payload '{"running":true,"linkquality":55,"position":0,"min_temperature":5,"max_temperature":35,"current_heating_setpoint":"20.0","local_temperature":"27.5","system_mode":"manual","child_lock":"UNLOCKED","local_temperature_calibration":"0.0","window_detection_params":{"valve":"OFF","temperature":5,"minutes":10},"boost_time":300,"force":"normal","comfort_temperature":20,"eco_temperature":15,"week":"5+2","workdays":[{"hour":6,"minute":0,"temperature":20},{"hour":8,"minute":0,"temperature":15},{"hour":12,"minute":30,"temperature":15},{"hour":12,"minute":32,"temperature":15},{"hour":17,"minute":30,"temperature":20},{"hour":22,"minute":0,"temperature":15}],"holidays":[{"hour":134,"minute":0,"temperature":20},{"hour":8,"minute":0,"temperature":15},{"hour":11,"minute":30,"temperature":15},{"hour":12,"minute":30,"temperature":15},{"hour":17,"minute":30,"temperature":20},{"hour":22,"minute":0,"temperature":15}],"preset_temperature":15,"auto_lock":"MANUAL","preset":1}' zigbee2mqtt:info 2020-08-12 12:58:02: MQTT publish: topic 'zigbee2mqtt/0x842e14fffef30b8e', payload '{"running":false,"linkquality":39,"position":100,"current_heating_setpoint":"31.0","local_temperature":"27.0","system_mode":"manual","preset_temperature":15,"min_temperature":5,"max_temperature":35,"child_lock":"UNLOCKED","local_temperature_calibration":"0.0","window_detection_params":{"valve":"OFF","temperature":5,"minutes":10},"boost_time":300,"force":"normal","comfort_temperature":20,"eco_temperature":15,"week":"5+2","workdays":[{"hour":6,"minute":0,"temperature":20},{"hour":8,"minute":0,"temperature":15},{"hour":11,"minute":30,"temperature":15},{"hour":12,"minute":30,"temperature":15},{"hour":17,"minute":30,"temperature":20},{"hour":22,"minute":0,"temperature":15}],"holidays":[{"hour":6,"minute":0,"temperature":20},{"hour":8,"minute":0,"temperature":15},{"hour":11,"minute":30,"temperature":15},{"hour":12,"minute":30,"temperature":15},{"hour":17,"minute":30,"temperature":20},{"hour":22,"minute":0,"temperature":15}],"auto_lock":"MANUAL","preset":1}' zigbee2mqtt:info 2020-08-12 12:58:03: MQTT publish: topic 'zigbee2mqtt/0x842e14fffef30b8e', payload '{"running":false,"linkquality":39,"position":100,"current_heating_setpoint":"31.0","local_temperature":"27.0","system_mode":"manual","preset_temperature":15,"min_temperature":5,"max_temperature":35,"child_lock":"UNLOCKED","local_temperature_calibration":"0.0","window_detection_params":{"valve":"OFF","temperature":5,"minutes":10},"boost_time":300,"force":"normal","comfort_temperature":20,"eco_temperature":15,"week":"5+2","workdays":[{"hour":6,"minute":0,"temperature":20},{"hour":8,"minute":0,"temperature":15},{"hour":11,"minute":30,"temperature":15},{"hour":12,"minute":30,"temperature":15},{"hour":17,"minute":30,"temperature":20},{"hour":22,"minute":0,"temperature":15}],"holidays":[{"hour":6,"minute":0,"temperature":20},{"hour":8,"minute":0,"temperature":15},{"hour":11,"minute":30,"temperature":15},{"hour":12,"minute":30,"temperature":15},{"hour":17,"minute":30,"temperature":20},{"hour":22,"minute":0,"temperature":15}],"auto_lock":"MANUAL","preset":1}' zigbee2mqtt:info 2020-08-12 12:58:04: MQTT publish: topic 'zigbee2mqtt/0x842e14fffef6ea3e', payload '{"boost_time":300,"linkquality":39,"force":"normal","comfort_temperature":20,"eco_temperature":15,"position":0,"week":"5+2","workdays":[{"hour":6,"minute":0,"temperature":20},{"hour":8,"minute":0,"temperature":15},{"hour":11,"minute":30,"temperature":15},{"hour":12,"minute":30,"temperature":15},{"hour":17,"minute":30,"temperature":20},{"hour":22,"minute":0,"temperature":15}],"holidays":[{"hour":6,"minute":0,"temperature":20},{"hour":8,"minute":0,"temperature":15},{"hour":11,"minute":30,"temperature":15},{"hour":12,"minute":30,"temperature":15},{"hour":17,"minute":30,"temperature":20},{"hour":22,"minute":0,"temperature":15}],"preset_temperature":16,"auto_lock":"MANUAL","preset":1,"current_heating_setpoint":"20.0","system_mode":"manual","local_temperature":"28.0","min_temperature":5,"max_temperature":35,"child_lock":"UNLOCKED","local_temperature_calibration":"0.0","window_detection_params":{"valve":"OFF","temperature":5,"minutes":10}}' zigbee2mqtt:info 2020-08-12 12:58:05: MQTT publish: topic 'zigbee2mqtt/0x842e14fffef6ea3e', payload '{"boost_time":300,"linkquality":39,"force":"normal","comfort_temperature":20,"eco_temperature":15,"position":0,"week":"5+2","workdays":[{"hour":6,"minute":0,"temperature":20},{"hour":8,"minute":0,"temperature":15},{"hour":11,"minute":30,"temperature":15},{"hour":12,"minute":30,"temperature":15},{"hour":17,"minute":30,"temperature":20},{"hour":22,"minute":0,"temperature":15}],"holidays":[{"hour":6,"minute":0,"temperature":20},{"hour":8,"minute":0,"temperature":15},{"hour":11,"minute":30,"temperature":15},{"hour":12,"minute":30,"temperature":15},{"hour":17,"minute":30,"temperature":20},{"hour":22,"minute":0,"temperature":15}],"preset_temperature":16,"auto_lock":"MANUAL","preset":1,"current_heating_setpoint":"20.0","system_mode":"manual","local_temperature":"28.0","min_temperature":5,"max_temperature":35,"child_lock":"UNLOCKED","local_temperature_calibration":"0.0","window_detection_params":{"valve":"OFF","temperature":5,"minutes":10}}' zigbee2mqtt:info 2020-08-12 12:58:07: MQTT publish: topic 'zigbee2mqtt/0x842e14fffefd9bbe', payload '{"window_detection_params":{"valve":"OFF","temperature":5,"minutes":10},"linkquality":42,"boost_time":300,"force":"normal","comfort_temperature":20,"eco_temperature":15,"position":0,"week":"5+2","workdays":[{"hour":6,"minute":0,"temperature":20},{"hour":8,"minute":0,"temperature":15},{"hour":11,"minute":30,"temperature":15},{"hour":12,"minute":30,"temperature":15},{"hour":17,"minute":30,"temperature":20},{"hour":22,"minute":0,"temperature":15}],"holidays":[{"hour":6,"minute":0,"temperature":20},{"hour":136,"minute":0,"temperature":15},{"hour":11,"minute":30,"temperature":15},{"hour":12,"minute":30,"temperature":15},{"hour":17,"minute":30,"temperature":20},{"hour":22,"minute":0,"temperature":15}],"preset_temperature":15,"auto_lock":"MANUAL","preset":1,"current_heating_setpoint":"17.5","system_mode":"manual","local_temperature":"29.0","min_temperature":5,"max_temperature":35,"child_lock":"UNLOCKED","local_temperature_calibration":"0.0"}' zigbee2mqtt:info 2020-08-12 12:58:07: MQTT publish: topic 'zigbee2mqtt/0x842e14fffefd9bbe', payload '{"window_detection_params":{"valve":"OFF","temperature":5,"minutes":10},"linkquality":39,"boost_time":300,"force":"normal","comfort_temperature":20,"eco_temperature":15,"position":0,"week":"5+2","workdays":[{"hour":6,"minute":0,"temperature":20},{"hour":8,"minute":0,"temperature":15},{"hour":11,"minute":30,"temperature":15},{"hour":12,"minute":30,"temperature":15},{"hour":17,"minute":30,"temperature":20},{"hour":22,"minute":0,"temperature":15}],"holidays":[{"hour":6,"minute":0,"temperature":20},{"hour":136,"minute":0,"temperature":15},{"hour":11,"minute":30,"temperature":15},{"hour":12,"minute":30,"temperature":15},{"hour":17,"minute":30,"temperature":20},{"hour":22,"minute":0,"temperature":15}],"preset_temperature":15,"auto_lock":"MANUAL","preset":1,"current_heating_setpoint":"17.5","system_mode":"manual","local_temperature":"29.0","min_temperature":5,"max_temperature":35,"child_lock":"UNLOCKED","local_temperature_calibration":"0.0"}' zigbee-herdsman-converters:siterwell_gs361: NOT RECOGNIZED DP #366 with data {"type":"Buffer","data":[1]} zigbee2mqtt:info 2020-08-12 12:58:11: MQTT publish: topic 'zigbee2mqtt/0x842e14fffeef7023', payload '{"window_detection_params":{"valve":"OFF","temperature":5,"minutes":10},"linkquality":39,"boost_time":300,"force":"normal","comfort_temperature":20,"eco_temperature":15,"position":0,"week":"5+2","workdays":[{"hour":6,"minute":0,"temperature":20},{"hour":8,"minute":0,"temperature":15},{"hour":11,"minute":30,"temperature":15},{"hour":12,"minute":30,"temperature":15},{"hour":17,"minute":30,"temperature":20},{"hour":22,"minute":0,"temperature":15}],"holidays":[{"hour":6,"minute":0,"temperature":20},{"hour":8,"minute":0,"temperature":15},{"hour":11,"minute":30,"temperature":15},{"hour":12,"minute":30,"temperature":15},{"hour":17,"minute":30,"temperature":20},{"hour":150,"minute":0,"temperature":15}],"preset_temperature":15,"auto_lock":"MANUAL","preset":1,"min_temperature":5,"max_temperature":35,"current_heating_setpoint":"19.5","local_temperature":"29.5","system_mode":"manual","child_lock":"UNLOCKED","local_temperature_calibration":"0.0"}'

vyzaq commented 3 years ago

I got the same thermostat valve from aliexpress. Mine has a Moes branded box with model number HY368. Maybe add that on the wiki page too?

I had to troubles joining the network. Joining the network is explained to work after "short press home (turn on), long press home (enter settings), go to setting 5 (wifi logo), press home (only wifi now showing), long press home (wifi now blinking). I then pressed home every few seconds as it seems to timeout pretty fast. But it never joined the network.

Unscrew/rescrew the battery cover suddenly did the trick, it just joined, even I tried that a few times before.

Got the same device but can't pair it. Debug log is silent also. Do you know any details how to pair it properly?

mgrom commented 3 years ago

What have you tried already?

mgrom commented 3 years ago

@Bart-1992 I've tried to monitor mine messages, but never go the one you have... strange

Bart-1992 commented 3 years ago

@mgrom Got the TRV"s running for a week or so now, the messages disappeared, everything is working stable at the moment. Just waiting for your changes to be updated in the stable release :)!

insipiens commented 3 years ago

Pairing the TRV to zigbee: I've attached the instruction that came with mine

TRV Tuya Zigbee

dedors commented 3 years ago

I was only able to pair after reconnecting battery as commented above. I tried quite long with the instructions and that did not work. Just repower the Tuya while Zigbee joining enabled was successful.

insipiens commented 3 years ago

Looking forward to seeing the presets version released....being new to zigbee2mqtt (4 weeks) seems a really great project. Looking forward to contributing once I've examined all the functionality....although seems a little intrepid making an update without peer review.

insipiens commented 3 years ago

Not sure if this is new info, I can pair the HY368 to Z2M but the device is deactivated - I can change the values on the device by publishing but nothing physically occurs (the motor doesn't respond) . Works fine on tuya hub...

see payload running: false

Aug 22 16:38:30 raspberrypi bash[624]: zigbee2mqtt:info 2020-08-22 16:38:30: MQTT publish: topic 'zigbee2mqtt/0x680ae2fffe06dfc4', payload '{"running":false,"linkquality":52,"system_mode":"manual","child_lock":"UNLOCKED","local_temperature_calibration":"-5.0","window_detection_params":{"valve":"OFF","temperature":5,"minutes":5},"boost_time":300,"force":"normal","comfort_temperature":20,"eco_temperature":15,"position":100,"week":"5+2","workdays":[{"hour":135,"minute":0,"temperature":20},{"hour":8,"minute":0,"temperature":15},{"hour":11,"minute":30,"temperature":15},{"hour":12,"minute":30,"temperature":15},{"hour":17,"minute":30,"temperature":20},{"hour":22,"minute":0,"temperature":15}],"holidays":[{"hour":134,"minute":0,"temperature":20},{"hour":8,"minute":0,"temperature":15},{"hour":11,"minute":30,"temperature":15},{"hour":12,"minute":30,"temperature":15},{"hour":17,"minute":30,"temperature":20},{"hour":22,"minute":0,"temperature":15}],"preset_temperature":15,"auto_lock":"AUTO","preset":1,"current_heating_setpoint":"25.5","local_temperature":"19.5","min_temperature":5,"max_temperature":35}'

insipiens commented 3 years ago

Not sure if this is new info, I can pair the HY368 to Z2M but the device is deactivated - I can change the values on the device by publishing but nothing physically occurs (the motor doesn't respond) . Works fine on tuya hub...

see payload running: false `

Recalling this, the device delays by 4 or 5 minutes before activating to the published current_heating_setpoint command, presumably so any part adjustments aren't acted upon too quickly.

publishing the current_heating_setpoint works fine.

Bartekn86 commented 3 years ago

strange think, domoticz cant set anything on ts601 so it will be problem in implementation in domoticz ?

Stoatwblr commented 3 years ago

I had to troubles joining the network

I've just acquired 4 of these too. The solution (as usual) was to park them right next to a repeater whilst pairing (I used an Ikea Tradfri) and the interview process was near-instant

Once paired, power cycling will demand a clock reset and recalibration routine but it stays zigbee paired.
This allows pairing then repositioning into final location when it will look for the best repeater (unlike some other battery devices which stay locked to the same repeater...)

Make sure you run the valve motor calibration routine (AD 1 & 2) AFTER attaching it to the TRV base. This is started by hand after setting the clock but my experience is that it's very easy to inadvertently do that that whilst mounting to the base.

Stoatwblr commented 3 years ago

comment: with 1.14.3-stable I was getting "not very much" reported. moving to dev branch is showing a lot more. Thanks @Koenkk

Now to try and make it work...

Stoatwblr commented 3 years ago

NB: the table below has been heavily edited (1 Sep 2020)

I can see a bunch of topics (more showing up all the time), but not all are programmable even if you might think they should be (such as putting the TRV into 5+2,. 6+1 or 7 day mode)

Is there any way to get a mqtt device to report all its topics?

(using mqtt Explorer z2m configured experimental: output: attribute)

- STM8L052 processor - https://www.st.com/content/st_com/en/products/microcontrollers-microprocessors/stm8-8-bit-mcus/stm8l-series/stm8l-value-line/stm8l052c6.html
      (beware of - https://www.st.com/en/microcontrollers-microprocessors/stm8l052r8.html - this is a 64pin package!)
  this MCU is rated from 1.8  to 3.6V

 - IO connectors(visible inside right side lip of battery compartment):
  - G=gnd V=volts S  R are (presumably) data lines. (G and V traced to verify)
  - S - pin 
  - V is 3.2V on new cells, so 3.3V is probably safe. 
  -  NB:  V pad and silkscreening is partially obscured by screw post of plastic cover, but still pinnable without removing cover
      (photos taken if someone wants to see them)

 - zigbee2mqtt, set in "output=attribute" mode

 - Results read using MQTT Explorer and ordered into (hopefully) some semblence of sensibility
 - values written using mosquitto_pub -d -t /zigbee2mqtt/device/set/topic -m {value}

  # comments added by hand, as is extra line spacing
  ## comment key - "R" = READ, "W"=Writable at set/value, "p" = persistent across reboots/power cycles

 - THERE IS NO SANITY CHECKING ON VALUES SET REMOTELY! 
    *ie, setting current heating setpoint to 20.6 will result in it going to 0
    * same applies to values not expecting decimal places

- results (so far)

mqtt topic = parameter  # comment 
---------
radiator_kitchen # (device name)
---
 availability = online
 last_seen = 1598697061164

 linkquality = 28                        # radio quality

 device-applicationVersion = 83
 device-friendlyName = radiator_kitchen
 device-hardwareVersion = 1
 device-ieeeAddr = 0xbc33acfffe57203c
 device-manufacturerID = 4098
 device-manufacturerName = _TZE200_ckud7u2l
 device-model = TS0601_thermostat
 device-networkAddress = 30484
 device-powerSource = Battery
 device-stackVersion = 0
 device-type = EndDevice
 device-zclVersion = 3

 auto_lock = AUTO                        # RW AUTO/MANUAL  (W AUTO, anything will toggle to manual) (program mode A3)
 child_lock = UNLOCKED                   # R LOCKED/UNLOCKED, Wp LOCK/UNLOCK{ED}
 comfort_temperature = 18                # RWp default=20
 eco_temperature = 13                    # RWp default=15
 min_temperature = 5                     # RWp settable usage limit: min=1,  max=16 (program mode A4)
 max_temperature = 35                    # RWp settable usage limit: min=16, max=70 (program mode A5)
 boost_time = 300                        # RWp boost(max heat) timer: min=100, max=900   (delta=100 on device - program mode A6)
                         # the boost timer counts down on the valve body when checked, but boot_time stays constant. 
                         # perhaps there's another topic being missed?

 current_heating_setpoint = 15.0         # RW current setting                            (delta = 0.5C)
        # (when this is adjusted on the device, the MQTT reported setting alters by 0.5C per 5 sec until it reaches the new value)

 position = 100                          # R current valve position: 100 == fully extended (ON), 0 == fully retracted (OFF) (program mode A7)

## no topic known for reading/setting thermal hysteresis (program mode A8)
## no topic known for inverting display (program mode A9)
## no topic known for activating display remotely
## no topic known for remote reset (program mode AA)
## no topic known for battery state/voltage/condition

 local_temperature = 23.5                # R NTC on top of body
 local_temperature_calibration = 2.0     # RWp  (programming mode A1) -9.0 to +9.0 delta 0.1C

 preset = schedule                       # preset mode - seen so far: manual, schedule, boost, complex, 1, 2, away
                       # "complex"=="schedule" but temperature has been set manually and will revert at the next timing transition 
 preset_temperature = 15
 system_mode = auto                      # seen so far:  auto, manual, schedule, complex, boost

 away_preset_temperature = 5             # R away mode default 15 (the airplane icon - and called "holiday mode" in instruction sheet)
 away_preset_days = 1                    # R away days min=1, max=30

 force = normal                          # no idea what this means
 running = false                              # no idea on this one. Motor running perhaps?

# no topics known for reading/setting clock 

 week = 7                                # R '5+2','6+1','7', but not settable using those values

 workdays = [object Object],[object Object],[object Object],[object Object],[object Object],[object Object]        # the 5,6,7 of "5+2,6,7"
 holidays = [object Object],[object Object],[object Object],[object Object],[object Object],[object Object]         #  the +1,+2 days of "5+2,6+1,7"  - probably better described as 
    # starttime and temperature for each of the 6 time zones
    #  This is how it's reported by mqttexplorer regardless of time/temp settings
      # perhaps better described as "weekdays"/"weekends"?
    #  reported JSON raw below:

  # JSON: 'workdays': [{'hour': 6, 'minute': 0, 'temperature': 20}, {'hour': 8, 'minute': 0, 'temperature': 15}, {'hour': 11, 'minute': 30,'temperature': 15}, {'hour': 12, 'minute': 30, 'temperature': 15}, {'hour': 17, 'minute': 30, 'temperature': 20}, {'hour': 22, 'minute': 0, 'temperature': 15}]
  # JSON: 'holidays': [{'hour': 6, 'minute': 0, 'temperature': 20}, {'hour': 8, 'minute': 0, 'temperature': 15}, {'hour': 11, 'minute': 30, 'temperature': 15}, {'hour': 12, 'minute': 30, 'temperature': 15}, {'hour': 17, 'minute': 30, 'temperature': 20}, {'hour': 22, 'minute': 0, 'temperature': 15}],

window_detection = ON                           # RW open window detection mode (programming mode A2)
                                                # (this doesn't show up on MQTT until you activate it on the valve or sent a set command)
                                                # not power/reset - persistent
window_detection_params-minutes = 10             # R default 10 (writing this parameter doesn't change anything, but throws errors and causes weird numbers to set in temperature when window_detection is subsequently toggled)
window_detection_params-temperature = 5         # R they were both set on 5 with mosquittop_pub - needs a transform of some sort
window_detection_params-valve = OFF             # R  (not listed as part of A2 mode, doesn't appear settable on device)
   # looking at the description, I believe it's looking for a measured drop of "temperature", at which point it will set the valve to "STATE" for "time" minutes. Maybe someone who reads chinese can try that manual?
  # reported JSON:  "window_detection_params":{"valve":"OFF","temperature":5,"minutes":10}'
Stoatwblr commented 3 years ago

It looks like "valve_detection" is bogus - in https://github.com/Koenkk/zigbee-herdsman-converters/commit/4f96c1e8792c0565105b2819d69f3ab3990efba1

window_detection is ON or OFF but doesn't show up until toggled on the device or remotely

'window_detection_params': {'valve': 'OFF', 'temperature': 5, 'minutes': 10}
I'm still trying to figure out exactly what sent to be sent to it to set these parameters

'mosquitto_pub -t zigbee2mqtt/radiator_kitchen/window_detection_params-minutes -m 10' shows nothing logged or sent - presumably I'm doing it wrong.

week = 7 # reports '5+2', '6+1', '7', but not settable using those values what's logged is: error 2020-08-31 20:40:29: No converter available for 'week' (5+2)

Is there any way to set herdsman into debug for just this device?

Stoatwblr commented 3 years ago

@Koenkk If it's of any help: this thing appears to have a serial debugging port available and is using a STM8L052

insipiens commented 3 years ago

@Stoatwblr , In your log the "holidays program" consist of 6 sets of 3 bytes(?), very similar to the analysis I have of the Moes room thermostat program message - although that has 5+1+1 programmable only. See #4185

This device is using the Tuya conversions currently, it is a Tuya based device but the commands are a different set although I have yet to check the Moes radiator valve.

Have you set up a zigbee sniffer and connected it to their hub to see what is being sent?

Stoatwblr commented 3 years ago

Mine is a Moes HY368

Digging around on Tuya's website shows that the actual maker is: Xiamen Hysen Control Technology Co., Ltd, Product Model:HY368 Zigbee

(https://expo.tuya.com/product?id=543210)

This explains the variations away from Tuya "standard"

I've managed to snap my sniffer off its plug, so no dumps (yet)

Stoatwblr commented 3 years ago

In away_mode (the airplane icon, and described in the manual as "holiday mode")

Adjusting the preset temperature and days on the valve body causes these to pop up in mqtt returns

away_preset_temperature = 5 # R away mode temp, default 15 (the airplane icon) away_preset_days = 1 # R away days min=1, max=30

These can't be written back using set/ (mosquitto pub), but zigbee2mqtt isn't logging an error or a sent message

Stoatwblr commented 3 years ago

need to find out: how to read/set clock how to read/set thermal hysteresis

Sthopeless commented 3 years ago

Well I don't know till what extend it helps but this are all the dpID's/functions of the Moes TRV's, I also include what should represent on Home Assistant

Screenshot (61)

I have also opened one of my units but no luck sniffing the pins either wrong configuration options or is not a serial port at all

Stoatwblr commented 3 years ago

Thanks. I've heavily edited the table I posted yesterday whilst you were posting this too

Check my notes on "R G S V" pads on the front corner of the board. There may be something usable there with a TTL serial port

Stoatwblr commented 3 years ago

how are the DPs created? I'm seeing numbers that aren't listed above:

debug 2020-08-31 21:02:56: Received Zigbee message from 'radiator_kitchen', type 'raw', cluster 'manuSpecificTuyaDimmer', data '{"data":[25,30,36,0,58],"type":"Buffer"}' from endpoint 1 with groupID 0

debug 2020-08-31 21:04:14: Received Zigbee message from 'radiator_kitchen', type 'commandGetData', cluster 'manuSpecificTuyaDimmer', data '{"data":{"data":[0,0,0,180],"type":"Buffer"},"dp":514,"fn":0,"status":4,"transid":117}' from endpoint 1 with groupID 0

debug 2020-08-31 21:04:14: Received Zigbee message from 'radiator_kitchen', type 'commandGetData', cluster 'manuSpecificTuyaDimmer', data '{"data":{"data":[0,0,1,4],"type":"Buffer"},"dp":515,"fn":0,"status":4,"transid":118}' from endpoint 1 with groupID 0

debug 2020-08-31 21:04:19: Received Zigbee message from 'radiator_kitchen', type 'commandGetData', cluster 'manuSpecificTuyaDimmer', data '{"data":{"data":[1],"type":"Buffer"},"dp":1028,"fn":0,"status":4,"transid":119}' from endpoint 1 with groupID 0

debug 2020-09-01 13:10:18: Received Zigbee message from 'radiator_kitchen', type 'commandGetData', cluster 'manuSpecificTuyaDimmer', data '{"data":{"data":[0,0,0,20],"type":"Buffer"},"dp":621,"fn":0,"status":4,"transid":121}' from endpoint 1 with groupID 0

debug 2020-09-01 13:17:34: Received Zigbee message from 'radiator_kitchen', type 'commandGetData', cluster 'manuSpecificTuyaDimmer', data '{"data":{"data":[0,0,0,10],"type":"Buffer"},"dp":556,"fn":0,"status":0,"transid":88}' from endpoint 1 with groupID 0

DP values reported in debugging so far:

(EDIT: reordered, using the medium.com articles below for possiblities and pulled ones mentioned there into the list (DP:)

"dp":104
"dp":112
"dp":113
"dp":263
DP: 274 - window detection enabled "dp":366
"dp":371
"dp":372
"dp":514 - changed target temp "dp":515 - notify room temp DP: 533 - battery status "dp":556 - local temperature

"dp":614
"dp":615
"dp":617
"dp":619
"dp":620
"dp":621 - boost timer? "dp":626
"dp":629
"dp":1028 - state change (auto/manual) DP:1041 - valve problem? DP: 1042 - valve problem? "dp":1130
"dp":1135
"dp":1293

Sthopeless commented 3 years ago

dpID's are created and embed on the functions at the app creation, you can create a account here https://iot.tuya.com/ and "start developing" apps/new devices and see what are the possible functions etc.

Unfortunately I have no idea what all those 'dp' mean I have this that is on your list and is not yet included on my screenshot above:


      {"mode": "rw",
        "code": "wind",
        "name": "Ventilation conditions",
        "id": 104,
        "type": "raw",
        "desc": "The first byte is the ventilation function switch: 0 means turn off this function, 1 means turn on this function, the default value is 0; the second byte is the setting temperature, the range is 5-25℃, the default value is 5. ℃; the third byte is the valve closing time, the range is 5-60 minutes, the default value is 15 minutes"}```
Stoatwblr commented 3 years ago

https://community.home-assistant.io/t/i-am-totally-noob-with-zigbee-and-tuya-and-i-need-advice-for-smart-thermostatic-radiator-valves/163607/25 looks promising as a resource

I'm using openhab, not HA, so I want to do this with mqtt messages

https://medium.com/@dzegarra/zigbee2mqtt-how-to-add-support-for-a-new-tuya-based-device-part-1-b20227251d46

https://medium.com/@dzegarra/zigbee2mqtt-how-to-add-support-for-a-new-tuya-based-device-part-2-5492707e882d

The second article includes a table of DP codes which should be useful https://miro.medium.com/max/875/1*iqpMebw-A2us1_oMN20cQg.png

Stoatwblr commented 3 years ago

I'd been tootling around on developer.tuya.com looking for that stuff - what i did find is this:

https://developer.tuya.com/en/docs/iot/device-development/embedded-license/embedded-license

It looks like the devices are generally running: freertos https://www.freertos.org/ libemqtt https://github.com/menudoproblema/libemqtt lwip http://savannah.nongnu.org/projects/lwip/ mbed https://os.mbed.com/

Sthopeless commented 3 years ago

I sacrificed one of my CC2531 dongles and I'm running zboss on it but first time traveler might take awhile to start understanding it all.