Koenkk/zigbee-herdsman-converters

Unable to clear schedule of Sonoff TRVZB

jamesonuk opened this issue · 2 comments

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

throw new Error('Invalid schedule: transitions must be in format HH:mm/temperature (e.g. 12:00/15.5), ' +

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?

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

Avoiding auto close