Support for more universal remote controls

I’d love support for the http://xiaomi-mi.com/mi-smart-home/xiaomi-mi-smart-home-all-in-one-media-control-center/

Cheers

3 Likes

I too would like Harmony Hub support. More than just starting and stopping basic activities though. I would like to see individual actions such as pause/play etc.

That way I could have Alexa pause or mute things when I am in the kitchen. Functionality which is sorely missing from IFTTT.

3 Likes

Hey, you guys might be interested in this discussion: https://community.openhab.org/t/openhab-zmote-binding/14226

We are planning to have a dedicated binding for zmote for openHAB.

Or this discussion:

Almost done…

@Claire Would you please post some your configratution.yaml with the IR control via HA? Thanks!

Sure.
Here are the relevant entries in my switches.yaml file (my configuration.yaml file points to this with the !include switches.yaml line)

- platform: rest
  resource: http://192.168.0.111:3000/macros/Regarder%20TV
  name: "TV ON"
- platform: rest
  resource: http://192.168.0.111:3000/macros/Eteindre%20TV
  name: "TV OFF"
- platform: rest
  resource: http://192.168.0.111:3000/macros/Ecouter%20Musique%20NAS
  name: "Ecouter Musique NAS"
- platform: rest
  resource: http://192.168.0.111:3000/macros/Arreter%20Musique%20NAS
  name: "Arreter Musique NAS"
- platform: rest
  resource: http://192.168.0.111:3000/remotes/SamsungTV/KEY_PAUSE
  name: "TV Pause"
- platform: rest
  resource: http://192.168.0.111:3000/remotes/SamsungTV/KEY_PLAY
  name: "TV Play"
- platform: rest
  resource: http://192.168.0.111:3000/remotes/Harman-Kardon_HK3490/KEY_MUTE
  name: "Mute Amp"
- platform: command_line
  switches:
    musique_on_off:
      command_on: "/usr/bin/curl -X POST http://192.168.0.111:3000/macros/Ecouter%20Musique%20NAS"
      command_off: "/usr/bin/curl -X POST http://192.168.0.111:3000/macros/Arreter%20Musique%20NAS"
      command_state: sleep 5 && ping -q -W 1 -c 1 192.168.0.102

I was also looking for an universal IR controller and landed on this thread.

So for someone searching a simple IR controller, I ended up buying a BroadLink RM Mini 3 for just 13.39$.

It’s already supported by Home-Assistant, simply add a code in this style:

switch:
  platform: broadlink
  host: 192.168.0.65
  mac: '32:AA:65:FF:5A:25'
  switches:
    dolby_surround_volume:
      friendly_name: "Test dolby sound"
      command_on: 'ABCDE='
      command_off: 'ACCH='

Command can be learned by simply calling the service broadlink -> learn_command_192_168_0_65 and pressing the key to learn on the original remote.

More information in the documentation: Broadlink RM Switch

The device does the same as the Xiaomi Mi All In One Media Control Center I assume (@PhyberApex)

4 Likes

A small update: the price seems to have increased since my last post, so don’t be surprise if you cannot find it for 13.39$, it’s now 21.92$ on Aliexpress!

You can now find it for 15,88$ on BangGood website.

In addition to the IR blaster above, you could also add a WiFi power switch and work out what state your equipment defaults to when the power is restored to the receiving IR devices. At least this way, you will always know that off is off and when you restore power to the devices you will know what state they currently are in (or should be in if their state doesn’t reset to a default).

I am using a broadlink to control my TV via IR. I wonder what people have built as a frontend to control channels and volume? Is there a quick way to display some commonly used buttons and add the required IR codes to those buttons?

You could use floorplan …

1 Like

USING OLD ANDROID PHONE AS REMOTE WITH ANYMOTE AND IFTTT:

i got it working using ANYMOTE apk and ifttt of course. DETAILS ON SETUP

keep phone at least 5 feet from television for best action performance.

heres a 3d print model for a docker.

Also here is android infrared:

P.S Phone must have IRBLASTER support

To track the Power ON/OFF state of IR controlled devices what cheap/reliable hardware monitors do you use? I’ve seen Sonoff Pow mentioned till now.

i purchased a cheap ir decoder on ebay for like 5 bux(and i didnt have to wait for it to be shipped from china) https://www.ebay.com/itm/152801792236?ul_noapp=true.
yeah this guy lied about the transmitter, i should of known when i didnt see the led on it lol
P.S i havent tried transmitting on this particular component yet, but the seller states it transmits as well as recieves. but the decoding works great for practically any tv.

Would’ve thought current draw is the only way if they don’t have any wireless connectivity and the Pow is about as cheap but still reliable as they get.

Ordered 3 pieces (one for AC, one for TV and another one for the HiFi Receiver). Will flash with Tasmota as soon as they arrive.

hi, regarding irtrans (http://www.irtrans.de), i wrote a quick and dirty component:

hope it helps someone :wink:

@fake thank you for your component

I tried to integrate you comonent but there is something wrong

I add the irtrans.py in the folder /home/homeassistant/.homeassistant/custom_components/switch/

And I added irtrans: in my configuration.yaml

But I have this error when I check the configuration.yaml

“Component error: irtrans - Integration irtrans not found”

Could you help me to find where I’m wrong ?

hi pitp2,

the structure for custom_components has changed a while back, irtrans.py should now live in:

/home/homeassistant/.homeassistant/custom_components/irtrans/switch.py

that way, newer homeassistant versions can pick it up again :slight_smile:

good luck!

fake

Hey folks. I’ve made a simple component for zmote.io bridge. It’s a simple esp8266 based IR bridge, i believe they might have a DYI version too.

Integration is simple and straightforward, because i’m not good in python. But it works. Many thanks to initialed85 for the original python module.

remote:
  - platform: zmote
    host: 192.168.0.10
    devices:
      - name: Yamaha Stereo Receiver
        commands:
          - name: "TOGGLE"
            data: "1:1,0,38000,2,69,343,171,21,22,21,65CCCCCBCBBBBBBCBCBCBCBBCBCBCBCC21,1672,343,86,21,3730"
          - name: "ON"
            data: "1:1,0,38000,2,1,343,171,21,22,21,65CCCCCBCBBBBBBCBCCCCCCBCBBBBBBC21,1672"
          - name: "OFF"
            data: "1:1,0,38000,2,1,343,171,21,22,21,65CCCCCBCBBBBBBCCCCCCCCBBBBBBBBC21,1672"

Feel free to change the code whatever you like.