Thanks for answearing.
@RonnyW , may I ask you, is there some way how to add directly such âlistboxâ from HA ?

Thank you
Not in the GUI (App, WebApp) with dynamic content. Mode capabiities must be defined in the app with fixed entries. Thatâs why mist GUI selectors have standard HA values. If an integration uses custom values instead, you canât use them in the app
Only possible way tonuse dynamic lists is as autocomplete field in flow cards - like already implemented for modes (vacuum, climate âŠ).
Hmm, thank you, not sure I understand but they are not dynamic.
I was hoping itâs possible like this âŠ
Nevermind, thank you for answer! ![]()
Fan speed as list is deprecated. Percentage should be used instead (using the slider).
If there are mode lists in the app, then I took standard values from the HA classes to allow usage of standard lists in the GUI. In flows, the entity dependent list should be useable in autocomplete fields.
Thanks. I used FAN only as example how it can be implemented on Homey side, in HA itâs above (water heater modes - Antifreeze, Smart, Prog and Manual), which you said itâs Dynamic content and canât be implemented. I just wasnât sure if you understand, what I mean.
There is no generic systematic. It depends on HA entities, domains ans integrations.
But yes, thatâs the same for water heater.
The entity has a list of possible operations you can select one. This list can be different for different water heaters, but also it can be dependent on the mode.
Such mode lists can only be set in flow cards.
If that could be set via flow, itâs OKay - I was assuming itâs no possible. Here I was rather speaking about âvisualisationâ. Thank you anyway for follow-ups, I really appreciate !
update you mean
- can I do anything if the âPresent modesâ are not populated from HA ? In HA itâs entity called âselect.water_heater_modeâ
Yeah, thatâs a good example of a bad implementation ![]()
The select entity is a standalone helper entity. The heater has surely added his own automation to listen on changes (like you would do in Homeynwith virtual devices and flows).
Itâs not part of the heater itself.
A workaround would be to use the generic app flow actions to call a HA service. With the entity ID and a service name for select domains it should be possible to change the preset mode via flows.
ESPHomeâŠ
You mean this, right ?

Thank youâŠwill try to play with that.
Yes, thatâs the right card.
You already selected your entity.
You will need one if these services. The data part shown kn the Yaml is needed as data JSON in the card.
Perhaps you need to check the IDs of your select list in HA developer tools.
Hi all,
Iâm not able to realize two compound media_player attribute conversions
![]()
Iâd like to trim a string, returning the first 7 characters
Iâd like to convert a timestamp to a human readable time & date.
(And a future wish, to be able to load the entity_picture which is an external URL in the Homey compound device (class=speaker).
As there is no default capability for images, I donât know how
Is it even possible atm?)
This is the attribute list:
Iâve tried many, many things, but it doesnât work:
capabilitiesConverters:
measure_generic.media_position_updated_at:
from: (state) => { return as_timestamp(state) | timestamp_custom('%-H:%M %d-%m-%Y'); }
to: (value) => { return value; }
measure_generic.media_position_updated_at.2:
from: (state) => { return (state.last_changed); }
to: (value) => { return value; }
measure_generic.media_content_id:
from: (state) => { return (state[0:7]); } # should return the 1st 7 chars
to: (value) => { return value; }
I used this as a start from a working conversion
# capabilitiesConverters:
# measure_power:
# from: (state) => { return parseFloat(state) * 0.001; }
# to: (value) => { return value / 1000; }
Hi Peter,
with your first 2 questions I can help after my holidays.
You have to deal with find method to find a string or extract the substring if itâs every time the same ĂŒositio. with subtring function.
Itâs easier to try this if you donât use compound device but use the add entity / change entity function instead. This will update the device directly after hitting the change button without HA restart.
Your 3th question:
What device should show the image? The media device is using local or remote url to show the image. But if there is another integration thatâs not using HAs default attributes itâs possible thatâs nor working.
Hi Ronny,
No rush,
I tried the add/change entity of course, but it doesnât list any âmedia_playerâ capabilities. Also looking for âheosâ doesnât return results.

So I went to use the compound for this.
Background,
I like to enable a second receiver only when Spotify is playing.
The heos mediaplayer integration is the only device which shows Sfy in text and as a numeric code, which I can use in AND flow cards. (The Homey apps Marantz/Sfy donât have that value available).
Well, that works now, but I got carried away about âjustâ adjusting the string and the timestamp.
For the timestamp I used a template sensor in the end, but that also doesnât work yet.
While the album art is available as external link, I thought, when I set the device class to âSpeakerâ I maybe can show the art in the device as well.
But that might be not as simple and for me no need to spend time on.
Ah, yes. As custom entities only simple domains are supported (sensor, button, switch). And only state and no attribute. So you are right with compound.
I just think about making it possible to insert any entity with attributes (without autocomplete hint - that will make the list too long) and reading its value like itâs done in compound, and write it into a target capability.
So you would have to set attribut and capability by yourself but can use the adhoc update for converters.
And you canât set an album art only with a capability. You have to do it with SDK functions inside the device.
I could add an flow card to set an external url as album art source for you main media player to show the image from the second one. But then you still need a dummy compound device to have a capability with the url.
Thx for looking into it, Ronny.
I just read about a sensor template for attributes, that makes life (and converting values) easier.
So, now these values are âhumanizedâ
media_content_id: spotify:track:3xmi6xxxxxxxxxxxxxxxmedia_position_updated_at: 2023-04-23T11:50:04.814895+00:00
to these values
yaml
sensor:
- platform: template
sensors:
# Used for converting some Marantz Heos values
heos_media_play_position_update_timestamp:
friendly_name: "HEOS media position update timestamp"
value_template: >
{{ as_timestamp(state_attr('media_player.marantz_sr5012_heos',
'media_position_updated_at'))
| timestamp_custom('%-H:%M:%S %d-%m-%Y') }}
heos_content_id_stripped_for_spotify:
friendly_name: "HEOS ContentID stripped for Spotify"
value_template: >
{{ state_attr('media_player.marantz_sr5012_heos',
'media_content_id')[0:7] }}
The album art is nice to have, but too messy imho, so for me, you may forget about it ![]()
Thank you Ronny. Iâm quite new with HA so Iâm not 100% sure what do you mean but trying to understand⊠seems that this is the entity details I need

âŠbut trying to set it in any form, failsâŠ

I ave tried different DATA options - {âoptionsâ: âMANUALâ} , âMANUALâ, MANUAL etc. but nothing works. ⊠what do it miss ?
I was testing a bit, and had similar error msgs. You were so close though ![]()
This is my test device, a thermostat.
I tried the data part of the flow card with {"hvac_modes":"off"} but it results in those errors âextra keys not allowed @ âŠâ

What was the issue in my case:
To check things, I made an automation action card for climate.set_hvac_mode and viewed the YAML afterwards:
Yup, hvac_mode is written without the trailing âsâ ![]()
Iâd love to hear if it works for you with {"option":"MANUAL"}
@Peter_Kawa @Sharkys
Sorry for late answer. Peters answer should be the solution.
options = list of possible options.
option or state (depents whether itâs the entities state or an attribute) = selected option.
Like in linked service description for the select entity.
But @Sharkys, you inserted the entity (select.water_heater_mode) and the data (should be âoptionâ), but your service is wrong. It must be the service from the âselectâ domain âselect.select_optionâ (see screenshot).
@RonnyW thanks for pointing me to the âserviceâ, now I actually understand what âserviceâ in HA is ![]()
@Peter_Kawa , âsâ ! like in your case but for option
(and yes, the HA automation while checking created YAML helps!) :


Yes, it does (also tested in HA naturally and it reflects the state correctly.
Thank you @Peter_Kawa for help and naturally @RonnyW for help and for creating such nice app !








