Skip to content

Commit

Permalink
Merge pull request #52 from alexualbu/3.7.0
Browse files Browse the repository at this point in the history
Fix PAYLOAD_DICT for 0D CONTROL & 3.4 DP_QUERY_NEW
  • Loading branch information
leeyuentuen authored Apr 10, 2023
2 parents 5b9e513 + dcbcad5 commit 888b13f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions custom_components/localtuya/pytuya/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,14 +243,18 @@ class DecodeError(Exception):
DEV_TYPE_0D: {
DP_QUERY: { # Get Data Points from Device
COMMAND_OVERRIDE: CONTROL_NEW, # Uses CONTROL_NEW command for some reason
COMMAND: {PARAMETER_DEV_ID: "", PARAMETER_UID: "", PARAMETER_T: ""},
COMMAND: {PARAMETER_DEV_ID: "", PARAMETER_UID: "", PARAMETER_T: "", PARAMETER_CID: ""},
},
DP_QUERY_NEW: {
COMMAND: {PARAMETER_CID: ""},
},
HEART_BEAT: {
COMMAND: {}
},
CONTROL: {
COMMAND_OVERRIDE: CONTROL_NEW,
COMMAND: {PARAMETER_CID: "", "ctype": 0},
},
CONTROL_NEW: {
COMMAND: {PARAMETER_CID: "", "ctype": 0},
},
Expand All @@ -266,7 +270,7 @@ class DecodeError(Exception):
COMMAND: {PARAMETER_GW_ID: "", PARAMETER_DEV_ID: "", PARAMETER_UID: "" },
},
DP_QUERY_NEW: {
COMMAND: {PARAMETER_DEV_ID: "", PARAMETER_UID: "", PARAMETER_T: ""}
COMMAND: {PARAMETER_DEV_ID: "", PARAMETER_UID: "", PARAMETER_T: "", PARAMETER_CID: ""}
},
HEART_BEAT: {
COMMAND: {PARAMETER_GW_ID: "", PARAMETER_DEV_ID: ""}
Expand Down

0 comments on commit 888b13f

Please sign in to comment.