Code Monkey home page Code Monkey logo

Comments (4)

sameleff avatar sameleff commented on June 5, 2024

I'm having similar struggles with the RM4 Pro...I was able to get it connected to my Wifi network with the Broadlink app, but the docker Broadlink Manager keeps throwing errors when I try to use it to learn codes. I tried a similar endeavor as you (creating my own devices.json file), and Broadlink Manager is able to connect to and successfully ping my device, but I tried each of the device types for RM4 pro devices and I consistently receive an error when I click "Learn IR Code" or "Learn RF Code". Did you ever figure this out?

from broadlinkmanager-docker.

rodpestell avatar rodpestell commented on June 5, 2024

Hi @sameleff and @surfrock66. Excuse me for the direct contact but you both seem to have got further than myself in getting this working and so would it be possible to help me a little by providing some intro steps of how you got to the point for the webpage to be up and running on this thread: #74

Thanks in advance

from broadlinkmanager-docker.

surfrock66 avatar surfrock66 commented on June 5, 2024

I never actually fully got it working; instead though the broadlink integration into homeassistant works great, I've been using that. If you use homeassistant, the guide is here: https://www.home-assistant.io/integrations/broadlink/

from broadlinkmanager-docker.

sameleff avatar sameleff commented on June 5, 2024

@surfrock66 I ended up doing the same thing!

@rodpestell here are the exact steps that eventually worked for me.

  1. Connect the Broadlink device to my WiFi network without using the app.
    The only method that worked here was to install the python broadlink module and leverage those commands directly. The instructions at the link worked for me (the Broadlink WiFi SSID was different, but it's intuitive enough to choose the one that says "Broadlink"!); you only need to perform items 1 & 2. I have python on my home computer already, so this was the easiest option for me. If you don't want to mess with python, you should be able to use the Broadlink app to provision the device, then proceed with steps I outline below.
  2. Install the Broadlink integration in Home Assistant (linked by surfrock66 above). From now on, this is by far the easiest and most functional. Even after manually determining the correct device type and creating a manual devices.json file, I could not get broadlink manager to work correction.
  3. I wrote myself a quick script and created some helpers to automate the process of learning IR codes using the Home Assistant GUI. You obviously don't have to do all this, but it makes the process a lot easier when you have a lot of buttons to learn. I plan to upload all this to my github (but it'll have to be after the holidays) since this is honestly the first time I've done something other's might benefit from, so forgive the crudeness of the version below.

Create the following helpers:

  1. IRCommandName, input_text
  2. IRDeviceList, input_select
    Set the list option to the name of the Broadlink entity you just created. In my case, this is "remote.ht_controller".
    image
  3. IRDeviceName, input_text
  4. IRServiceList, input_select
    Set the list options to include the following "remote.learn_command", "remote.send_command", "remote.delete_command"
    image

Create the following script:

alias: Broadlink Training Ops Script
sequence:
  - service: "{{ states('input_select.irservicelist') }}"
    target:
      entity_id: "{{ states('input_select.irdevicelist') }}"
    data:
      device: "{{ states('input_text.irdevicename') }}"
      command: "{{ states('input_text.ircommandname') }}"
mode: single
icon: mdi:remote

Create the following manual card:

square: false
type: grid
cards:
  - type: entities
    entities:
      - entity: input_select.irservicelist
        name: Select Mode (learn, send, delete)
      - entity: input_select.irdevicelist
        name: Select IR Transmitting Device
      - entity: input_text.irdevicename
        name: Input IR Device Name
      - entity: input_text.ircommandname
        name: Input IR Command Name
    title: IR Remote Training
  - show_name: true
    show_icon: false
    name: Run script
    type: button
    tap_action:
      action: call-service
      service: script.broadlink_training_script
      target: {}
columns: 1

When you want to execute a Broadlink command, use the card to do so. Tell it what you want to do (IRServiceList), what Broadlink device to send the command from (IRDeviceList), what device the command is for (IRDeviceName), and the name of the command (IRCommandName).
image

As mentioned in the Broadlink integration help, you can see the codes you have learned in the file created in the .storage folder of your Home Assistant.

from broadlinkmanager-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.