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

Thermostat TV02 throws error exeption on setting schedule for each day of the week #6418

Open
bruno4712 opened this issue Nov 6, 2023 · 4 comments

Comments

@bruno4712
Copy link

Setting a schedule for one day of the week in the format like this { "schedule": { "week_day": "monday", "schedule": "06:00/20 22:00/19 24:00/18" } } via field send_payload throws a exeption. It is not possible to set the value on respective object because the field working_day is not read from the object list here.

ioBroker.zigbee v1.8.23 zigbee-herdsman-converters v15.107.0

protocol:

Stack trace for null: Error: Invalid "working_day" property, need to set it before at Object.to (/opt/iobroker/node_modules/iobroker.zigbee/node_modules/zigbee-herdsman-converters/src/lib/tuya.ts:641:23) at Object.convertSet (/opt/iobroker/node_modules/iobroker.zigbee/node_modules/zigbee-herdsman-converters/src/lib/tuya.ts:897:57) at /opt/iobroker/node_modules/iobroker.zigbee/main.js:735:52

https://www.zigbee2mqtt.io/devices/TV02-Zigbee.html

This occurs on following thermostats:
TV02-Zigbee / TS0601 manufacturer: _TZE200_hue3yfsn and _TZE200_mudxchsu

The processing of the field weekScheduleType must be fixed here.

hard copy from debugger:

tuya js weekScheduleType v15 107 0

Patching the field weekScheduleType in the debugger as work around helps to fill the 7 schedule fields.

see also this issue ioBroker/ioBroker.zigbee#1898

@9Mad-Max5
Copy link
Contributor

Didn't work at my side.
Still get the same error only hard coding it to a value helped at my situation.

Copy link
Contributor

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 30 days

@github-actions github-actions bot added the stale label Sep 10, 2024
@bruno4712
Copy link
Author

who can fix this?

@9Mad-Max5
Copy link
Contributor

I wasn't able to make a proper fix in my mind.
But I let it set default to "separate" this at least makes the code working.

Here is the according pull request.
#8386

Main issue for me understanding is that during the send_payload from the iobroker.zigbee only the message itself is provided, this will unfortunately never contain the working_day setting.
With sticking with separate is unfortunate but at least give's the possibility to use the thermostats.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants