Hegel Amp H590 IP Control

Hi!

I’m trying to control my Hegel H590 Amplifier in HASS.
Hegel has posted their “IP Control Codes”, but I can’t get it to work. (link below)
I’ve tried with the “telnet” integration in HASS, but it doesn’t connect to the amp/ The command doesn’t go through

IP Control Codes: https://support.hegel.com/component/jdownloads/send/3-files/14-h590-ip-control-codes

And this is what I added to the config file:

switch:
  - platform: telnet
    switches:
      hegeltestpwer:
        resource: 10.0.0.222
        port: 50001
        command_on: -p.1<CR>
        command_off: -p.0<CR>

Any idea to what I’m doing wrong? :slight_smile:

Hi,

Please try the following. It works for me:

- platform: telnet
  switches:
    h190salon:
      resource: 192.168.55.25
      port: 50001
      command_on: -p.1
      command_off: -p.0
      command_state: -p.?
      value_template: '{{ value == "-p.1" }}'
      timeout: 0.9

Thanks alot zatekk!

I got it working with this code:

switch:
  - platform: telnet
    switches:
      hegeltestpwer:
        resource: 192.168.1.64
        port: 50001
        command_on: -p.1
        command_off: -p.0
        command_state: -p.?
        value_template: '{{ value == "-p.1" }}'
        timeout: 0.9

Do you know how i can turn up/down the volume, and change the source?

Hi,

Please try to add the following to the configuration.yaml:

shell_command:
  hegel_vol_up: 'echo -e "-v.u\r" | nc -i 1 192.168.55.25 50001'
  hegel_vol_down: 'echo -e "-v.d\r" | nc -i 1 192.168.55.25 50001'
  hegel_mute_toggle: 'echo -e "-m.t\r" | nc -i 1 192.168.55.25 50001'
  hegel_input_1: 'echo -e "-i.1\r" | nc -i 1 192.168.55.25 50001'
  hegel_input_2: 'echo -e "-i.2\r" | nc -i 1 192.168.55.25 50001'

And then use these shell commands as automation actions. I did not test it yet :slight_smile: