Just wanted to ask the experts about Command Line Switch.
Is it possible to have a condition on a Command Line Switch?
I have a command line switch configured that calls out send code using wiringPi to turn on and off an RF switch(sending the code is much accurate than using the RF component).
Although there are so many options to use, I choosed the Command Line Switch so I can point my emulated hue bridge by calling out the API for the state to be update on the Home Assistant page when it is triggered via Echo and Google home.
My problem is my RF device are using the same code to turn on and off the device, so even if the switch is already on when you issue an on command the Echo or Google Home the switch will be triggered and turn off.
will the value_template work on this? or will a condition work under Command Line Switch?