Harmony Hub/1 hub multiple activities

I have a harmony hub with 3 activities. When i use the harmony app each activity can be turned on independently. I have that same hub integrated currently with HA/one activity used because when all 3 are integrated the hub tries to run all and turns everything from all 3 activities including the wrong input on my receiver. Is there any way to have HA respond to individual activities on the same hub?

According to the docs, this should do it.

action:
  - service: remote.turn_on
    entity_id: remote.bed_room_hub
    data:
       activity: "Watch TV"

Appreciate the help. But I’m still a little confused. Do I have to enter this for each activity on the same hub?

You just put that with the correct details in the automation that you use to call that activity. To call a different activity you’d use another automation with the other activity specified.

Something like this?

  - platform: harmony
    name: Living Room
    activity: Watch TV
  - platform: harmony
    name: Living Room
    activity: Switch 
  - platform: harmony
    name: Living Room
    activity: XBOX 

I assume you mean in the configuration of the harmony remote in your configuration.

If so - see https://www.home-assistant.io/components/harmony/#activity

It is an optional setting for the default activity to turn on if you “turn on” the harmony remote using HASS.

you can only have one (or none)

So if I can only have one,how can I have the inputs on my receiver each as a switch in HA? Broadlink mini?

If you want to set them up so you can start them from the HA front end you could set each activity up as a script.

In your scripts file enter something like this using your names:

harmony_activity_a:
  alias: Activity A
  sequence:
  - service: remote.turn_on
    entity_id: remote.remote_name
    data:
       activity: "Activity A"

harmony_activity_b:
  alias: Activity B
  sequence:
  - service: remote.turn_on
    entity_id: remote.remote_name
    data:
       activity: "Activity B"

harmony_activity_c:
  alias: Activity C
  sequence:
  - service: remote.turn_on
    entity_id: remote.remote_name
    data:
       activity: "Activity C"
 

You will need to substitute remote_name with the name of your remote and Activity A, Activity B, and Activity C with the names of your activities.

Reload scripts and then you should have three scripts listed on the front end that you can execute individually.

I haven’t tested this but I’m hoping it works.

That works perfectly thanks again. Next question. I have a Nintendo Switch and Xbox One. What sensor would best/quickest way to monitor the Switch’s power state? I assume the Xbox Live component was do that for Xbox.

Sorry, I can’t help you there as I have neither of them. I suggest you start a new topic.

just like to say thanks @Muttly , been trying to get 2 switches to get separate harmony activities running … Worked a treat. I had already spent all day on it and got nowhere , and this really helped !

1 Like