Update TYTE-D1 to support auto-work #2843
Merged
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.
Updates TYTE-D1.
Changes climate hvac_mode to based on auto-work and hvac_action to be based on the switch. This enables auto-work functioning with this integration.
Adds a manual option for the switch.
The vibration option was renamed temperature range to match what the app uses for English.
Removes the dehumidify option since it does nothing and the app does not support it.
Some pictures of the app along side the integration:
![image](https://private-user-images.githubusercontent.com/1851460/406463934-99eb43e9-3909-40e0-82d3-bff131d45f42.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4NTcxMjQsIm5iZiI6MTczODg1NjgyNCwicGF0aCI6Ii8xODUxNDYwLzQwNjQ2MzkzNC05OWViNDNlOS0zOTA5LTQwZTAtODJkMy1iZmYxMzFkNDVmNDIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwNiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDZUMTU0NzA0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MGU3MzRkMDFlZWMxZGM5MzQ0ODgxMWQ3MjdjYzA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