3.1.7 - Better Buttons With Home Assistant Actions
Do more with buttons!
This release is focused on improving buttons and custom actions. Custom actions now follow Home Assistant actions syntax, and supports most actions defined there.
The following actions are supported:
call-service
navigate
url
assist
more-info
none
Buttons now support not only tap actions, but double tap and hold actions.
features:
- type: custom:service-call
entries:
- icon: mdi:power
label: '{{ states("light.sunroom_ceiling") }}'
style:
'--color': |-
{% if is_state("light.sunroom_ceiling", ["on"]) %}
rgb({{ state_attr("light.sunroom_ceiling", "rgb_color") }})
{% else %}
initial
{% endif %}
tap_action:
action: call-service
service: light.turn_on
data:
entity_id: light.sunroom_ceiling
color_name: red
double_tap_action:
action: call-service
service: light.turn_on
data:
entity_id: light.sunroom_ceiling
color_name: green
hold_action:
action: call-service
service: light.turn_on
data:
entity_id: light.sunroom_ceiling
color_name: blue
type: tile
entity: binary_sensor.sun_room
color: accent
Other changes:
- Label font weight set to bold.
- Added
show
option. - Improved default slider/selector actions and
autofill_entity_id
logic.
Patch version changes:
- Do not trigger buttons or slider actions when touch action scrolling #16.
- Make touchmove handlers passive.
- Further slider scrolling detection improvements.
- Support for older webviews that do not support the
structuredClone
function #18. - Merge
data
,target
, andservice_data
fields intodata
if any exist rather than on action type.
Full Changelog: 3.0.9...3.1.7