add automatic conversion from Broadlink to Tuya using ZHA #1467
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.
This is an attempt to propose a fix to #1355.
In few words...
A new
ZHATuyaBroadlinkControllerallows to convert Broadlink IR codes into Tuya ones and send them via ZHA to a Tuya device.In order to reuse the existing Broadlink codes json files, the new controller is instantiated based on the
controller_datacontent.To achieve that the schema control on the configuration data now supports a dictionary as
controller_dataproperty. Of course, the former string type is also supported to preserve compatibility with older configurations.The new Broadlink platform's ZHA Tuya specifics section details the information relevant to the user configuration.
Note: this has been tested only with TS1201 tuya device and Fujitsu climate with an AR-REB1E remote (using code 1287) and HA Core 2025.8.0.
Feedback from other users with different devices and codes would be appreciated to switch this pull request in non-draft state.