logo elektroda
logo elektroda
X
logo elektroda

Teardown, flashing and configuration for Smart Tuya IR Blaster S06 [CB3S]

zweigang 21459 53
ADVERTISEMENT
  • #31 20818663
    drmarvel
    Level 2  
    I managed to get it working, model with chip (WB3S) I attach the 100% working configuration =)

    Screenshot of a device configuration with WB3S chip, showing a list of settings numbered from 0 to 28, including functions like Btn, IRRecv, LED, and IRSend.
  • ADVERTISEMENT
  • #32 20818698
    p.kaczmarek2
    Moderator Smart Home
    Thanks, but if you want me to add this to our devices database, can you post it as JSON template from the Web App?
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #34 20853102
    jupetitbon
    Level 1  
    Hi Guys,

    I'm newbie in all this domotic stuff and I try to bind my homeassistant local implementation to this IR remote. I succesfully install OpenBeken Firmware, connected remote to WIFI and set MQTT to my HA. The remote appears in HA devices with only RSSI level. In remote's WebApp I succesfully writed the desired IrSend command, when I execute it from webapp, it's working properly and my heater turn on. Now I want to create a custom action in HA to trigger this command from my HA Dashboard (with a kind of switch button) but I have no idea of where to start ?
    Any help to guide me ?

    Regards
  • ADVERTISEMENT
  • #35 21209368
    campeanu
    Level 2  
    >>20853102
    Hi,
    Did you manage to figure it out? I'm also done flashing, connecting and configuring, I manage to successfully send IR commands from the Logs tab in the WebApp and my devices are responding. Unfortunately I have no idea how to control everything from Home Assistant...
    Thanks
  • #36 21209632
    p.kaczmarek2
    Moderator Smart Home
    If you can send IR commands from logs tab, then you can also run them via MQTT. We have a cmd interface to execute commands via HASS:
    https://github.com/openshwprojects/OpenBK7231T_App/blob/main/docs/mqttTopics.md
    A section of a table from MQTT documentation with a highlighted field regarding commands.
    Then you just need to make the certain MQTT publish on Home Assistant side. You can check out this topic to see how to make such a button in hA:
    https://www.elektroda.com/rtvforum/topic4015423.html
    Helpful post? Buy me a coffee.
  • #37 21209664
    campeanu
    Level 2  
    >>21209632
    Thanks a lot, it was really helpful. I've managed to create a button in HA that will turn on my Yamaha receiver.
    The button card config is as follows:
    Screenshot of button card configuration in Home Assistant for turning on Yamaha amplifier.
  • #38 21209673
    p.kaczmarek2
    Moderator Smart Home
    If you want, you can also share Yaml code, it's possible to copy it from HA as well
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #39 21209679
    campeanu
    Level 2  
    Here it is:
    show_name: true
    show_icon: true
    type: button
    tap_action:
      action: perform-action
      perform_action: mqtt.publish
      target: {}
      data:
        retain: false
        topic: cmnd/obk0DCDDC8C/irsend
        payload: NEC-7A-1D-1
        qos: 0
    icon: mdi:power
    name: Yamaha ON
  • #40 21321614
    Buddy79
    Level 3  
    Hello everyone.
    I purchased this IR transmitter, I performed the various operations:
    Flash the chip
    WiFi connection
    Setting the device name
    MQTT configuration
    Discovery on Home Assistant

    The device is now working and connected to Home Assistant. It works correctly both to receive IR signals and to send them to my TV.

    My problem is that on Home Assistant it only sees the Button entity and the diagnostic entities do not update.

    Home Assistant configuration interface for an IR transmitter with device information, controls, and diagnostics.

    If I click on the button it works, the LED turns off and on.
    How can I also add the IR entity to be able to send / receive commands and enable the diagnostic entities?

    I think I'm missing a step to configure them... but I haven't found it.

    Thanks.
  • #41 21321640
    zweigang
    Level 4  
    >>21321614
    Hello Buddy,
    You have to use a mqtt topic with your device Device Name, my script for example is
    
    alias: Send IR to Verstärker
    sequence:
      - service: mqtt.publish
        metadata: {}
        data:
          qos: "{{qos}}"
          topic: cmnd/obkFF433D27/IRSEND
          payload: "{{payload}}"
          retain: false
    mode: single
    icon: mdi:remote
    fields:
      qos:
        selector:
          number:
            min: 0
            max: 2
            step: 1
        name: qos
        default: 0
        required: true
      payload:
        selector:
          text: null
        name: Payload
        required: true
    

    There you can use the Payload for an IRSend Command. You can find instructions on the git for using IRSend. Hope this could help
  • #42 21321649
    Buddy79
    Level 3  
    >>21321640

    First of all, thank you very much for your reply.

    Sorry, but I haven't been approaching this world for long and I still don't have a clear idea of ​​everything.

    I have to load that example code you sent me into the CONFIG>HOME ASSISTANT CONFIGURATION screen and then redo the discovery, right?
  • #43 21321960
    zweigang
    Level 4  
    >>21321649
    Hi, its really no problem, everybody has to start :)
    The code is a Script, you dont have to put it in the home assistant Configuration. You Have to create a Script under Automations & scenes. You can view your script as yaml format by clicking the 3 lines on top right and there should be something like see as yaml. You can paste the Code there. Then to use it, you could use a button on a dashboard for example, which uses the script as the service, In Payload you have to find out what exactly you want to send. For example my volume up for my TV is "NEC 0x7A 0x1A".
    Maybe this helps
  • #44 21322130
    Buddy79
    Level 3  
    I understand thanks.

    I'll do some tests tonight and see what comes out.

    😅
  • #45 21322140
    p.kaczmarek2
    Moderator Smart Home
    Here is a related guide that may be useful for you: Home Assistant - how to create an event trigger button, MQTT, dashboard panel
    Helpful post? Buy me a coffee.
  • #47 21322380
    p.kaczmarek2
    Moderator Smart Home
    There is also this video which partially covers some IR event scripting in OBK:



    I hope you'll be able to understand my assistant there, she was a bit sick when we recorded that.
    Screenshot showing the interface for editing the autoexec.bat script in an IoT device with support for commands and scripting.
    Helpful post? Buy me a coffee.
  • #48 21359794
    mrsergio07
    Level 4  
    Hello

    How can I know the IR code I have to send to turn on the air conditioner for example? How can I use the learning mode?
  • #49 21362740
    Qua8824
    Level 4  
    >>21359794 you should just point the remote control to the device and push the button you'd like to replicate. In many cases you will receive more than a single command. an example from my case is:
    Info:IR:IR IR_PulseDistance 0xD21 0xD0A 0 (35 bits)
    Info:IR:IR IR_PulseDistance 0xE20 0xE0A 0 (35 bits)

    (you see it on the web application → Logs).
    Then on that log screen, on the bottom, there is a place to send commands from the device to your AC.
    for example, using my log above:
    IRSend PulseDistance-D21-D0A-0
    IRSend PulseDistance-E20-E0A-0

    (pay attention to all the adjustments between reading and sending).

    I'm a novice at this as well, but that is what I gathered till now. Not sure how to send the two commands in a row automatically, or why even I get more than one command on a single button click...
    Hope I helped you somehow.
  • #50 21363612
    mrsergio07
    Level 4  
    >>21362740 Thank you, I haven't flashed it yet, I'm gathering information as this device seems a bit more complex than the others.

    It seems simple for a single command, but I would also like to know how to send a compound command, such as turning on the air conditioning and having it set to 25ºC in heating mode, just like you can do in the app. Maybe @p.kaczmarek2 can help us with this
  • #51 21364375
    Qua8824
    Level 4  
    >>21363612 why not just send the two commands (power on) and (set to 25°) in a row, one after the other, with 2 seconds delay between them?
  • #52 21506512
    danialbazman
    Level 3  
    >>20549613

    Hi,

    I'm having an issue with the S06 (CB3S). I have successfully flashed OpenBeken onto the device and it works perfectly to receive the codes of 1 remote (Fan) but not able to receive the codes on my Air Conditioner (AC) remote at all.

    My understanding is that if the device is unknown, RAW IR Codes would be captured/received in the logs, and this happened with the Fan Remote IR Codes but the AC codes are not captured at all in the logs.

    Can someone help me with this? Is there a solution available or is it better to just return the remote?

    Thank you for your response.
  • #53 21522575
    AwfulCharlie
    Level 1  
    Thanks to all who have contributed to this thread so far, with which I've managed to get a Hama SmartIR working (I just need to program all the keys from various units and integrate them into HA)

    Round green PCB with CB3S communication module and USB-C connector.
    A printed circuit board with electronic components and a central sensor.

    Unit conveniently has provision to add a 0.1" header which I used to flash with 1.18.84
    Code: JSON
    Log in, to see the code
  • #54 21540517
    p.kaczmarek2
    Moderator Smart Home
    OBK alternative IR library (the one with hvac codes) can now be downloaded from Releases as well:
    https://github.com/openshwprojects/OpenBK7231T_App/releases
    A list of downloadable files for the OpenBK7231N project, with two irRemoteESP-related files highlighted.
    It's based on old vfonov'PR . Core OBK is using Arduino-IRRemote, while the marked extra binary is using IRRemoteESP port. Choose whatever works best for you.
    Helpful post? Buy me a coffee.

Topic summary

The discussion revolves around the teardown, flashing, and configuration of the Smart Tuya IR Blaster S06, specifically the version utilizing the CB3S chip. Users share insights on the device's hardware, including the presence of four IR LEDs and the configuration of GPIO pins for IR transmission and reception. The BK7231Flasher Tool is mentioned for flashing the device with OpenBK7231N firmware. Users also discuss issues related to IR code reading and sending commands to various devices, including TVs and air conditioners. The conversation highlights the importance of correct pin configuration and firmware compatibility, with some users successfully integrating the device with Home Assistant for remote control functionality.
Summary generated by the language model.
ADVERTISEMENT