forked from Koenkk/zigbee-herdsman-converters
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adapt TuYa converters to multiple data point change (Koenkk#3572)
* Extend `tuya_data_point_dump` to support multiple DP values per payload Adapt `scripts/read_tuya_dump.py` accordingly and make its output more helpful (print the numerical DP value and remove the `fn` field). Its output for a packet with two DP values now looks like this: ``` 2021-12-22T20:50:13 0x867829fffe2de210 (seq: 0, value: #0) [DP 1 unknown ] => enum: 1 2021-12-22T20:50:13 0x867829fffe2de210 (seq: 0, value: Koenkk#1) [DP 4 unknown ] => int: 92 ``` * Adapt TuYa "from Zigbee" converters to multiple data point change Types `commandDataReport`, `commandDataResponse`, and `commandActiveStatusReport` receive an array of DP values now (instead of a single value). Adapt existing converters to use the first entry of this array. To avoid breakage, additional DP values that may be present in a payload are ignored (as before). * Adapt TuYa library functions and "to Zigbee" converters to multiple data point change
- Loading branch information
Showing
7 changed files
with
267 additions
and
178 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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