Skip to content

Commit

Permalink
Curtain state is using data type 0x04 (bitmap) and not 0x01 (boolean)
Browse files Browse the repository at this point in the history
  • Loading branch information
pipiche38 committed Aug 17, 2024
1 parent cc9ebf5 commit 71afeea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/tuyaTS0601.py
Original file line number Diff line number Diff line change
Expand Up @@ -971,7 +971,7 @@ def ts0601_curtain_state( self, NwkId, Ep, dp, openclose=None):
return
self.log.logging("Tuya0601", "Debug", "ts0601_curtain_state - %s Switch Action: dp:%s value: %s" % (
NwkId, dp, openclose))
action = "%02x01" % dp # I
action = "%02x04" % dp # I
data = "%02x" % (openclose)
ts0601_tuya_cmd(self, NwkId, Ep, action, data)

Expand Down

0 comments on commit 71afeea

Please sign in to comment.