domoticz-zigbee2mqtt-plugin icon indicating copy to clipboard operation
domoticz-zigbee2mqtt-plugin copied to clipboard

Tuya Thermostat TS0601

Open ebyna opened this issue 5 years ago • 31 comments

Good day, thermostatic head does not form in domoticz Setup, Devices, new IDX only one entry:

512 zigbee api_transport 255 zigbee - Zigbee2MQTT API Transport General Text {"type": "response", "requestId": 15, "isError": false,

https://www.aliexpress.com/item/4001043738901.html?spm=a2g0s.9042311.0.0.3da24c4dPGfXWu

Domoticz - Version: 2020.2 (build 12240)

zigbee2 - v.1.14.3 (zStack12 20190608)

2020-08-13 20:16:11.229 (zigbee) MQTT message: zigbee2mqtt/0x842e14fffef30c0e {'min_temperature': 5, 'linkquality': 42, 'max_temperature': 35, 'current_heating_setpoint': '31.0', 'local_temperature': '30.0', 'system_mode': 'manual', 'child_lock': 'UNLOCKED', 'local_temperature_calibration': '-1.0', 'window_detection_params': {'valve': 'OFF', 'temperature': 5, 'minutes': 10}, 'boost_time': 300, 'force': 'normal', 'comfort_temperature': 20, 'eco_temperature': 15, 'position': 100, '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} 2020-08-13 20:16:11.230 (zigbee) This plugin does not support zigbee device with model "TS0601_thermostat" yet 2020-08-13 20:16:11.230 (zigbee) If you would like plugin to support this device, please create ticket by this link: https://github.com/stas-demydiuk/domoticz-zigbee2mqtt-plugin/issues/new?labels=new+device&template=new-device-support.md

ebyna avatar Aug 13 '20 18:08 ebyna

same issiue please add thermostat

Bartekn86 avatar Aug 14 '20 19:08 Bartekn86

Good day, thank you for answer. Unfortunately, I do not understand your answer. How do I add a thermostat? I use valve Eurotronic SPZB0001 https://www.zigbee2mqtt.io/devices/SPZB0001.html and this is OK.

ebyna avatar Aug 14 '20 19:08 ebyna

Thanks for response, mqtt supports ts0601 but domoticz not, https://aliexpress.ru/item/4001043738901.html?spm=a2g0s.9042311.0.0.1b6033edHXNB4c&_ga=2.27185918.2138683156.1593276537-279917533.1590225196 This is thermostatic valve that we want to add to domoticz Domoticz can not read temperature and can not set what is able to set in thermostat https://github.com/Koenkk/zigbee2mqtt.io/blob/master/docs/devices/TS0601_thermostat.md**

Bartekn86 avatar Aug 14 '20 20:08 Bartekn86

Thank you, I understand. I'll wait until the integration into Domoticz.

ebyna avatar Aug 14 '20 21:08 ebyna

I have ordered one to add support, awaiting for delivery from aliexpress

stas-demydiuk avatar Aug 15 '20 13:08 stas-demydiuk

I have ordered one to add support, awaiting for delivery from aliexpress

Were are you from? Maybe, I can give you one for experiments.

JediMax27 avatar Aug 21 '20 18:08 JediMax27

if nesesery i can send one too poland is not to far :-)) with thermostat you ordered ?

Bartekn86 avatar Aug 27 '20 19:08 Bartekn86

I'm in Kyiv, Ukraine. Looks like the device is already at the postal office, so will add a support soon.

stas-demydiuk avatar Aug 31 '20 19:08 stas-demydiuk

thank you very much

Bartekn86 avatar Aug 31 '20 19:08 Bartekn86

https://github.com/Koenkk/zigbee2mqtt/issues/3821#issuecomment-684813325

Bartekn86 avatar Sep 01 '20 13:09 Bartekn86

hi, did u get thermostat ? thank you

Bartekn86 avatar Sep 06 '20 11:09 Bartekn86

Guys, support was added. I wonder if you could test as well and provide your feedback.

stas-demydiuk avatar Sep 06 '20 13:09 stas-demydiuk

thank you Sep 06 18:01:19 raspberrypi npm[6918]: Zigbee2MQTT:error 2020-09-06 18:01:19: No converter available for 'mode' (auto)
Sep 06 18:02:17 raspberrypi npm[6918]: Zigbee2MQTT:error 2020-09-06 18:02:17: No converter available for 'mode' (eco)

Sep 06 18:11:48 raspberrypi npm[6918]: Zigbee2MQTT:info 2020-09-06 18:11:48: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"Publish 'set' 'preset' to 'bn duzy glowica' failed: 'Error: Command 0xec1bbdfffe91c050/1 manuSpecificTuyaDimmer.setData({"status":0,"transid":205,"dp":1028,"fn":0,"data":[1,0]}, {"timeout":10000,"disableResponse":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null}) failed (Data request failed with error: 'Timeout' (9999))'","meta":{"friendly_name":"bn duzy glowica"},"type":"zigbee_publish_error"}'

Bartekn86 avatar Sep 06 '20 16:09 Bartekn86

also broken. Delete device Tuya Thermostat. update zigbee2mqtt-plugin Domoticz update. Reboot Can't add Tuya Thermostat! Reset Tuya thermostat- house-set-AA-display-88-00-house. Check nano /opt/zigbee2mqtt/data/configuration.yaml also broken.

EDIT:

ooooo works MAGIC. Thank you very much, I'm going to buy another winter is coming.

EDIT 2: two items are not functional:

zigbee | 0x842e14fffef30c0e_btperc | 96 | Valve | General | Percentage | 0%

zigbee | 0x842e14fffef30c0e_cell | 95 | Valve | General | Voltage | 0 V

ebyna avatar Sep 06 '20 17:09 ebyna

Trying to use these valves and setting the setpoint temperature for thermostat device got many errors in DZ log (DZ running version is Domoticz 2020.1 Stable for DSM 6.2 on Synology NAS):

2020-09-09 17:03:40.882 Error: (Z2M) 'onMessage' failed 'TypeError'. 2020-09-09 17:03:40.883 Error: (Z2M) ----> Line 263 in '/usr/local/domoticz/var/plugins/zigbee2mqtt/plugin.py', function onMessage 2020-09-09 17:03:40.883 Error: (Z2M) ----> Line 112 in '/usr/local/domoticz/var/plugins/zigbee2mqtt/plugin.py', function onMessage 2020-09-09 17:03:40.883 Error: (Z2M) ----> Line 167 in '/usr/local/domoticz/var/plugins/zigbee2mqtt/mqtt.py', function onMessage 2020-09-09 17:03:40.883 Error: (Z2M) ----> Line 183 in '/usr/local/domoticz/var/plugins/zigbee2mqtt/plugin.py', function onMQTTPublish 2020-09-09 17:03:40.883 Error: (Z2M) ----> Line 63 in '/usr/local/domoticz/var/plugins/zigbee2mqtt/devices_manager.py', function handle_mqtt_message 2020-09-09 17:03:40.883 Error: (Z2M) ----> Line 37 in '/usr/local/domoticz/var/plugins/zigbee2mqtt/adapters/base_adapter.py', function handleMqttMessage 2020-09-09 17:03:40.883 Error: (Z2M) ----> Line 126 in '/usr/local/domoticz/var/plugins/zigbee2mqtt/devices/device.py', function handle_message 2020-09-09 17:03:40.883 Error: (Z2M) ----> Line 104 in '/usr/local/domoticz/var/plugins/zigbee2mqtt/devices/device.py', function get_device_args 2020-09-09 17:03:40.883 Error: (Z2M) ----> Line 37 in '/usr/local/domoticz/var/plugins/zigbee2mqtt/devices/switch/selector_switch.py', function get_numeric_value 2020-09-09 17:03:40.883 Error: (Z2M) ----> Line 43 in '/usr/local/domoticz/var/plugins/zigbee2mqtt/devices/switch/selector_switch.py', function get_string_value

In this case setpoint temp. is sent to zigbee2mqtt and to valve correctly, but no any feedback in DZ interface (temperature for thermostat devices not changing). The same thing with valve "position" and "local_temperature" - it stays still, not showing any changes.

Also noticed, that "Child lock switch" enables child lock but can not disable it (can be done only on valve manually).

Art531 avatar Sep 09 '20 14:09 Art531

What version of zigbee2mqtt do you have?

stas-demydiuk avatar Sep 09 '20 20:09 stas-demydiuk

What version of zigbee2mqtt do you have?

Latest stable, 1.14.3 (not Dev). Woops, it's not latest already, the latest release is 1.14.4, i'm going to update it right now...

Art531 avatar Sep 09 '20 20:09 Art531

could you please provide your zigbee2mqttt log as well when you receive this error

stas-demydiuk avatar Sep 09 '20 20:09 stas-demydiuk

All problems gone with update to latest 1.14.4 zigbee2mqtt release! Magic! Now all things are functional - i can see current temp. on sensors, can change setpoint and can see current valve position (as dimmer slider). Even child lock switch functional now. Great work, thank you so much for your plugin! BTW (offtopic), how many logical devices are supported with this plugin? Just asking because i'm close to 200 of them.

Art531 avatar Sep 09 '20 20:09 Art531

i do not understand.. i have latest zigbee latest domoticz, latest plugin for domoticz, but child lock etc. do not want to work ;/

Bartekn86 avatar Sep 10 '20 13:09 Bartekn86

It works for me! Only the "position valve" and "battery status" do not work

2020-09-10 21:37:36.120 (zigbee) MQTT message: zigbee2mqtt/0x842e14fffef30c0e {'auto_lock': 'MANUAL', 'away_preset_days': 1, 'away_preset_temperature': 15, 'boost_time': 300, 'child_lock': 'UNLOCKED', 'comfort_temperature': 20, 'current_heating_setpoint': '29.0', 'eco_temperature': 15, 'force': 'normal', '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}], 'linkquality': 78, 'local_temperature': '27.0', 'local_temperature_calibration': '1.0', 'max_temperature': 35, 'min_temperature': 5, 'position': 30, 'preset': 'manual', 'system_mode': 'manual', 'week': '5+2', 'window_detection': 'OFF', 'window_detection_params': {'minutes': 16, 'temperature': 5}, '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}]}

zigbee 0x842e14fffef30c0e_preset 98 Hlavice_loznice Light/Switch Selector Switch On 2 -   2020-09-10 21:26:33
    529 zigbee 0x842e14fffef30c0e_child 106 Hlavice_loznice Light/Switch Switch Off 1
    528 zigbee 0x842e14fffef30c0e_wnd 105 Hlavice_loznice Light/Switch Switch Off 3
    527 zigbee 0x842e14fffef30c0e_level 104 Hlavice_loznice Light/Switch Switch On 3
    526 zigbee 0x842e14fffef30c0e_temp 103 Hlavice_loznice Temp LaCrosse TX3 27.0 C 2
    525 zigbee 0x842e14fffef30c0e_sp_cmf 102 Hlavice_loznice Thermostat SetPoint 20.0 2
    524 zigbee 0x842e14fffef30c0e_sp_eco 101 Hlavice_loznice Thermostat SetPoint 15.0 1
    523 zigbee 0x842e14fffef30c0e_spoint 100 Hlavice_loznice Thermostat SetPoint 29.0 2
    522 zigbee 0x842e14fffef30c0e_week 99 Hlavice_loznice Light/Switch Selector Switch Off 3
    520 zigbee 0x842e14fffef30c0e_mode 97 Hlavice_loznice Light/Switch Selector Switch On 2
    **519 zigbee 0x842e14fffef30c0e_btperc 96 Hlavice_loznice General Percentage 0% -
    518 zigbee 0x842e14fffef30c0e_cell 95 Hlavice_loznice General Voltage 0 V -
    517 zigbee 0x842e14fffef30c0e_signal 94 Hlavice_loznice General Custom Sensor 78 3

ebyna avatar Sep 10 '20 19:09 ebyna

can anyone advise why I still have broken: 0x842e14fffef30c0e_btperc Percentage a 0x842e14fffef30c0e_cell Voltage zero? Everything fully up to date. Thank you

ebyna avatar Sep 20 '20 11:09 ebyna

Looks like this device doesn't support battery reporting

stas-demydiuk avatar Sep 26 '20 07:09 stas-demydiuk

Yes, the battery status is not indicated. But valve condition: MQTT - position: 30 YES v domoticz 0x842e14fffef30c0e_btperc Percentage NO

Thank you for your time.

ebyna avatar Sep 26 '20 19:09 ebyna

Hi, Is it any posibility to set/read childlock/boost/open_window detection/time on updated trv to firmware version 1.5 ?

Bartekn86 avatar Oct 03 '20 11:10 Bartekn86

hi, Stas, could you update plugin to get functions added by last month ? https://github.com/Koenkk/zigbee2mqtt/issues/3821#issuecomment-720764173

Bartekn86 avatar Nov 07 '20 09:11 Bartekn86

Hi, I have several of these and managed to add them to Domoticz but can't control them. The devices appear but do not update when changed. How do I get them controlable from Domoticz? Thanks

dognutz avatar Jan 15 '21 09:01 dognutz

Do you see any errors in Domoticz or zigbee2mqtt log?

stas-demydiuk avatar Jan 15 '21 20:01 stas-demydiuk

No errors in log. If I publish to zigbee2mqtt from node red I can control them.

dognutz avatar Jan 16 '21 09:01 dognutz

same here, can see the thermostate in DeConz but no values / control

{ "config": { "heatsetpoint": null, "locked": null, "offset": 0, "on": true, "preset": null, "reachable": true, "schedule": {}, "schedule_on": null, "setvalve": null, "windowopen_set": null }, "ep": 1, "etag": "c248007da3b4daad64a33f46934a92e9", "lastseen": "2021-01-30T15:36Z", "manufacturername": "_TZE200_c88teujp", "modelid": "TS0601", "name": "Fairy lights", "state": { "lastupdated": "none", "on": null, "temperature": null }, "type": "ZHAThermostat", "uniqueid": "84:71:27:ff:fe:09:5a:09-01-0201", "id": "8", "deviceclass": "sensors" }

pjeevandee avatar Jan 30 '21 15:01 pjeevandee