Show value from HA on Label6
Closed this issue · 1 comments
petrkac commented
Hi, is there any way, how to show value from HA on HomeButton, for example Label6?
I tried, but the value must by text,
alias: Test
description: ""
trigger: []
condition: []
action:
- device_id: dae885ba25a830e2a5256b6347ee2797
domain: text
entity_id: 9cf75aecefa3447ac9fd8758fbda26ac
type: set_value
value: states.sensor.battery_state_of_charge.state
mode: single
does not work too
value: "{{states.sensor.battery_state_of_charge.state}}"
Thank you
nplan commented
Setting value of the text entity directly does not support templating apparently.
Using the service should work:
action:
- service: text.set_value
data:
value: "{{ states('sensor.time') }}"
target:
entity_id: text.your_hb_button_6_label