I am getting really ticked off trying to integrate a RMC4 mini into my HA setup. The instructions seem to be all over the place and I have no clue what the latest instructions actually are.
I am using the latest version of HA under Linux Version 2020.12.7 as reported under supervisor - system - supervisor even though I supposedly upgraded earlier today to a 2021 version.
To begin with, what do I need to put into configuration.yaml
I have tried this:
switch:
- platform: broadlink
host: 192.168.50.209
mac: ‘a0:43:b0:18:be:a6’
type: rm4c_mini
name: rm4c_mini
I get this error in the log:
Invalid config for [switch.broadlink]: [type] is an invalid option for [switch.broadlink]. Check: switch.broadlink->type. (See ?, line ?).
8:55:45 PM – Hass.io (ERROR)
If I replace ‘switch’ with ‘remote’ I no longer get the error.
Now lets assume I run this as ‘remote’ - everything ‘seems’ to work. The Broadlink integration shows the rm4c mini. I can go to Developer Tools - services -remote.learn_command and select the rmc4 mini as the entity. Next there is an ‘optional’ yaml section that doesn’t seem to be optional at all. I use this:
entity_id: remote.universal_remote_remote
device: television
command: Turn on
command_type: ir
This actually appears to be correct since I can press ‘call service’, the light on the rmc4 lights up steady and I get a notification to press the ‘turn on’ button. When I do this, the notification goes away and all seems fine.
There is no notification of the command string anywhere, there is no file in the config directory that lists the command string, there is no entry in the configuration.yaml file of the command. It seems ike I will need that command string later so where could it be ???
I then run this:
entity_id: remote.universal_remote_remote
device: television
command: Turn on
I get a brief light up on the rmc4 mini and it seems the command was sent but the TV does not turn on or off (this is a toggle type button)
I repeated the experiment withe the button ‘1’ for the TV (ie go to channel 1)
I recorded it and then sent it - the TV did actually receive the ‘1’ button press but multiple times.
I recorded the ‘1’ button again but this time didn’t hold down the button on the remote for as long, played it back and got fewer ‘1’ characters but still more than just one.
Maybe if I could see the command that is sent then I could somehow edit the send string to just send out one character but of course I have no clue where this data is kept.
Very frustrating …
Besides the location of where the command string is located, are there any other things I am doing wrong ? Should it be ‘switch’ or ‘remote’?
Sorry about this lengthy post … it’s just so frustrating when there are many versions of the instructions and things just don’t seem to come together.