Remote Volume Knob

Hi,
Please help me integrate my IKEA zigbee control from my GUI Slider.

Here is my code to make a slider, but I can’t get link it to a volume knob or button. ON / OFF does work.

This code in my CONFIG.yaml creates a working slider the dashboard, and a helper, but it seems to be insufficient to link with a ZHA remote.

# Apply value of a GUI slider to the shell_command
input_number:
  av_vol1:
    name: Living
    initial: 14
    min: 1
    max: 38
    step: 1
  av_vol2:
    name: Dining
    initial: 14
    min: 1
    max: 38
    step: 1
  av_vol3:
    name: Kitchen
    initial: 14
    min: 1
    max: 38
    step: 1
  av_vol4:
    name: Master Bedroom
    initial: 14
    min: 1
    max: 38
    step: 1
  av_vol5:
    name: En Suite
    initial: 14
    min: 1
    max: 38
    step: 1

shell_command:
  set_vol_to_slider1: >-
    bash -c 'echo -ne "<11VO{{'%02d'% states('input_number.av_vol1')|int }}\r\n" | nc 192.168.2.156 8080'
  set_vol_to_slider2: >-
    bash -c 'echo -ne "<12VO{{'%02d'% states('input_number.av_vol2')|int }}\r\n" | nc 192.168.2.156 8080'
  set_vol_to_slider3: >-
    bash -c 'echo -ne "<13VO{{'%02d'% states('input_number.av_vol3')|int }}\r\n" | nc 192.168.2.156 8080'
  set_vol_to_slider4: >-
    bash -c 'echo -ne "<14VO{{'%02d'% states('input_number.av_vol4')|int }}\r\n" | nc 192.168.2.156 8080'
  set_vol_to_slider5: >-
    bash -c 'echo -ne "<15VO{{'%02d'% states('input_number.av_vol5')|int }}\r\n" | nc 192.168.2.156 8080'

I’m not sure I understand what you are trying to do.
Why do you have input numbers as volumes?
And how to they relate to the IKEA remote?

Thanks for the reply. The only interaction with my multi channel amp is through the shell command using the IP Address… I think its called Telnet? This code in my config created GUI sliders in Lovelace, but I can’t link them with automation to a physical remote. In this case my IKEA knob or 5 button.

The IKEA remotes work with a Media device, but not this AMP speaker config. Any idea what to try?

Thank you
Matt

Do you not get events from the remote?

I can get data from listening to ZHA_EVENTS, the remotes work but I dont know how to get it working with shell commands and GUI helpers

Create an automation that is triggered by clockwise turn, the action will be to activate the service input_number.increment. Do the same for anti-clockwise and input_number.decrement.

Thanks Nick! That worked. I had been trying all of this with IKEA blueprints, and it seem the blueprints are the problem.
There is no ID for actions, so do I have to make a new automation for each button press?

No you don’t need one automation for each, you can use id to separate the automation for each button