Update drv_tuyaMCU.c for implementation of the command 0x22 as "State" command for temp/hum/batt etc.#2119
Open
anlohan2026 wants to merge 8 commits into
Open
Update drv_tuyaMCU.c for implementation of the command 0x22 as "State" command for temp/hum/batt etc.#2119anlohan2026 wants to merge 8 commits into
anlohan2026 wants to merge 8 commits into
Conversation
New command 0x22 for state
Edit: case 0x22 seems tü be wrong, changed tü command 0x23 instead. Atherwise it conflicting with new CMD_C83_STATE
Newest release not working with Wifi/Zigbee TH01 sensors with T1-3S modules (BK7238) produced in 2026, tuyamcu sends temp/hum/batt states via command 0x22
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.
Newest TH01/ZTH01 wifi/Zigbee battery low power sensors (C83_FLY_TH01, 01/2026) uses command 0x22 as state command instead of 0x07. See case 0x22: (or per #define TUYA_CMD_C83_STATE 0c22) state_updated = true; g_sendQueryStatePackets = 0;