While updating the TuYa BAC-002 converter to the new datapoint approach, there is a behavioral difference.
The new convertor has a separate on/off switch and System Mode (Cool, Heat, Fan_Only).
For 'Off' it calls dp: 1 to switch off, any other mode sends a zigbee message to both dp: 1 and dp: 2 to turn both the device on and set the relevant mode.
I am not sure how to write this action using the converter approach below:
While updating the TuYa BAC-002 converter to the new datapoint approach, there is a behavioral difference. The new convertor has a separate on/off switch and System Mode (Cool, Heat, Fan_Only).
The older convertor added 'Off' in the SystemMode enum using this following code: https://github.com/Koenkk/zigbee-herdsman-converters/blob/master/src/lib/legacy.ts#L6497
For 'Off' it calls
dp: 1
to switch off, any other mode sends a zigbee message to bothdp: 1
anddp: 2
to turn both the device on and set the relevant mode.I am not sure how to write this action using the converter approach below: