Add full harmony device to lovelace card

Hi there!

First off: I’m happy to be part of this community now. Amazing piece of software this is.

I started using Hassio a few days ago. So far, i added all my devices and planning to use Deconz with ikea Fyrtur(when they are in stock again).

All works, but i have some issues with the Harmony remote.

So far, i used the Harmony info (Hi,

I started using Hassio a few days ago. So far, i added all my devices and planning to use Deconz with ikea Fyrtur(when they are in stock again).

All works, but i have some issues with the Harmony remote.

So far, i used the https://www.home-assistant.io/integrations/harmony page and i got a nice .conf file:

Now , i want to have buttons on my lovelace dashboard to pause or start. How do i do that?

I can’t find a way to get them into my devices list and add them trough there.

Kind regards,
Dennis

I use https://github.com/custom-cards/button-card. You need to call the service send_command in the domain remote. The entity_id is the name of the harmony hub, the device_id is the device hooked to the harmony (like a TV), and the command is anything in that xml you posted.
My config looks like this:

              - type: "custom:button-card"
                color_type: card
                color: auto
                icon: "mdi:circle-outline"
                action: service
                service:
                  domain: remote
                  action: send_command
                  data:
                    entity_id: remote.hub
                    device: 39514665
                    command: OK

That’s one button, the whole thing looks like this:

Hey! Thanks for the quick answer!

I have the following config:

type: horizontal-stack
cards:
  - type: 'custom:button-card'
    color: auto
    color_type: card
    icon: 'mdi:volume-plus'
    action: service
    service:
      domain: remote
      tap_action:
        action: send_command
        data:
          entity_id: remote.den_room
          device: 52872953
          command: VolumeUp
  - type: 'custom:button-card'
    color: auto
    color_type: card
    icon: 'mdi:volume-minus'
    action: service
    service:
      domain: remote
      tap_action:
        action: send_command
        data:
          entity_id: remote.den_room
          device: 52872953
          command: VolumeDown

The cards work (visual) but it doesnt work on the TV. In the configuration.yaml i only have this: #discover Stuff
discovery:
enable:
- harmony
The issue i have is, the remote.den_hub (as the harmony discover file is called) is not in the Entity Registry.

How do i add that?

Hang on, mine doesn’t work either, we hardly ever use it and the formatting changed. I’ll get it fixed this evening.

Okay, updated and working (sorry about that):

      - type: 'custom:button-card'
        color: auto
        color_type: card
        icon: 'mdi:power'
        tap_action:
          action: call-service
          service: remote.send_command
          service_data:
            command: PowerToggle
            device: 39514803
            entity_id: remote.harmony_hub

I think i have another issue here:

Error executing query: (sqlite3.OperationalError) database is locked
(Background on this error at: http://sqlalche.me/e/e3q8)

That probably prevents the remote from being created. Let me check that first, before i continue on this. I’ll let you know tommorow.

I’ve never seen that, but deleting the DB fixes most of th0we problems, you’ll lose all state history though.

Hey!

Turns out, my SD was only doing 4mb/s. Causign allot of stuff. I bought a new one(class 10) 100mb/s. Now it works like a charm.

Your config worked great! Thanks for the help!

Hi Brian,

Would it be possible to get the full YAML for your Harmony card? I love your layout but am having a heck of a time trying to get it functional myself.

Thanks,

-Nick