feat(tuya): update TRV603WZ definition and add converters#10930
Merged
Koenkk merged 1 commit intoKoenkk:masterfrom Dec 3, 2025
pe-pe:tuya_trv603_wz
Merged
feat(tuya): update TRV603WZ definition and add converters#10930Koenkk merged 1 commit intoKoenkk:masterfrom pe-pe:tuya_trv603_wz
Koenkk merged 1 commit intoKoenkk:masterfrom
pe-pe:tuya_trv603_wz
Conversation
- Refactor/improve TRV603WZ definition to better match device capabilities. - Add `divideByWithLimits` to `valueConverterBasic` - Add `thermostatHolidayStartStopUnixTS` and `thermostatScheduleDayMultiDP_TRV603WZ` to `valueConverter`
Owner
|
Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TL;DR
divideByWithLimitstovalueConverterBasicthermostatHolidayStartStopUnixTSandthermostatScheduleDayMultiDP_TRV603WZtovalueConverterNew 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 byholiday_timewith the newthermostatHolidayStartStopUnixTSconverter.schedule_<day>which was invalid/not-exposed is now correctly handled with the newthermostatScheduleDayMultiDP_TRV603WZconverter.Breaking Changes:
Below changes are introduced in order to better align with climate control and HomeAssistant GUI components:
heating_stopis replaced bysystem_mode(auto/off).modeis replaced bypreset(schedule/manual/holiday).Below changes are introduced to align to other thermostats and for clarity:
windowis renamed towindow_openswitch_scaleis renamed toanti_scale