lw94
(Lasse W)
January 19, 2023, 7:54pm
1
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?
zatekk
(Zatekk)
February 18, 2023, 9:39am
2
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
lw94
(Lasse W)
February 20, 2023, 1:47pm
4
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?
zatekk
(Zatekk)
February 21, 2023, 9:46pm
5
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