sbryfcz / harmony-card

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

Adding Harmony activity volume as volume_entity #1

Closed colfin22 closed 4 years ago

colfin22 commented 4 years ago

Many thanks for this, I'm only installing so am still getting my head around it and configuring

Is it possible? I have 3 activiities, they use different sound devices, one uses the TV, another uses my surround receiver, and a third just uses the TV speakers

sbryfcz commented 4 years ago

Interesting! Any thoughts on what the configuration might look like? Maybe we can work up an example configuration yaml?

Something like:

- type: 'custom:harmony-card'
  entity: remote.living_room_hub # the harmony entity
  volume_entity: media_player.living_room # make this optional? This allows for a volume slider
  volume_device: # make this an option harmony device to use for all activities unless specified in activity?
  activities:
  - name: Play Xbox One
     device: Microsoft Xbox One
     volume_device: # optional device to use for this activity
  - name: Listen to Music
     device: Onkyo AV Receiver
     volume_device: # optional device to use for this activity

Let's iterate on this a bit and then I likely can make some quick updates.

colfin22 commented 4 years ago

Yes, default to to the Harmony activity volume unless another volume_entity is specified would be a perfect solution

sbryfcz commented 4 years ago

I’ll try to make this enhancement ASAP. Thanks for the feedback.

sbryfcz commented 4 years ago

This should be now part of release 0.8.0. Let me know if this does not meet your needs.

SmartHomeFanatic commented 4 years ago

Hi! When not specifying "volume_entity" for the card the card does not show anything :(

sbryfcz commented 4 years ago

@SmartHomeFanatic - Can you elaborate? By design if you don't specify a volume entity or device, it will hide the volume controls. But the rest of the card should be visible. Would you expect different?

SmartHomeFanatic commented 4 years ago

@sbryfcz grafik

grafik

colfin22 commented 4 years ago

Yeah I'm getting exactly the same

Screenshot-20200202210028-799x357

sbryfcz commented 4 years ago

@SmartHomeFanatic - Can you share your raw yaml config for the card?

sbryfcz commented 4 years ago

@colfin22 - Can you remove the show_error and show_warning attributes? Those are for debugging

SmartHomeFanatic commented 4 years ago

@sbryfcz grafik

colfin22 commented 4 years ago

I can confirm volume is now working for me