Hi guys,
I use OH 4.2.2 Release Build…
I was tired of empty WLED presets, when device is offline, so I created a rule which loads the presets.json when device is online and extracts presetnumber
and presetname
to a .map
file… this works ok so far…
I added a state description to the belonging wled preset item and bound the mapfile as pattern. This also works like expexted!
pattern:
MAP(uplightpresets.map):%s
But here is where I struggle:
I’m trying to fill the state descripion options
(MainUI) with the content from the mapfile. Is this even possible in some kind of way?
I tried something like:
options:
="@transform/uplightpresets.map"
=(MAP(uplightpresets.map))
and similar syntax patterns but with no luck
any thoughts on that? …and if this isn’t possible at all, shouldn’t it be implemented to bind mapfiles as a list maybe?