Hello
I have to control a polycom soundstructure, which accpets commands a port 52774.
I have setup shell commands, which I am accessing using scripts. It is working fine.
But I am unable to capture the response.
Eg - I am sending using this script -
action: shell_command.dec_amp1_vol
data: {}
response_variable: amp1db
The shell command is -
dec_amp1_vol: echo -e “dec fader "Amplifier 1" 1\n” | nc xx.xx.xx.xx 52774
The above command work good. The Polycom replies(after decreasing volume by 1db) as -
val fader “Amplifier 1” -7.0
So, I want to capture the current db (in my example -7.0db).
I have setup shell debug. I am able to get details in the trace of the script - but its blank.
entity_id: script.gardenroom_decrease_volume
state: ‘off’
attributes:
last_triggered: ‘2024-09-13T08:16:03.778148+00:00’
mode: single
current: 0
icon: mdi:volume-low
friendly_name: GardenRoom decrease Volume
last_changed: ‘2024-09-13T12:02:15.875189+00:00’
last_reported: ‘2024-09-13T12:02:15.875189+00:00’
last_updated: ‘2024-09-13T12:02:15.875189+00:00’
context:
id: 01J7NM6D639PTCR8TSCGBK4PP6
parent_id: null
user_id: null
context:
id: 01J7NM8DHK29JR3YD9C8ZJN3XM
parent_id: null
user_id: 032b6d5810b84b7e84137fe9728d13aa
amp1db:
stdout: ‘’
stderr: ‘’
returncode: 0
How do I debug? There is old thread that shell debug doesnot work. How do I get the returned response (such as -val fader “Amplifier 1” -7.0) to some entity.
Thank you