Replies: 11 comments
-
honestly, it was kinda nice to have all of the controls right there. will need to create a controller with another addon now. |
Beta Was this translation helpful? Give feedback.
-
I am not planning on bringing the mediaplayer back. All the weird mappings just make it unclear on how to use it and I don't want the additional maintenance. Which parts of the mediaplayer approach did you specifically like over the multiple entity approach? |
Beta Was this translation helpful? Give feedback.
-
yes, one element to control most of the settings was nice, but there's definitely ways to bring all of that control back. my current quick and dirty fix is basically:
obviously there are cleaner ways to implement this in lovelace but I haven't spent the time to do so yet |
Beta Was this translation helpful? Give feedback.
-
How I have implemented this is using a Button card with a tap action as a popup. Here is my code in case it is useful. Personally I prefer this to the media_player entity so glad I was forced to make it.
|
Beta Was this translation helpful? Give feedback.
-
Yeah, ideally someone would make a dedicated card for this or a flexible "device card" where you can easily combine multiple entities of a single device in a good looking way. In theory it should not seem that complicated from looking at the code of some front end cards, but writing something is different from reading and I just don't have the time to pick this up myself for now. For me personally the most important parts to control are power on/off the box and start/stop lightsync and to a lesser extend the brightness. I hardly ever change the other settings or they are changed automatically For reference here are some layouts I experimented with and might give ideas on how to build something of your own. Note that I am trying to mostly use the standard cards, but there is a lot of custom stuff out there which people use to build really fancy stuff, so this is definately not all that is possible. Glances cardPressing buttons toggle or cycle the entity. Cycling the select entities feels a bit janky because the updates are not instant, but otherwise works fine. It is missing brightness control Code
Buttons in footerThis is a basic list of entities, but with the power and lightsync buttons in the footer which looks a bit nicer I think Code
Alternative entitiesThis is also just an entities card but with using the custom hui-element card. That card allows you to use cards in places where usually entity rows are used. I used it to put a horizontal stack with 2 select entities so it takes less space. This does not look as good with the borders still around the cards and because of that does not even gain that much vertical space. Those borders can be removed with the card-mod custom card, but I don't have the patience to figure that one out. Code
Buttons with browermod popupThis is just a grid with a few buttons (not all filled yet) and one button to call up a "more info" dialog with all the entities. Requires the browser-mod custom integration to be installed. Code
|
Beta Was this translation helpful? Give feedback.
-
Any example on how to make a media card? |
Beta Was this translation helpful? Give feedback.
-
I use the media player entity to switch sources of the Hue Sync Box via Homekit. Therefore, I recreated the old media player functionality using the universal media player: media_player:
- platform: universal
unique_id: hue_sync_box
name: Hue Sync Box
device_class: receiver
attributes:
state: switch.hue_sync_box_power
source: select.hue_sync_box_hdmi_input
source_list: select.hue_sync_box_hdmi_input|options
commands:
turn_on:
service: switch.turn_on
target:
entity_id: switch.hue_sync_box_power
turn_off:
service: switch.turn_off
target:
entity_id: switch.hue_sync_box_power
select_source:
service: select.select_option
target:
entity_id: select.hue_sync_box_hdmi_input
data:
option: "{{ source }}"
|
Beta Was this translation helpful? Give feedback.
-
I'm still kind of new to home assistant, but I'm having a hell of a time figuring out how to make a script for increasing/ decreasing brightness values. I want to make buttons for it. I could brute force it, and for each step, say, if the brightness is 1, make it 2, and so on, but, oof. Is there a simpler way to achieve this with the current available entities? |
Beta Was this translation helpful? Give feedback.
-
Hmm... I was certain that the Until that time you can probably do it with templates or something, but I am no expert on that. Probably better to ask on the Home Assistant forums/reddit as there probably have been people that wanted something similar (the increment/decrement of a number). Alternatively you can install the Spook custom integration which is a "scary powerful toolbox for Home Assistant". Among a lot of other things it adds the missing increment/decrement services for the number entity (see https://spook.frenck.dev/number#decrease-value) |
Beta Was this translation helpful? Give feedback.
-
wait for 2023.12 release, there will be a new +/- for number entities via the tile card |
Beta Was this translation helpful? Give feedback.
-
I am cleaning up issues and since this is not really an issue I am moving it to a discussion. |
Beta Was this translation helpful? Give feedback.
-
Since the code already exists, is it possible to include old media_player as a disabled option for people who like the old version?
Beta Was this translation helpful? Give feedback.
All reactions