Hello,
I am adding a teardown for my MOES MS108WR Smart Curtain Switch Module.
It's running the Beken BK7231T.
I've removed the small board to reflash it, but I think you can leave it on
I have run into trouble because I couldn't make a proper backup and flash it right away. For reasons that are unclear, I got error messages when reading the Tuya parameters.
I was able to provide it with new Firmware: 1.17.201 (without error messages).
It has some instability issues. But I think there is a newer version (208), so I got to update it (ota).
This is the json file for the unit, with the correct config:
For the dashboard (card) I used the code from richardsg307 and adapted it for my needs.
( I really need to update the firmware to version 1.17.208 as soon as possible because it is now very unstable
hopefully it will solve it.)
also forgot to post the autoexec file, so here it is
// Set up Aliases MOES MS-108WR Curtainswitch
alias Set_Stop backlog setChannel 3 0; setChannel 2 0; setChannel 1 0; setButtonColor 3 red; setButtonColor 2 red; setButtonColor 1 red
alias Set_Open backlog setChannel 1 1; setButtonColor 1 blue
alias Set_Close backlog setChannel 2 1; setButtonColor 2 blue
alias Set_Finish backlog setChannel 3 1; setButtonColor 3 blue
alias Start_Opening backlog stopAllScripts; startScript autoexec.bat openobk5593B8EB
alias Start_Closing backlog stopAllScripts; startScript autoexec.bat closeobk5593B8EB
alias Stop_All backlog stopAllScripts; startScript autoexec.bat stopobk5593B8EB
// create GUI buttons for HTTP panel
startDriver httpButtons
setButtonEnabled 1 1
setButtonLabel 1 "Open Scherm"
setButtonCommand 1 Start_Opening
setButtonColor 1 red
setButtonEnabled 2 1
setButtonLabel 2 "Sluit Scherm"
setButtonCommand 2 Start_Closing
setButtonColor 2 red
setButtonEnabled 3 1
setButtonLabel 3 "Stop"
setButtonCommand 3 Stop_All
setButtonColor 3 red
// Hide the default GUI buttons
setChannelVisible 1 0
setChannelVisible 2 0
setChannelVisible 3 0
// Loading Event Handlers
addEventHandler OnClick 7 Start_Closing
addEventHandler OnClick 8 Start_Opening
//addEventHandler OnClick 10 Stop_All
// Stop obk5593B8EB on power up
goto stopobk5593B8EB
// do not proceed
return
openobk5593B8EB:
Set_Stop
delay_s 0.1
Set_Open
delay_s 15
Set_Stop
Set_Finish
delay_s 3
Set_Stop
return
closeobk5593B8EB:
Set_Stop
delay_s 0.1
Set_Close
delay_s 15
Set_Stop
Set_Finish
delay_s 3
Set_Stop
return
stopobk5593B8EB:
Set_Stop
Set_Finish
delay_s 3
Set_Stop
return
I am adding a teardown for my MOES MS108WR Smart Curtain Switch Module.



It's running the Beken BK7231T.
I've removed the small board to reflash it, but I think you can leave it on



I have run into trouble because I couldn't make a proper backup and flash it right away. For reasons that are unclear, I got error messages when reading the Tuya parameters.
I was able to provide it with new Firmware: 1.17.201 (without error messages).
It has some instability issues. But I think there is a newer version (208), so I got to update it (ota).
This is the json file for the unit, with the correct config:
Code: JSON
For the dashboard (card) I used the code from richardsg307 and adapted it for my needs.
Code: YAML
( I really need to update the firmware to version 1.17.208 as soon as possible because it is now very unstable

hopefully it will solve it.)
also forgot to post the autoexec file, so here it is

// Set up Aliases MOES MS-108WR Curtainswitch
alias Set_Stop backlog setChannel 3 0; setChannel 2 0; setChannel 1 0; setButtonColor 3 red; setButtonColor 2 red; setButtonColor 1 red
alias Set_Open backlog setChannel 1 1; setButtonColor 1 blue
alias Set_Close backlog setChannel 2 1; setButtonColor 2 blue
alias Set_Finish backlog setChannel 3 1; setButtonColor 3 blue
alias Start_Opening backlog stopAllScripts; startScript autoexec.bat openobk5593B8EB
alias Start_Closing backlog stopAllScripts; startScript autoexec.bat closeobk5593B8EB
alias Stop_All backlog stopAllScripts; startScript autoexec.bat stopobk5593B8EB
// create GUI buttons for HTTP panel
startDriver httpButtons
setButtonEnabled 1 1
setButtonLabel 1 "Open Scherm"
setButtonCommand 1 Start_Opening
setButtonColor 1 red
setButtonEnabled 2 1
setButtonLabel 2 "Sluit Scherm"
setButtonCommand 2 Start_Closing
setButtonColor 2 red
setButtonEnabled 3 1
setButtonLabel 3 "Stop"
setButtonCommand 3 Stop_All
setButtonColor 3 red
// Hide the default GUI buttons
setChannelVisible 1 0
setChannelVisible 2 0
setChannelVisible 3 0
// Loading Event Handlers
addEventHandler OnClick 7 Start_Closing
addEventHandler OnClick 8 Start_Opening
//addEventHandler OnClick 10 Stop_All
// Stop obk5593B8EB on power up
goto stopobk5593B8EB
// do not proceed
return
openobk5593B8EB:
Set_Stop
delay_s 0.1
Set_Open
delay_s 15
Set_Stop
Set_Finish
delay_s 3
Set_Stop
return
closeobk5593B8EB:
Set_Stop
delay_s 0.1
Set_Close
delay_s 15
Set_Stop
Set_Finish
delay_s 3
Set_Stop
return
stopobk5593B8EB:
Set_Stop
Set_Finish
delay_s 3
Set_Stop
return