I’m having a hard time implimenting this. I dont know if its coding, or a location issue. I had to make some adjustments to Koying’s code. (Thank you BTW) Its only 2 decimals, the command is 12VO (not a zero)
It works! There’s no way I would have figured out this on my own. No idea what “bash -c echo” means.
I’m going to try and make volume sliders in the mini media card… I may return to this thread if I get stuck since its so shell_command specific. Hopefully you’ll be able to help again if I do.
Thank you!
There are other threads with similar issues, where the resolution went through creating a shell script on the machine.
There appear to be some bug when the pipe character is used directly in a shell_command, at least when templates are used (which is 99% the case, really).
bash is the command line interpreter. What is done here is creating a “child” interpreter, passing it the command to execute via “-c”.
I can stack sliders using the custom slider card, but its shorter than the others? Is that because we’re using values 1-38?
Is there a way to scale this to 0 - 100% and have matching slider lengths?
I’m trying to send tcp commands to a remote matrix but doesn’t works.
I have tested my connection with the matrix and i can send commands from a windows tool as a tcp client. All commands as this #|M001|F001|SV01|40|U|\r\n and as hex from windows client works, from HA nothing happens and nothing to check at logs…
From HA i have tried all possible combinations with no success.
The values at ASCII for this example is the #|M001|F001|SV01|0-100|U|\r\n
My configuration.yaml has the below switch for testing only.
I have created the below post at community but we can understand why i cant send the commands.
I have use from here the bash -c option but nothing happens again. Any ideas?
Below my post to see more details about the problems and the checks which we have done with no progress.
Pls stop repeating the same question every day… As told before , you need to command to work first… First step is to get it to work in an ssh terminal session, if that works, then create the command switch…
Try “printf” as suggested in this topic, instead of NC
Hello,
I have try the printf plenty of times from the beginning of my testing without any result.
Can you write me a command with printf with my ASCII value from ssh to see if i’m doing something wrong ?
This is exactly the command which i have tested.
I think that it’s impossible to find a solution to my problem.
But i will not stop until I will find the solution.
Thank you for your support!