#@tpr - I have a similar situation ...

1 messages ยท Page 1 of 1 (latest)

clever fractal
#

Do you have a link to the issue at hand? And how did you solve it for your use case? ๐Ÿ™‚

quick mortar
#

Its an open PR for simpleFin integraiotn..

#

I gave up

#

lemme fined it

#

What i tried to do was use an extra_state_attribute to embed the "account type" and then use an icon translation

#

but at the time it didnt work

#

I bleive i opened a bug report

clever fractal
#

Ohh, I see. Hmm, looking at the code in that issue, it seems to be missing the domain that might be necessary?

#

I'm looking at the plugwise/icons.json, and it has a path entity->climate->plugwise->state_attributes->preset_mode

#

But it's soooooo very subtle, that I think the documentation should have a more visible info box to notify about this.

#

Or maybe I'm just reading it wrong. air_conditioner being the name of the switch. Instead of going with extra_attributes, I was personally thinking about going another way, and having an icon property that checks if the translation key is available. That would avoid storing unnecessary information in the state machine, but it's a tradeoff as always.

quick mortar
#

I mean ... they'll tell you if your doing something stupid in PR once you get reviewed

clever fractal
#

sure, but it's easier not to rock the boat & get faster rtt ๐Ÿ˜‰

#

I'd like to have a way to feed the icon translations directly from the backend lib, that'd solve this