logo elektroda
logo elektroda
X
logo elektroda

HomeMate Wi-Fi + Bluetooth Smart 4 Gang Touch Switch

marioalmeida 9870 41
ADVERTISEMENT
  • #31 20915344
    latocheski
    Level 5  
    >>20746246
    Yes, I used it but removed it from the account.

    I got a similar model, do you think you can add it to my Tuya account to extract the MCU settings?

    I tried to make a backup and restore the old model but without success, the Tuya application did not find the device.

    Screenshot of Tuya Config Quick Viewer showing attempts to extract device GPIO configuration.
  • ADVERTISEMENT
  • #32 20915516
    p.kaczmarek2
    Moderator Smart Home
    @latocheski are you really, really, 100% sure that you have rebooted device after applying that config?

    It really should not blink constantly once it has WiFi state 0x04 applied.
    Helpful post? Buy me a coffee.
  • #33 20915852
    latocheski
    Level 5  
    Yes! Hundred times! Burned the firmware some times too. No logs when press the physical buttons in the web app, no bind turn off button to correct channel. I set channel 1 to turn on and ch 7 send text "1" to off the relay. Very weird.
  • ADVERTISEMENT
  • #34 20920117
    latocheski
    Level 5  
    I just give up.

    I threw it in the trash 🤣
  • #35 20920142
    p.kaczmarek2
    Moderator Smart Home
    If you were closer to Poland, you could have sent it to me, at least for science, so I could check what was really going on wrong there.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #36 20934983
    rt400yuval
    Level 3  
    >>20742733
    Hi.
    I did like you said about DP14 and i see the option (OFF ON REMEMBER) so how can we set it on the correct option ?
    for me its on Remember but in GUI its mark on OFF...
    also i have other DP 15 that is set on light_mode:
    "15": {
                    "code": "light_mode",
                    "type": "Enum",
                    "values": {
                        "range": [
                            "none",
                            "relay",
                            "pos"
                        ]
                    }

    cant found any match for that...
    thanks for you help..
  • ADVERTISEMENT
  • #37 21100352
    reinbert91
    Level 1  
    Hello , was just wondering if there has been any clear fix for homemate 4 channel switches which have EEPROM chip ? How do we go about this ? Would appreciate any help as from the previous posts, as it looks like it's not straightforward as before .
  • #38 21100501
    p.kaczmarek2
    Moderator Smart Home
    What do you mean by fix for EEPROM? What is the issue? How may we help you? Have you managed to take 2MB backup and flash OBK?
    Helpful post? Buy me a coffee.
  • #39 21238052
    sanchetk51
    Level 2  
    >>20721595 what was your firmware version before flashing. Trying from last 2 days but no luck.
  • #40 21336811
    gavashkarraju
    Level 5  
    >>20103196 Install OpenBeken Firmware through Coudcutter and Working Very well in Home Assistant OpenBeken user interface in Home Assistant showing device info and controls.
  • #41 21336877
    p.kaczmarek2
    Moderator Smart Home
    Very nice! You can now, however, set you channel labels, so they don't show up as numbers in HA.
    https://github.com/openshwprojects/OpenBK7231T_App/blob/main/docs/commands.md
    Helpful post? Buy me a coffee.
  • #42 21355940
    gavashkarraju
    Level 5  
    Thankyou.
    am install Openbeken Firmware Homemate 4 Gang Smart Switch for tuya cloud cutter in Ubuntu OS. check install process. Add in Home Assistant.

    gavashkarraju@raspberrypi:~/tuya-cloudcutter $ sudo ./tuya-cloudcutter.sh
    Building cloudcutter docker image
    [+] Building 2.6s (13/13) FINISHED docker:default
    => [internal] load build definition from Dockerfile 0.0s
    => => transferring dockerfile: 462B 0.0s
    => [internal] load metadata for docker.io/library/python:3.9.18-slim-bul 2.4s
    => [internal] load .dockerignore 0.0s
    => => transferring context: 2B 0.0s
    => [base 1/2] FROM docker.io/library/python:3.9.18-slim-bullseye@sha256: 0.0s
    => [internal] load build context 0.0s
    => => transferring context: 3.02kB 0.0s
    => CACHED [base 2/2] RUN apt-get -qq update && apt-get install -qy --no- 0.0s
    => CACHED [python-deps 1/4] RUN pip install --upgrade pipenv 0.0s
    => CACHED [python-deps 2/4] COPY src/Pipfile /src/ 0.0s
    => CACHED [python-deps 3/4] COPY src/Pipfile.lock /src/ 0.0s
    => CACHED [python-deps 4/4] RUN cd /src && PIPENV_VENV_IN_PROJECT=1 pipe 0.0s
    => CACHED [cloudcutter 1/2] COPY src /src 0.0s
    => CACHED [cloudcutter 2/2] WORKDIR /src 0.0s
    => exporting to image 0.0s
    => => exporting layers 0.0s
    => => writing image sha256:60087160fb69cabe6d9a9050b6c42d4381b86dd7a368d 0.0s
    => => naming to docker.io/library/cloudcutter 0.0s
    Successfully built docker image
    1) Detach from the cloud and run Tuya firmware locally
    2) Flash 3rd Party Firmware
    [?] Select your desired operation [1/2]: 2
    Loading options, please wait...
    [?] How do you want to choose the device?: By firmware version and name
    By manufacturer/device name
    ► By firmware version and name
    From device-profiles (i.e. custom profile)

    bk7231n_common_user_config_ty- BK7231N / oem_bk7231n_atmosphere_light_ty
    2.0.0 - BK7231N / oem_bk7231n_irbox_mol_ty
    2.0.0 - BK7231N / oem_bk7231n_smart_ir_rf_pro_ty
    2.0.0 - BK7231N / oem_bk7231n_strip_ty
    2.0.0 - BK7231T / oem_bk7231s_light5_sm2135e_yamao
    2.0.1 - BK7231N / kltwfb_single_winctrl_rf_lns00
    2.0.1 - BK7231T / oem_bk7231s_rnd_switch
    ► 2.0.2 - BK7231N / bk7231n_common_user_config_ty
    2.0.2 - BK7231N / oem_bk7231n_light_projector_ty
    2.0.3 - BK7231T / oem_bk7231s_light5_sm2135e_yamao
    2.0.5 - BK7231N / oem_bk7231n_smart_ir_rf_pro_ty
    2.0.6 - BK7231T / WB3S_RMD_Night_Light
    2.0.8 - BK7231N / oem_bk7231n_smart_ir_rf_pro_ty
    2.0.8 - BK7231T / WB3S_RMD_Night_Light


    Performing safety checks to make sure all required ports are available
    Checking UDP port 53... Occupied by dnsmasq with PID 714.
    Port 53 is needed to resolve DNS queries
    Do you wish to terminate dnsmasq? [y/N] y
    Attempting to stop dnsmasq.service
    Checking UDP port 67... Available.
    Checking TCP port 80... Available.
    Checking TCP port 443... Available.
    Checking TCP port 1883... Occupied by mosquitto with PID 669.
    Port 1883 is needed to run MQTT
    Do you wish to terminate mosquitto? [y/N] y
    Attempting to stop mosquitto.service
    Checking TCP port 8886... Available.
    Safety checks complete.

    [?] Select your custom firmware file for BK7231N chip: ESPHome-Kickstart-v23.08.[?] Select your custom firmware file for BK7231N chip: OpenBeken-v1.17.697_bk723[?] Select your custom firmware file for BK7231N chip: ESPHome-Kickstart-v23.08.[?] Select your custom firmware file for BK7231N chip: OpenBeken-v1.17.697_bk7231n.ug.bine-Kickstart-v23.08.29_bk7231n_app.ota.ug.bin
    ESPHome-Kickstart-v23.08.29_bk7231n_app.ota.ug.bin
    ► OpenBeken-v1.17.697_bk7231n.ug.bin

    Selected Device Slug: moes-ms-105-dimmer-switch
    Selected Profile: bk7231n-common-user-config-ty-2.0.2-sdk-2.3.1-40.00
    Selected Firmware: OpenBeken-v1.17.697_bk7231n.ug.bin

    ================================================================================
    Place your device in AP (slow blink) mode. This can usually be accomplished by either:
    Power cycling off/on - 3 times and wait for the device to fast-blink, then repeat 3 more times. Some devices need 4 or 5 times on each side of the pause
    Long press the power/reset button on the device until it starts fast-blinking, then releasing, and then holding the power/reset button again until the device starts slow-blinking.
    See https://support.tuya.com/en/help/_detail/K9hut3w10nby8 for more information.
    ================================================================================

    Scanning for open Tuya SmartLife AP
    .......
    Found access point name: "SmartLife-4F49", trying to connect...
    Device 'wlan0' successfully activated with '52d7301a-73ce-4c11-94f9-3978d67d6357'.
    Connected to access point.
    Waiting 1 sec to allow device to set itself up...
    Running initial exploit toolchain...
    Exploit run, saved device config too!
    output=/work/configured-devices/sbnYQ4F6KB5E.deviceconfig
    Saved device config in /work/configured-devices/sbnYQ4F6KB5E.deviceconfig

    ================================================================================
    Power cycle and place your device in AP (slow blink) mode again. This can usually be accomplished by either:
    Power cycling off/on - 3 times and wait for the device to fast-blink, then repeat 3 more times. Some devices need 4 or 5 times on each side of the pause
    Long press the power/reset button on the device until it starts fast-blinking, then releasing, and then holding the power/reset button again until the device starts slow-blinking.
    See https://support.tuya.com/en/help/_detail/K9hut3w10nby8 for more information.
    ================================================================================

    Scanning for open Tuya SmartLife AP
    ..
    Found access point name: "SmartLife-4F49", trying to connect...
    ..........
    Found access point name: "A-4F49", trying to connect...
    Device 'wlan0' successfully activated with '866bfb8f-38ce-442b-896d-402dd390f82d'.
    Connected to access point.
    Configured device to connect to 'cloudcutterflash'
    Device is connecting to 'cloudcutterflash' access point. Passphrase for the AP is 'abcdabcd' (without ')
    Flashing custom firmware...

    ================================================================================
    Wait for up to 10-120 seconds for the device to connect to 'cloudcutterflash'. This script will then show the firmware upgrade requests sent by the device.
    ================================================================================

    Using WLAN adapter: wlan0
    Configuration file: /dev/stdin
    Using interface wlan0 with hwaddr dc:a6:32:86:c7:59 and ssid "cloudcutterflash"
    wlan0: interface state UNINITIALIZED->ENABLED
    wlan0: AP-ENABLED
    Using PSK v1 - Received PSK ID version 01
    Processing endpoint /v2/url_config
    Processing endpoint tuya.device.active
    Processing endpoint tuya.device.dynamic.config.get
    Processing endpoint tuya.device.uuid.pskkey.get
    Processing endpoint atop.online.debug.log
    Processing endpoint tuya.device.dynamic.config.get
    Processing endpoint tuya.device.dynamic.config.ack
    Processing endpoint tuya.device.upgrade.silent.get
    Processing endpoint tuya.device.timer.count
    Processing endpoint tuya.device.upgrade.status.update
    Processing endpoint /files/OpenBeken-v1.17.697_bk7231n.ug.bin
    Firmware update progress: 2%
    Firmware update progress: 11%
    Firmware update progress: 14%
    Firmware update progress: 19%
    Firmware update progress: 31%
    Firmware update progress: 35%
    Firmware update progress: 44%
    Firmware update progress: 48%
    Firmware update progress: 52%
    Firmware update progress: 57%
    Firmware update progress: 61%
    Firmware update progress: 62%
    Firmware update progress: 72%
    Firmware update progress: 87%
    Firmware update progress: 89%
    [Firmware Upload] /files/OpenBeken-v1.17.697_bk7231n.ug.bin send complete, request range: bytes=0-504271/504272
    Firmware update progress: 93%
    Firmware update progress: 95%
    Firmware file has been sent and MQTT reported a progress of nearly complete. Waiting 15 seconds to ensure flashing completes.
    Flashing should be complete. It takes about 15 seconds for the device to reboot and verify the flash was valid.
    Please wait about 30 seconds then look for signs of activity from the firmware you supplied (either watch for AP mode or check if it joined your network).

    User interface of a bedroom 4-gang smart switch application. Screenshot of editing the /autoexec.bat file with various channel settings and configurations. OpenBeken configuration interface for BK7231N device. Smart device control interface with firmware details and control switches.
    Home Assistant interface for a bedroom with four devices: light on, bar lamp off, socket on, and night lamp on.

Topic summary

The discussion revolves around the HomeMate Wi-Fi + Bluetooth Smart 4 Gang Touch Switch, specifically the Tuya 4 CH touch switch designed for Indian homes, utilizing the CB3S chip (BK7231N). Users report issues with relay functionality after flashing firmware, with some successfully integrating the device with Home Assistant by following specific autoexec.bat configurations. Key troubleshooting steps include ensuring proper MQTT connection, adjusting channel types, and managing Wi-Fi state settings to stop LED blinking. Some users faced challenges with EEPROM chips and reprogramming, while others shared insights on device behavior post-power loss and configuration settings for default states. Overall, the conversation highlights various technical aspects, solutions, and user experiences related to the device's operation and firmware modifications.
Summary generated by the language model.
ADVERTISEMENT