Ok, this is my first time posting anything, so sorry in advance.
I’m trying to create widgets (I guess) for my apple watch using IOS Actions.
But I’d like the text and colors to change based on entity values.
Something like this:
actions:
- name: Bob Present
background_color: "#000000"
label:
text: >
{% if is_state('person.bob', 'home') %}
"Bob Home"
{% else %}
"Bob Away"
{% endif %}
color: >
{% if is_state('person.bob', 'home') %}
"#5151ff"
{% else %}
"#bcbcbc"
{% endif %}
icon:
icon: >
{% if is_state('person.bob', 'home') %}
"face-man"
{% else %}
"face-man-outline"
{% endif %}
color: >
{% if is_state('person.bob', 'home') %}
"#5151ff"
{% else %}
"#bcbcbc"
{% endif %}
The action shows up in the app, but no text no icon in the widget.
This logic works in scripts just fine, but in ios I get nothing.
And I’ve tried every variation of formats I can think of.
Any help you provide would be greatly appreciated.
Thx