logo elektroda
logo elektroda
X
logo elektroda

Configuring Tuya Ceiling Fan (BK7231N) with OpenBeken - Need Setup Guidance

IkaSGC 345 2
ADVERTISEMENT
  • #1 21388447
    IkaSGC
    Level 2  
    I have a TUYA ceiling fan (Chipset BK7231N) successfully flashed with OpenBeken. I'm not sure how to set it up though.
    I managed to map the controls. Would anyone be willing to help me with the configuration?

    Property device from TUYA:

    Light Switch: ID:20 - Bolean
    Light WorkMode: ID:21 - enum
    Brightness: ID22 - Value (10-1000)
    Light Temperature: ID23 - Value (0-1000)
    Timer: ID:26 - Value (0-86400)

    Fan Switch: ID60 - Bolean
    Fan Speed: ID62 - Value 1-16
    Fan Direction: ID63 - enum
    Fan Countdown Left: ID:64 - unit 0-540min
    Fan Beep: ID66 - Bolean
    AI: Could you specify what particular aspect of the configuration you are having trouble with or what you are trying to achieve with the setup?
    Setup property of device
    AI: What is the model of your TUYA ceiling fan? This information might help in providing more specific guidance.
    Angistri 132cm DC motor with light
  • ADVERTISEMENT
  • #2 21389416
    IkaSGC
    Level 2  
    I try to start Driver MCU, link datapin 20 to 1, but it does nothing. :(

    startDriver TuyaMCU
    linkTuyaMCUOutputToChannel 20 1

    Added after 1 [hours] 51 [minutes]:

    So i found autoexec....

    Light On/Off is working:

    linkTuyaMCUOutputToChannel 20 1
    setChannelType 1 toggle
    addEventHandler OnChannelChange 1 backlog TuyaMCU_SendState 20 1 $CH1; publish stat/device/light $CH1
    setButtonLabel 1 Svetlo

    But brightnes not:

    linkTuyaMCUOutputToChannel 22 2 #
    setChannelType 2 range
    addEventHandler OnChannelChange 2 backlog TuyaMCU_SendState 22 2 $CH2; publish stat/device/brightness $CH2
    setButtonLabel 2 "Jas"

    LOG says:

    Info:TuyaMCU:Received: 55 AA 03 07 00 08 16 02 00 04 00 00 00 64 91
    Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 15
    Info:TuyaMCU:ParseState: id 22 type 2-val len 4
    Info:TuyaMCU:ParseState: int32 100
    Info:GEN:No change in channel 0 (still set to 0) - ignoring

    Added after 39 [minutes]:

    So, this looks like its working:

    linkTuyaMCUOutputToChannel 22 2
    setChannelType 2 dimmer1000
    addEventHandler OnChannelChange 2 backlog publish stat/device/brightness $CH2; TuyaMCU_SendState 22 2 $CH2
    setButtonLabel 2 Jas

    But from some reason, when i set for example value 500 of brightness, it will automaticly instatntly reset to 0.... Dont know why....
  • #3 21501444
    yonubear
    Level 2  
    Which tuta fan if I may ask? And how did you flash it
ADVERTISEMENT