Koenkk / zigbee-herdsman-converters

Collection of device converters to be used with zigbee-herdsman
MIT License
886 stars 2.96k forks source link

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

Open bruno4712 opened 11 months ago

bruno4712 commented 11 months ago

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 https://github.com/ioBroker/ioBroker.zigbee/issues/1898

9Mad-Max5 commented 6 months ago

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

github-actions[bot] commented 3 weeks ago

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

bruno4712 commented 2 weeks ago

who can fix this?