I’m using HA to expose some components to homekit (which seems to be working well out of the box, very cool) but I want to expose my Harmony activities. Is this even possible?
To be honest, I can’t even get my Harmony activities to show in HA so perhaps that’s half of my issue? Everything was detected automatically with the discovery component.
Harmony activities don’t appear like scripts. They are there, you just can’t see them. They act like an option for the remote. You just need to know the options. I suggest reading the documentation on Harmony. First thing you should look for is your config file that is created in the root directory. That will tell you every command that home assistant has.
Relevant info inside link:
Configuration file:
Upon startup one file will be written to your Home Assistant configuration directory per device in the following format: harmony_REMOTENAME.conf . The file will contain:
List of all programmed activity names and ID numbers
List of all programmed device names and ID numbers
List of all available commands per programmed device
Ok, understood. My ambiguity comes from the second example in the docs:
# Example configuration.yaml entry with discovery
- platform: harmony
name: Living Room
activity: Watch TV
Notice that this example doesn’t have the - remote designation.
Forgive me but I’m not sure that’s accurate. The information in the docs indicates that you can set a default activity and the default toggle will control it. That’s all I’m trying to do at the moment. From the docs:
activity ( Optional ): Activity to use when turn_on service is called without any data. Overrides the activity setting for this discovered hub.
My statement is 100% accurate. Assigning an activity at startup just allows you to use an action without specifying the activity name or id when turnon is used.
Here is an example switch that I use that properly sets the activity. Notice how the activity is specified in the turn_on action?
Here is my harmony configuration (Notice the lack of activity in the setup):