sbryfcz / harmony-card

A Home Assistant Lovelace Care for Harmony Integration
MIT License
104 stars 12 forks source link

Unable to hide buttons #11

Closed mcowger closed 4 years ago

mcowger commented 4 years ago

Issue: I want to hide the XBOX and ABXY buttons on the card, as I dont have an XBOX or gaming stuff.

Attempt: Added the following card with config:

  - activities:
      - device: Roku Premiere+
        name: Roku
    entity: remote.harmony_living_room
    show_error: false
    show_warning: false
    type: 'custom:harmony-card'
    volume_device: Polk Audio Amp
    buttons:
      xbox:
        command: Xbox
        hide: true
      a:
        command: A
        hide: true
      b:
        command: B
        hide: true
      x:
        command: X
        hide: true
      'y':
        command: 'Y'
        hide: true

Expected Result: XBOX and A,B,X,Y buttons disappear Actual Result: Buttons remain.

sbryfcz commented 4 years ago

I'm on it. Hope to reproduce tonight and update you on my findings.

mcowger commented 4 years ago

Thanks!

sbryfcz commented 4 years ago

Weird. When I add that config (the buttons at the card level), it seems to hide things appropriately. My example below.

activities:
  - device: Microsoft Xbox One
    name: Play Xbox One
  - device: Onkyo AV Receiver
    name: Listen to Music
entity: remote.living_room_hub
type: 'custom:harmony-card'
scale: 1.25
volume_entity: media_player.living_room
buttons:
  xbox:
    command: Xbox
    hide: true
  a:
    command: A
    hide: true
  b:
    command: B
    hide: true
  x:
    command: X
    hide: true
  'y':
    command: 'Y'
    hide: true
Screen Shot 2020-02-04 at 7 03 48 PM

Can you triple check that HACS has loaded the latest version. Some people have had luck uninstalling and reinstalling the plugin.

mcowger commented 4 years ago

Uninstalling and reinstalling the plugin fixed this.

sbryfcz commented 4 years ago

It's almost like hacs should do this by default or something. Seems like that's half the trouble I see. Weird browser caching stuff

mcowger commented 4 years ago

I suppose thats why many people recommend appending a version number to the URL to force the caching issue:

vs

On Tue, Feb 4, 2020 at 4:22 PM Sam Bryfczynski notifications@github.com wrote:

It's almost like hacs should do this by default or something. Seems like that's half the trouble I see. Weird browser caching stuff

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/sbryfcz/harmony-card/issues/11?email_source=notifications&email_token=AAOXCTEGQPJFAP3OSKZ7DG3RBIBEJA5CNFSM4KP5E63KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKZWH6Y#issuecomment-582181883, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOXCTAR4K6KHAYQ2R3VXHLRBIBEJANCNFSM4KP5E63A .

-- -- Matt

sbryfcz commented 4 years ago

Oooooo. Good idea!

youareme7 commented 4 years ago

I managed to get mine to work but I can't tell how, I uninstalled/reinstalled and tried doing the versioning but it wasn't changing/hiding, then suddenly it worked on a refresh (which I'd done a ton of times) wish I knew why it works now