im using broadlink to control my tv and sound bar if i set up one device evrthing works fine but when i add the second switch i dont get any switch this is my confi.
switch:
- platform: broadlink
host: 192.168.1.157
mac: '34:EA:34:BB:0E:20'
timeout: 15
switches:
tv_vizio:
friendly_name: "vizio tv"
command_on: 'powercode'
command_off: powercode'
sound_bar:
friendly_name: "vizio sound bar"
command_on: 'powercode'
command_off: 'powercode'
do you have any other switch: sections in your configuration file
yes i have gpio and mqtt switches
the problem is that when i add the second broadlink switch and restart hass.io i dont get any of the broadlink switches
is it just a typo that you are missing the single quote around the powercode on the command_off?? or is this missing in the actual config?
this is my confi
- platform: broadlink
host: 192.168.1.157
mac: '34:EA:34:BB:0E:20'
timeout: 15
switches:
tv_vizio:
friendly_name: "vizio tv"
command_on: 'JgBgAAABKpIVEBUQFTUVEBUQFRAVEBUQFTYVMxcQFTUVNRU1FTUVNRURFRAVEBU1FRAVEBUQFRAVNRU1FTUVERU1FTUVNRU1FQAFAwABKkcVAAxAAAEqSBUADD8AASpIFQANBQAAAAAAAAAA'
command_off: 'JgBgAAABKpIVEBUQFTUVEBUQFRAVEBUQFTYVMxcQFTUVNRU1FTUVNRURFRAVEBU1FRAVEBUQFRAVNRU1FTUVERU1FTUVNRU1FQAFAwABKkcVAAxAAAEqSBUADD8AASpIFQANBQAAAAAAAAAA'
the thing is if i st up both at the same time is not working only works one at the time ether TV or sound bar
by the way thanks for the replay
- platform: broadlink
host: 192.168.1.157
mac: '34:EA:34:BB:0E:20'
timeout: 15
switches:
tv_vizio:
friendly_name: "vizio tv"
command_on: 'JgBgAAABKpIVEBUQFTUVEBUQFRAVEBUQFTYVMxcQFTUVNRU1FTUVNRURFRAVEBU1FRAVEBUQFRAVNRU1FTUVERU1FTUVNRU1FQAFAwABKkcVAAxAAAEqSBUADD8AASpIFQANBQAAAAAAAAAA'
command_off: 'JgBgAAABKpIVEBUQFTUVEBUQFRAVEBUQFTYVMxcQFTUVNRU1FTUVNRURFRAVEBU1FRAVEBUQFRAVNRU1FTUVERU1FTUVNRU1FQAFAwABKkcVAAxAAAEqSBUADD8AASpIFQANBQAAAAAAAAAA'
sound_bar:
friendly_name: "sound bar"
command_on: 'JgBgAAABKpIVEBUQFRAVEBUQFRAVEBUQFTYVNRU1FTUVNRU1FTYVNRUQFRAVEBUQFRAVEBU1FRAVNhU1FTUVNRU1FTUVEBU1FQAFBQABKkgVAAxBAAErRxUADEIAASpIFQANBQAAAAAAAAAA'
command_off: 'JgBgAAABKpIVEBUQFRAVEBUQFRAVEBUQFTYVNRU1FTUVNRU1FTYVNRUQFRAVEBUQFRAVEBU1FRAVNhU1FTUVNRU1FTUVEBU1FQAFBQABKkgVAAxBAAErRxUADEIAASpIFQANBQAAAAAAAAAA'
if i use this configuration doesn't work
i just restart my raspberry pi and it work thanks for the help