Skip to content

feat(tuya): update TRV603WZ definition and add converters#10930

Merged
Koenkk merged 1 commit intoKoenkk:masterfrom
pe-pe:tuya_trv603_wz
Dec 3, 2025
Merged

feat(tuya): update TRV603WZ definition and add converters#10930
Koenkk merged 1 commit intoKoenkk:masterfrom
pe-pe:tuya_trv603_wz

Conversation

@pe-pe
Copy link
Copy Markdown
Contributor

@pe-pe pe-pe commented Dec 3, 2025

TL;DR

  • Refactor/improve TRV603WZ definition to better match device capabilities.
  • Add divideByWithLimits to valueConverterBasic
  • Add thermostatHolidayStartStopUnixTS and thermostatScheduleDayMultiDP_TRV603WZ to valueConverter

New Functions:

  • valueConverterBasic.divideByWithLimits: Divides value by a factor and clamps it within min/max limits. Useful for setpoints that report invalid values when heating is disabled.
  • valueConverter.thermostatHolidayStartStopUnixTS: Converts 8-byte big-endian Unix timestamp pairs to/from a string format "YYYY/MM/DD HH:MM | YYYY/MM/DD HH:MM".
  • valueConverter.thermostatScheduleDayMultiDP_TRV603WZ: Handles 8-pair schedule per day for TRV603WZ, encoding time and temperature into a custom byte format.

Fixed(new) Features:

  • holiday_mode, which was invalid (binary), is replaced by holiday_time with the new thermostatHolidayStartStopUnixTS converter.
  • schedule_<day> which was invalid/not-exposed is now correctly handled with the new thermostatScheduleDayMultiDP_TRV603WZ converter.

Breaking Changes:

Below changes are introduced in order to better align with climate control and HomeAssistant GUI components:

  • heating_stop is replaced by system_mode (auto/off).
  • mode is replaced by preset (schedule/manual/holiday).

Below changes are introduced to align to other thermostats and for clarity:

  • window is renamed to window_open
  • switch_scale is renamed to anti_scale

- Refactor/improve TRV603WZ definition to better match device capabilities.
- Add `divideByWithLimits` to `valueConverterBasic`
- Add `thermostatHolidayStartStopUnixTS` and `thermostatScheduleDayMultiDP_TRV603WZ` to `valueConverter`
@Koenkk Koenkk merged commit 99b7bec into Koenkk:master Dec 3, 2025
3 checks passed
@Koenkk
Copy link
Copy Markdown
Owner

Koenkk commented Dec 3, 2025

Thanks!

@pe-pe pe-pe deleted the tuya_trv603_wz branch December 3, 2025 18:55
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

Successfully merging this pull request may close these issues.

2 participants