Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tuya Thermostat TS0601 #383

Closed
ebyna opened this issue Aug 13, 2020 · 32 comments
Closed

Tuya Thermostat TS0601 #383

ebyna opened this issue Aug 13, 2020 · 32 comments
Labels
new device Request to add support for new device waiting for verification wontfix This will not be worked on

Comments

@ebyna
Copy link

ebyna commented Aug 13, 2020

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 ebyna added the new device Request to add support for new device label Aug 13, 2020
@Bartekn86
Copy link

same issiue please add thermostat

@ebyna
Copy link
Author

ebyna commented Aug 14, 2020

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.

@Bartekn86
Copy link

Bartekn86 commented Aug 14, 2020

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**

@ebyna
Copy link
Author

ebyna commented Aug 14, 2020

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

@stas-demydiuk
Copy link
Owner

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

@stas-demydiuk stas-demydiuk changed the title This plugin does not support zigbee device with model "TS0601_thermostat" yet Tuya Thermostat TS0601 Aug 15, 2020
@JediMax27
Copy link

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

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

@Bartekn86
Copy link

Bartekn86 commented Aug 27, 2020

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

@stas-demydiuk
Copy link
Owner

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

@Bartekn86
Copy link

thank you very much

@Bartekn86
Copy link

@Bartekn86
Copy link

hi, did u get thermostat ?
thank you

@stas-demydiuk
Copy link
Owner

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

@Bartekn86
Copy link

Bartekn86 commented Sep 6, 2020

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"}'

@ebyna
Copy link
Author

ebyna commented Sep 6, 2020

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

@Art531
Copy link

Art531 commented Sep 9, 2020

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).

@stas-demydiuk
Copy link
Owner

What version of zigbee2mqtt do you have?

@Art531
Copy link

Art531 commented Sep 9, 2020

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...

@stas-demydiuk
Copy link
Owner

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

@Art531
Copy link

Art531 commented Sep 9, 2020

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.

@Bartekn86
Copy link

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

@ebyna
Copy link
Author

ebyna commented Sep 10, 2020

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
Copy link
Author

ebyna commented Sep 20, 2020

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

@stas-demydiuk
Copy link
Owner

Looks like this device doesn't support battery reporting

@ebyna
Copy link
Author

ebyna commented Sep 26, 2020

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.

@Bartekn86
Copy link

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

@Bartekn86
Copy link

hi, Stas, could you update plugin to get functions added by last month ? Koenkk/zigbee2mqtt#3821 (comment)

@dognutz
Copy link

dognutz commented Jan 15, 2021

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

@stas-demydiuk
Copy link
Owner

Do you see any errors in Domoticz or zigbee2mqtt log?

@dognutz
Copy link

dognutz commented Jan 16, 2021

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

@pjeevandee
Copy link

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
Copy link

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

can it be that they changed something in the firmware of those things? I have the same, the valve is detected (see above) with deCONZ as TS0601 but no values come back nor response on preset temp. Did update to latest Domoticz and Zigbee2MQTT.

I had something with a tuya smart plug, they changed something in the firmware and then flashing was bye bye (Tasmota) and then it was linked to the mac address range (later range no longer possible).

Do i get it correct the Valve/thermostat comms within zigbee protocol are not standardised?

KR
Piet

@stale
Copy link

stale bot commented Aug 30, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Aug 30, 2022
@stale stale bot closed this as completed Sep 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new device Request to add support for new device waiting for verification wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

7 participants