casperse
(Casperse)
October 13, 2018, 7:14pm
1
Hi All
How do you setup multiple Harmony hubs in the config file?
> remote:
> - platform: harmony
> name: hub_stuen
> hosts:
> - 192.168.1.13
> - 192.168.1.14
>
> remote:
> - platform: harmony
> name: hub_stuen
> host: 10.168.1.13
> name: hub_aktivitet
> host: 10.168.1.14
I just cant get it working?
Best regards
Casperse
nickrout
(Nick Rout)
October 13, 2018, 7:34pm
2
You shouldn’t need to set anything, discovery will find them.
casperse
(Casperse)
October 13, 2018, 7:36pm
3
hass.io finds them and generates the harmony hub files
But my activation script only works when I have defined a hub manually with name and IP?
casperse
(Casperse)
October 13, 2018, 7:37pm
4
remote:
- platform: harmony
name: 'hub_aktivitet'
host: 192.168.0.165
name: 'hub_stuen'
host: 192.168.0.166
## Input_select harmony
input_select:
tv_stue:
name: TV stue
options:
- 'PowerOff'
- 'Se Film & TV'
- 'Lyt til Musik'
initial: 'PowerOff'
icon: mdi:monitor
tv_aktivitesrum:
name: TV Aktivitetsrum
options:
- 'PowerOff'
- 'Chromecast'
- 'Play a PS4 Game
# Harmoney scripts
tv_stuen_activity_on:
alias: Tænd se Film & TV
sequence:
- service: remote.turn_on
entity_id: remote.hub_stuen
data:
activity: "Se_Film_&_TV"
tv_stuen_activity_off:
alias: Sluk se Film & TV
sequence:
- service: remote.turn_off
entity_id: remote.hub_stuen
data:
activity: 'Se_Film_&_TV'
casperse
(Casperse)
October 13, 2018, 7:51pm
5
If I remove it and use discovery only one Hub works?
casperse
(Casperse)
October 13, 2018, 11:05pm
6
This might be the solution but I dont really understand the setup?
casperse
(Casperse)
October 14, 2018, 10:47am
7
Anybody who can help me having two harmony hubs?
D I have to disable auto discovery and set them manually?
Auto discovery only works for the first it finds?
Here is my config for two Harmony hubs that works fine.
remote:
- platform: harmony
name: Shaynohub
host: 192.168.0.6
- platform: harmony
name: Cinema
host: 192.168.0.20
activity: Movie
1 Like
casperse
(Casperse)
October 15, 2018, 6:33am
9
@Shayne_Bergan I tried that but got errors in the log file?
did you disable auto discovery for harmony?
Do I need to list all activities under each remote hub?
Sofar I have mine in a select list:
## Input_select harmony
input_select:
tv_stue:
name: TV stue
options:
- 'PowerOff'
- 'Se Film og TV'
- 'Lyt til Musik'
initial: 'PowerOff'
icon: mdi:monitor
tv_aktivitesrum:
name: TV Aktivitetsrum
options:
- 'PowerOff'
- 'Chromecast'
- 'Play a PS4 Game'
And then the scripts like this:
# Harmoney scripts
tv_stuen_activity_on:
alias: "Tænd se Film og TV"
sequence:
- service: remote.turn_on
entity_id: remote.HUB_STUEN
data:
activity: 'Se Film og TV'
tv_stuen_activity_off:
alias: "Sluk se Film & TV"
sequence:
- service: remote.turn_off
entity_id: remote.HUB_STUEN
data:
activity: 'Se Film og TV'
musik_stuen_activity_on:
alias: Tænd Lyt til Musik
sequence:
- service: remote.turn_on
entity_id: remote.HUB_STUEN
data:
activity: 'Lyt til Musik'
musik_stuen_activity_off:
alias: Sluk Lyt til Musik
sequence:
- service: remote.turn_off
entity_id: remote.HUB_STUEN
data:
activity: 'Lyt til Musik'
ps4_activity_on:
alias: Tænd Play a PS4 Game
sequence:
- service: remote.turn_on
entity_id: remote.HUB_AKTIVITET
data:
activity: 'Play a PS4 Game'
ps4_activity_off:
alias: Sluk Play a PS4 Game
sequence:
- service: remote.turn_off
entity_id: remote.HUB_AKTIVITET
data:
activity: 'Play a PS4 Game'
chromecast_aktivitetsrum_on:
alias: Tænd Chromecast aktivitetsrum
sequence:
- service: remote.turn_on
entity_id: remote.HUB_AKTIVITET
data:
activity: 'Chromecast'
chromecast_aktivitetsrum_off:
alias: Sluk Chromecast aktivitetsrum
sequence:
- service: remote.turn_off
entity_id: remote.HUB_AKTIVITET
data:
activity: 'Chromecast'
aktivitetsrum_off:
alias: Sluk aktivitetsrum
sequence:
- service: remote.turn_off
entity_id: remote.HUB_AKTIVITET
data:
activity: 'PowerOff'
stuen_off:
alias: Sluk stuen
sequence:
- service: remote.turn_off
entity_id: remote.HUB_STUEN
data:
activity: 'PowerOff'
Allot of people with two hubs seem to have some switch config?
I don’t use Auto discovery at all… That could be the difference.
casperse
(Casperse)
October 15, 2018, 10:16am
11
@Shayne_Bergan
So you dont get the double errors?
YAML file /config/configuration.yaml contains duplicate key "remote". Check lines 548 and 552.
12:15 PM util/yaml.py (ERROR)
INFO:homeassistant.util.package:Attempting install of colorlog==3.1.4 Testing configuration at /config ERROR:homeassistant.util.yaml:YAML file /config/configuration.yaml contains duplicate key "remote". Check lines 548 and 552.
12:14 PM components/hassio/__init__.py (ERROR)
YAML file /config/configuration.yaml contains duplicate key "remote". Check lines 548 and 552.
12:14 PM util/yaml.py (ERROR)
YAML file /config/configuration.yaml contains duplicate key "remote". Check lines 548 and 552.
12:13 PM util/yaml.py (ERROR)
No, you only need to put remote once… Just copy the same way I’m doing mine. ,(With your IP and hub names)
casperse
(Casperse)
October 15, 2018, 11:56am
13
@Shayne_Bergan THANKS!
I read it wrong, and after changing it like you wrote above:
remote:
- platform: harmony
name: HUB_AKTIVITET
host: 192.168.0.166
# activity:
- platform: harmony
name: HUB_STUEN
host: 192.168.0.165
# activity:
and did the change to discovery
# Discover some devices automatically
discovery:
ignore:
- axis
- harmony
enable:
- homekit
And also fixed capital letters for my Hub names (Its case sensitive)
Deleted the hub files
It all works! - Thanks!
Have you been able to integrate it with Google Assistant?
# Google assistant
google_assistant:
project_id: !secret gass_projectid
api_key: !secret apikey
exposed_domains:
- switch
- light
# - group
entity_config:
script.tv_stuen_activity_on:
name: Tænd se Film og TV
expose: true
aliases:
- Tænd se Film og TV
Again thanks for pointing me in the right direction!
1 Like
DrSpaldo
(Doctor Spalding)
February 4, 2020, 9:43am
14
I just wanted to post and say thanks to @casperse & @Shayne_Bergan . I was also having this issue and ended up with a similar layout to @casperse (without the activity entry). The only thing that was stopping it from working for me was the .conf files that were previously in the directory. Once I deleted them & restarted HA it worked
1 Like