Open surfrock66 opened 1 year ago
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?
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: https://github.com/t0mer/broadlinkmanager-docker/issues/74
Thanks in advance
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/
@surfrock66 I ended up doing the same thing!
@rodpestell here are the exact steps that eventually worked for me.
devices.json
file, I could not get broadlink manager to work correction.Create the following helpers:
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).
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.
I have 2 Broadlink devices, an "RM Pro" and an "RM4 Pro". I can get to them in broadlink-python (though they're in a different subnet, so no discovery, but I have the mac and IP). In broadlink python, I can get the "devtype" which is 21011 for the RM4 Pro, and 10026 for the RM Pro. Knowing discovery across subnets is out, I've attempted to make my own devices.json file. I have tried the various model ID's on the README but none work; is this because it's in it's own subnet, or am I having trouble translating the devtype to the model needed in the json? Is it possible to map the "0x" ID to the devtype returned from the cli?