Hi experts, is the first time I write, sorry but I’m totally neophyte. I’m trying to configure the RM2 PRO remote but I keep having this error,
can someone tell me where I’m wrong?:
2018-01-07 17:17:04 ERROR (MainThread) [homeassistant.config] Invalid config for [switch.broadlink]: expected a dictionary for dictionary value @ data[‘switches’][‘command_off’]. Got ‘sgomAA8HBAcEDAUGCQwFBgQHBAcEBwkMCQcEDAkHBAcEBwQMBAcEBwQHAAA=’
expected a dictionary for dictionary value @ data[‘switches’][‘command_on’]. Got ‘sgomAA8HBAcEDAUGCQwFBgQHBAcEBwkMCQcEDAkHBAcEBwQMBAcEBwQHAAA=’
expected a dictionary for dictionary value @ data[‘switches’][‘friendly_name’]. Got ‘TV’
expected a dictionary for dictionary value @ data[‘switches’][‘tv’]. Got None. (See ?, line ?). Please check the docs at https://home-assistant.io/components/switch.broadlink/
…
Failed config
switch.broadlink:
platform: broadlink
host: 192.168.X.X
mac: XX:XX:XX:XX:XX:XX
switches: [source /home/homeassistant/.homeassistant/configuration.yaml:89]
command_off: sgomAA8HBAcEDAUGCQwFBgQHBAcEBwkMCQcEDAkHBAcEBwQMBAcEBwQHAAA=
command_on: sgomAA8HBAcEDAUGCQwFBgQHBAcEBwkMCQcEDAkHBAcEBwQMBAcEBwQHAAA=
friendly_name: TV
tv: None
timeout: 15
type: rm2_pro_plus
Yes, the only thing I can see is the indent after ‘tv’ entry so that it is parsed as a block.
See my conf, you can also put the IR code on another line, provided you indent here too.