Skip to content

Commit

Permalink
Fix PAYLOAD_DICT
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Albu committed Apr 3, 2023
1 parent b8e14c2 commit 7367aa5
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions custom_components/localtuya/pytuya/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,12 +261,24 @@ class DecodeError(Exception):
COMMAND_OVERRIDE: CONTROL_NEW, # Uses CONTROL_NEW command
COMMAND: {"protocol": 5, "t": "int", "data": ""},
},
DP_QUERY: {COMMAND_OVERRIDE: DP_QUERY_NEW},
DP_QUERY: {
COMMAND_OVERRIDE: DP_QUERY_NEW,
COMMAND: {PARAMETER_GW_ID: "", PARAMETER_DEV_ID: "", PARAMETER_UID: "" },
},
DP_QUERY_NEW: {
COMMAND: {PARAMETER_CID: ""},
COMMAND: {PARAMETER_DEV_ID: "", PARAMETER_UID: "", PARAMETER_T: ""}
},
HEART_BEAT: {
COMMAND: {}
COMMAND: {PARAMETER_GW_ID: "", PARAMETER_DEV_ID: ""}
},
CONTROL_NEW: {
COMMAND: {PARAMETER_DEV_ID: "", PARAMETER_UID: "", PARAMETER_T: "", PARAMETER_CID: ""}
},
STATUS: { # Get Status from Device
COMMAND: {PARAMETER_GW_ID: "", PARAMETER_DEV_ID: ""},
},
UPDATEDPS: {
COMMAND: {PARAMETER_DP_ID: [18, 19, 20]},
},
},
}
Expand Down

0 comments on commit 7367aa5

Please sign in to comment.