From 71afeeab06ee77a12b3cd6774a6767101a1b9732 Mon Sep 17 00:00:00 2001 From: Patrick Pichon Date: Sat, 17 Aug 2024 22:01:20 +0200 Subject: [PATCH] Curtain state is using data type 0x04 (bitmap) and not 0x01 (boolean) --- Modules/tuyaTS0601.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/tuyaTS0601.py b/Modules/tuyaTS0601.py index 26c702b5f..c08e89720 100644 --- a/Modules/tuyaTS0601.py +++ b/Modules/tuyaTS0601.py @@ -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)