Flashing:
I flashed with the hid_download_py tool (uartprogram, same as described HERE ), using the UART testpoints located on the board. PIN 18 (CEN) needed to be shorted to GND to reset.
I was then able to use the device with this pin configuration:
Hey there. I have one of these, i flashed it.. But i have no idea how to use.
Could you give me any short info on how to teach it an ON and OFF button from my AC remote? It does not respond to my old AC remote.. However it does respond to Samsung TV remote.. Also once we figure, if we do, why i get no command from AC remote, which i could teach in tuya app, how do i use that data to make automation in HA based on temperature sensor to turn it ON and OFF.. So far only that, no changing in temperature.
and mosquitto on HA side.
After that I opened the webapp on the device and configured the pins like this:
After that I went to the Logs tab, and enabled IR and MQTT log feature and pointed my xiaomi lightbulb remote to the device and pushed the on-off button. The following messages appeared:
Info:MQTT:Publishing val IR_NEC 0xE384 0x24 0 to obk1F6F8DD6/ir/get retain=0
Info:IR:IR MQTT publish IR_NEC 0xE384 0x24 0 took 2ms
Info:MQTT:Publishing val IR_NEC 0xE384 0x24 1 to obk1F6F8DD6/ir/get retain=0
Info:IR:IR MQTT publish IR_NEC 0xE384 0x24 1 took 1ms
Info:MQTT:Publishing val IR_NEC 0xE384 0x24 0 to obk1F6F8DD6/ir/get retain=0
Info:IR:IR MQTT publish IR_NEC 0xE384 0x24 0 took 2ms
Info:MQTT:Publishing val IR_NEC 0xE384 0x24 1 to obk1F6F8DD6/ir/get retain=0
Info:IR:IR MQTT publish IR_NEC 0xE384 0x24 1 took 1ms
From this I learned that the code to turn the lightbulb on/off I need to send the "NEC 0xE384 0x24 0" payload via MQTT. The topic to send to is: "cmnd/<Client ID>/IRSend" where the <Client ID> is the client ID of the device from the MQTT configuration tab. For me it is obk1F6F8DD6 so the MQTT topic is: "cmnd/obk1F6F8DD6/IRSend"
With this information I added the following to HA's configuration.yaml:
And with this I was able to control the lightbulb from HA. You should be able to do something similar with your AC, your IR codes will be different ofc.
Here's the screenshot from the link, just in case, because links tends to expire rather quickly on Ali:
@rush56 can you wait a bit? We are aware about the problem. It is simply because we have slightly older IR library. It's just not added yet. Someone needs to backport the mentioned protocol to us. It's not a big problem, as we are using the IRRemote, the same as others..
Yeah no problem. But as you say you have old IR library... My AC is like.. Over 10yrs old. Maybe 15. Will have to swap soon, but it still works without any servicing or adding new gas.
Unfortunately, I can't set up this remote, because I just don’t get the codes. When I send commands from the remote, I get this in console:
Info:MQTT:Publishing val {"IrReceived":{"Protocol":"UNKNOWN","Bits":32,"Data":"0xD68EB9B2"}} to obk1FCB04B9/RESULT retain=0
How can I use this code, to add the integration to home assistant?
Thanks in advance
Hello!
It looks like you're trying to integrate an IR remote with Home Assistant using MQTT. To help you better, I need to know which device or component you're using to receive and transmit the IR signals (e.g., ESP8266 or ESP32 with Tasmota or ESPHome firmware).
Once I have this information, I can guide you on how to configure Home Assistant to recognize and use the received codes.
You can call me in any topic by writing @ElektrodaBot. Disclaimer: Some answers provided by the ElektrodaBot may be inaccurate. Elektroda not responsible for accuracy, reliability or completeness of the information presented. All ElektrodaBot responses should be verified by the user. OpenAI can monitor and save information entered after calling ElektrodaBot.
Hello! It's great to see you're using the OpenBK7231N software on the BK7231N chipset for your IR remote project. To integrate it with Home Assistant using MQTT, we need to establish a communication channel between your BK7231N device and your Home Assistant instance.
First, let's make sure your OpenBK7231N is configured to handle IR signals and communicate over MQTT. You may need to modify the provided example or write your own code for this purpose.
1. Configure the IR transmission and reception pins as per your hardware connections. 2. Implement IR send and receive functionality using the appropriate libraries for your chipset. 3. Configure the MQTT client with your MQTT broker's address, port, and credentials.
Now, assuming your OpenBK7231N is correctly set up, let's configure your Home Assistant to send and receive IR codes via MQTT:
1. Install the MQTT integration: Go to your Home Assistant, click on "Configuration" -> "Integrations" -> Click on the "+" button -> Search for "MQTT" and set up the integration with your MQTT broker's address, port, and credentials.
2. Add MQTT-based remote control to Home Assistant: Add the following lines to your `configuration.yaml` file, adjusting the `command_topic`, `state_topic`, and `name` as needed:
3. Create automations or scripts to send IR codes: You can create automations or scripts in Home Assistant that send specific IR codes to your MQTT-based remote. Here's an example of a script that sends an IR code:
4. Receive and use IR codes in Home Assistant: To receive and use IR codes in your Home Assistant instance, you need to create an automation that listens to the state of your MQTT-based remote and performs actions accordingly. Here's an example:
Make sure to replace the placeholders with your actual values and topics. After adding and adjusting the configuration, restart your Home Assistant instance to apply the changes.
If everything is set up correctly, your Home Assistant should now be able to send and receive IR codes using your BK7231N-based device over MQTT. Let me know if you have any questions or need further assistance!
You can call me in any topic by writing @ElektrodaBot. Disclaimer: Some answers provided by the ElektrodaBot may be inaccurate. Elektroda not responsible for accuracy, reliability or completeness of the information presented. All ElektrodaBot responses should be verified by the user. OpenAI can monitor and save information entered after calling ElektrodaBot.
Could you please check with the camera using your phone (iPhone will not work, only Android), when you send the code, you should see the blinking leds on the device through the camera. If it's not, then the PIN for IRSEND is not correct, I had this issue, so with my camera, I tried few of them and found the correct one.
Info:MQTT:Publishing val IR_UNKNOWN 0xC5762D5A 0 to openbk7231N-xxx/ir/get retain=0
Info:IR:IR MQTT publish IR_UNKNOWN 0xC5762D5A 0 took 8ms
Info:MQTT:Publishing val {"IrReceived":{"Protocol":"UNKNOWN","Bits":32,"Data":"0xC5762D5A"}} to openbk7231N-xxx/RESULT retain=0
Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic openbk7231N-xxx/ir/get
Info:MQTT:Publishing val IR_UNKNOWN 0xBC384B2B 0 to openbk7231N-xxx/ir/get retain=0
Info:IR:IR MQTT publish IR_UNKNOWN 0xBC384B2B 0 took 6ms
Info:MQTT:Publishing val {"IrReceived":{"Protocol":"UNKNOWN","Bits":32,"Data":"0xBC384B2B"}} to openbk7231N-xxx/RESULT retain=0
Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic openbk7231N-xxx/ir/get
Info:MQTT:Publishing val IR_UNKNOWN 0xF7F0C5E1 0 to openbk7231N-xxx/ir/get retain=0
Info:IR:IR MQTT publish IR_UNKNOWN 0xF7F0C5E1 0 took 11ms
Info:MQTT:Publishing val {"IrReceived":{"Protocol":"UNKNOWN","Bits":32,"Data":"0xF7F0C5E1"}} to openbk7231N-xxx/RESULT retain=0
Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic openbk7231N-xxx/ir/get
Then I upgraded to 1.17.158 but outcome did not change.
Tried sending some command using IRSSend command but could not observe any IR LED getting lit up when observing via a mobile phone camera.
The discussion revolves around the Aubess WiFi Smart IR Controller, focusing on its disassembly, flashing process, and integration with Home Assistant (HA). Users share experiences with flashing the device using the hid_download_py tool and configuring it for IR transmission and reception. Issues arise with certain remotes not being recognized, particularly older AC units, while others like Samsung TV remotes work effectively. Users discuss configuring MQTT for communication and troubleshooting IR code transmission. The conversation highlights the need for updated IR libraries to support various protocols and the challenges faced when integrating with HA. Additionally, users explore alternative firmware options and hardware configurations to enhance functionality. Summary generated by the language model.