Hi there, I’m new in HA. I have already configurate my broadlink RM pro, I can get IR codes when I use the development utility. I have already setup the retrived codes, but I didn’t see any think changed in my dashboard. If I try to send codes with development tool (switches on, etc…), nothing happens. Has any body a clue?
Thanks
Hello,
Can you post your code please?
Did you put the code in a switch or in a script? And did you put this in a group?
For instance, declare this:
- platform: broadlink
host: 192.168.1.xx
mac: 'xx:xx:xx:x:x:x:x'
name: 'switch broadlink'
switches:
tv_lg:
friendly_name: 'TV LG Salon'
command_on: 'JgBQAAABJ5MTEhISEzcTEhMSExETEhMSEzYUNhMSEzYTNxM3EzYTNxMSExETEhM3ExITERMSExITNxM2EzcTEhM2EzcTNhM3EwAFQQABJ0gTAA0FAAAAAAAAAAA='
command_off: 'JgBQAAABJ5MTEhISEzcTEhMSExETEhMSEzYUNhMSEzYTNxM3EzYTNxMSExETEhM3ExITERMSExITNxM2EzcTEhM2EzcTNhM3EwAFQQABJ0gTAA0FAAAAAAAAAAA='
Then display it in a group like this:
tvsalon:
name: tvdusalon
entities:
- switch.tv_lg
Thanks Sebastien for your response, my configuration.yaml looks like this:
group: !include groups.yaml
switch:
platform: broadlink
host: 192.168.2.xxx
mac: ‘34:ea:34:f4:3e:xx’
name: ‘switch broadlink’
switches:
marantz:
friendly_name:“Ampli”
command_on:‘JgDIAFUfDR8NEQ0QKi0OEA0QDRANEBwfDg8ODw0QDREMERsQDR8NEA4ACqhVHw0fDRANECouDg8NEA0RDRAcHg4PDRENEA4PDRAcEA0fDg8OAAqnVR8OHg4QDRAqLQ0RDRANEA0QHB8NEA0QDg8NEA0RGxANHw4PDQAKqVUfDh4OEA0QKS4OEA0QDg8NEBsfDRENEA4PDRANERsQDh4NEA0ACqlVHw4eDhANECotDRENEA0QDRAcHw0QDRANEA0QDREbEA0fDg8NAA0F’
command_off:‘JgDIAFUfDR8NEQ0QKi0OEA0QDRANEBwfDg8ODw0QDREMERsQDR8NEA4ACqhVHw0fDRANECouDg8NEA0RDRAcHg4PDRENEA4PDRAcEA0fDg8OAAqnVR8OHg4QDRAqLQ0RDRANEA0QHB8NEA0QDg8NEA0RGxANHw4PDQAKqVUfDh4OEA0QKS4OEA0QDg8NEBsfDRENEA4PDRANERsQDh4NEA0ACqlVHw4eDhANECotDRENEA0QDRAcHw0QDRANEA0QDREbEA0fDg8NAA0F’
But I get this error on startup:
2017-05-09 18:43:17 ERROR (MainThread) [homeassistant.config] Invalid config for [switch.broadlink]: expected a dictionary for dictionary value @ data[‘switches’]. Got None. (See ?, line ?). Please check the docs at https://home-assistant.io/components/switch.broadlink/
thanks again
Where can I save this Scripts?
thanks
Alex
Try to wrap your config so that we can see indents (very important in YAML) . Guessing you found this but make sure you follow the formatting here https://home-assistant.io/components/switch.broadlink/.
Try:
switch:
- platform: broadlink
host: 192.168.2.xxx
mac: '34:ea:34:f4:3e:xx'
name: 'switch broadlink'
switches:
marantz:
friendly_name:"Ampli"
command_on:'JgDIAFUfDR8NEQ0QKi0OEA0QDRANEBwfDg8ODw0QDREMERsQDR8NEA4ACqhVHw0fDRANECouDg8NEA0RDRAcHg4PDRENEA4PDRAcEA0fDg8OAAqnVR8OHg4QDRAqLQ0RDRANEA0QHB8NEA0QDg8NEA0RGxANHw4PDQAKqVUfDh4OEA0QKS4OEA0QDg8NEBsfDRENEA4PDRANERsQDh4NEA0ACqlVHw4eDhANECotDRENEA0QDRAcHw0QDRANEA0QDREbEA0fDg8NAA0F'
command_off:'JgDIAFUfDR8NEQ0QKi0OEA0QDRANEBwfDg8ODw0QDREMERsQDR8NEA4ACqhVHw0fDRANECouDg8NEA0RDRAcHg4PDRENEA4PDRAcEA0fDg8OAAqnVR8OHg4QDRAqLQ0RDRANEA0QHB8NEA0QDg8NEA0RGxANHw4PDQAKqVUfDh4OEA0QKS4OEA0QDg8NEBsfDRENEA4PDRANERsQDh4NEA0ACqlVHw4eDhANECotDRENEA0QDRAcHw0QDRANEA0QDREbEA0fDg8NAA0F'
Hi there, thanks azeroth12. If I set this config in my YAML file, I didn’t get any error,
group: !include groups.yaml
switch:
- platform: broadlink
host: 192.168.2.214
mac: '34:ea:34:f4:3e:27'
name: 'switch broadlink'
marantz:
friendly_name:'Ampli'
command_on:'JgDIAFUfDR8NEQ0QKi0OEA0QDRANEBwfDg8ODw0QDREMERsQDR8NEA4ACqhVHw0fDRANECouDg8NEA0RDRAcHg4PDRENEA4PDRAcEA0fDg8OAAqnVR8OHg4QDRAqLQ0RDRANEA0QHB8NEA0QDg8NEA0RGxANHw4PDQAKqVUfDh4OEA0QKS4OEA0QDg8NEBsfDRENEA4PDRANERsQDh4NEA0ACqlVHw4eDhANECotDRENEA0QDRAcHw0QDRANEA0QDREbEA0fDg8NAA0F'
command_off:'JgDIAFUfDR8NEQ0QKi0OEA0QDRANEBwfDg8ODw0QDREMERsQDR8NEA4ACqhVHw0fDRANECouDg8NEA0RDRAcHg4PDRENEA4PDRAcEA0fDg8OAAqnVR8OHg4QDRAqLQ0RDRANEA0QHB8NEA0QDg8NEA0RGxANHw4PDQAKqVUfDh4OEA0QKS4OEA0QDg8NEBsfDRENEA4PDRANERsQDh4NEA0ACqlVHw4eDhANECotDRENEA0QDRAcHw0QDRANEA0QDREbEA0fDg8NAA0F'
but I can’t see the switch anywhere, I have already created a group like this:
default_view:
view: false
icon: mdi:home
entities:
- group.menjador
name: default_view
menjador:
name: Menjador
entities:
- switch.marantz
I see a panel group called Menjador, but nothing inside it ¿¿??
You can call datagrams in a script like so:
script:
demarre_tv_cast:
alias: Demarre TV pour chromecast
sequence:
- service: broadlink.send_packet_192_168_xx_xx
data:
packet:
- "JgBQAAABJ5MTEhISEzcTEhMSExETEhMSEzYUNhMSEzYTNxM3EzYTNxMSExETEhM3ExITERMSExITNxM2EzcTEhM2EzcTNhM3EwAFQQABJ0gTAA0FAAAAAAAAAAA="
- "JgBQAAABJJMSEhISETgSEhITEBMSEhMSETcSNxMREjcSNxI3EjcSOBETERITNhM2EhITERM2EzcRNxI3ExISEhI3EjcRExETEgAFLQABJEoRAA0FAAAAAAAAAAA="
Then you just call it in your group like so:
automations_salon:
name: Automations du salon
entities:
- script.demarre_tv_cast
Thanks ssivadier, where can I put this Script, where is the right place (file), thanks and sorry for my basic questions
Basically you can put it directly in the configuration.yaml. Get to the last line, paste it, and then you’ll be able to activate the script.
Hi, sorry to jump this thread. im a total newbie this. Can you tell me how you get these codes?:
command_on:'JgDIAFUfDR8NEQ0QKi0OEA0QDRANEBwfDg8ODw0QDREMERsQDR8NEA4ACqhVHw0fDRANECouDg8NEA0RDRAcHg4PDRENEA4PDRAcEA0fDg8OAAqnVR8OHg4QDRAqLQ0RDRANEA0QHB8NEA0QDg8NEA0RGxANHw4PDQAKqVUfDh4OEA0QKS4OEA0QDg8NEBsfDRENEA4PDRANERsQDh4NEA0ACqlVHw4eDhANECotDRENEA0QDRAcHw0QDRANEA0QDREbEA0fDg8NAA0F
Hi @ubuntuman, I’m using a marantz as well, but can’t find the commands to turn-on / standby my amplifier (and my remote only has a toggle button). Can you share what kind of amplifier you are using and what you current config is? (I have a RM 6006)
How can i get code like you?