Invalid config for [switch.broadlink]: [gas_heater] is an invalid option for [switch.broadlink]. Check: switch.broadlink->switches->0->gas_heater. (See ?, line ?).
Iām struggling very hard with this issue and my eyes are spitting blood bc of staring at the screen.
Iām really a newbie and for my head itās very strange, bc send.command āpowerā (developerā>services UI) works perfectly fine. But when check configuration.yaml before restarting in my case HA says this:
āInvalid config for [switch.broadlink]: [power] is an invalid option for [switch.broadlink]. Check: switch.broadlink->switches->0->power. (See ?, line ?)ā
Iāve check the names of codes stored in ā.storage/broadlink_remote_XXXXXXXXXXX_codesā and itās there
I canāt understand that. Iāve tried to change the name power to command_on (as on the documentation example), then the error jumps to next command name āpower_Rāā¦ Itās a remote of an electric radiator soā¦ power to command_on I could be used to itā¦ but power_R refers to the power of the resistanceā¦and after these I have timer, temp+, temp- and fanā¦ all of them in the codes.
Is there a list of limited options? I canāt found in broadlink documentation.
Hi, myle letās see if I can paste the code correctlyā¦
This is in my configuration.yaml
#Broadlink Remote
remote:
- platform: broadlink
host: 192.168.1.73
mac: XX:XX:XX:XX:XX:XX
name: RM pro+
#Estufa mando
#Estufa mando
switch:
- platform: broadlink
mac: XX:XX:XX:XX:XX:XX
switches:
- name: Estufa mando #Also I've tried estufa_mando
power: Big Chunk of Code for power
power_R: BCoC for power_R
temp+: BCoC for temp+
temp-: BCoC for temp-
timer: BCoC for timer
fan: BCoC for fan
then, in the .storage/broadlink_remote_XXXXXXXXXXX_codes:
"estufa_mando": {
"power": "BCoC for power",
"power_R": "BCoC for power_R",
"temp+": "BCoC for temp+",
"temp-": "BCoC for temp-",
"fan": "BCoC for fan"
}
And just to remember, all codes work perfectly through remote.send > broadlink>ācommand nameā Iāve got even a multibutton card with all the options, even some āā""āmore advancedā""" options by choosing differents repetitions of remote.send services to choose with one click the temperature + power_R + timerā¦etc with one single click
What do you mean I only need to put code for ON/OFF?.. Itās the same code for on and for off, itās a very simple remoteā¦and the other options?? This I canāt understandā¦
Thanks againā¦ I supose itās something as stupid as crucial, but my brain isnāt coded for codingā¦
NO WAY!!! I think Iāve found the problemā¦ by typing here and looking everything and a good sleep the night before, of courseā¦I think my mind has enlightened itselfā¦
Just moved everything from āswitch:ā to āfan: BCoC for fanā under the hierarchy āremote:āā¦ I mean, it was a problem of formatā¦like myle suggestedā¦as I said āas stupid as crucialā
Of courseā¦āswitch:ā was not under āremote:ā hierarchyā¦it was another Āædomain? Hereās the code that allows me to pass the yaml check.
#Broadlink Remote
remote:
- platform: broadlink
host: 192.168.1.73
mac: XX:XX:XX:XX:XX:XX
name: RM pro+
#Estufa Mando
switches:
- name: Estufa mando
power: BCoC for power
power_R: BCoC for power_R
temp+: BCoC for temp+
temp-: BCoC for temp-
timer: BCoC for timer
fan: BCoC for fan
Sorry just, to make a shortcut BCoC is my acronym for Big Chunk of Code that I just used this time. Because the codes are insanely longā¦so to make things short and more easy readable.
As I said in my last post, I just found the error, it was a problem of misunderstanding how to add the field āswitch:ā. I thought it was another Āædomain? like āremote:ā and it was missplaced, just add som tab spacing to get āswitch:ā under āremote:ā hierarchy and HA yaml check was OK.