Koenkk / zigbee-herdsman-converters

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

Unable to clear schedule of Sonoff TRVZB #7100

Open jamesonuk opened 7 months ago

jamesonuk commented 7 months ago

I set a schedule on one of my TRVs for testing but not want to remove it but it there appears to be no way of doing so.

When going through the converter it tries to parse the values and you end up with a date is not in the right format error https://github.com/Koenkk/zigbee-herdsman-converters/blob/da06cd9dc141515f5787a87d9e1273cc8870e946/src/devices/sonoff.ts#L108 or if you publish a blank schedule

Debug 2024-02-21 11:36:43Received MQTT message on 'zigbee2mqtt/Spare Room TRV/set' with data '{"weekly_schedule": {}}'
Debug 2024-02-21 11:36:43Publishing 'set' 'weekly_schedule' to 'Spare Room TRV'

it goes through but nothing happens.

I have tried executing the command directly (looks like hvacThermostat is 513 and clearWeeklySchedule is 3 https://github.com/Koenkk/zigbee-herdsman/blob/4197dc91bd59cc17379e8abd1f2cec0a912e3852/src/zcl/definition/cluster.ts#L2099 which says it is invoked

Info 2024-02-21 12:06:59Invoked '513.3' with payload '{}'

but doesn't do anything.

I have tried sending various commands to 513.1 (setWeeklySchedule) without success.

I guess the clearWeeklySchedule is an issue with the device itself but should the converted not check if all days are empty and if so call the clearWeeklySchedule command rather than set?

github-actions[bot] commented 1 month 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

jamesonuk commented 1 month ago

Avoiding auto close