I’m having trouble with the code for the following situation:
I want to implement gate control using remote_receiver. In this case, I’ll have several remotes and only one switch as an implementation, without creating dozens of binary_sensors.
Thanks for coming here and asking a question.
Would you be so kind as to adjusting the format of your code so that we can read it properly & check the YAML spacing, etc. Editing your original is the preferred way. It is very hard for us to tell what is what when the text formatter jumbles everything like that.
You can use the </> button like this… How to format your code in forum posts
OR… Here is an example of how to fix formatting from the site FAQ Page. How to help us help you - or How to ask a good question.
What do you mean by “Compare” , do you want a binary_sensor with i.e a drop-down list to choose from ?
or “Conditions” i.e ( if binary-codes first 10 digit is/is_not ) ?
Do you want ON/OFF-Switch to receive other codes than turn_on/turn_off
or
Do you want the same Binary_sensor to control several On/Of Switches