bar-card icon indicating copy to clipboard operation
bar-card copied to clipboard

Actions 2024.8 not supported

Open ildar170975 opened this issue 11 months ago • 4 comments

In 2024.8 some changes were made for action. Consider this code:

  - type: custom:bar-card
    entity: sensor.system_monitor_disk_free
    tap_action:
      action: perform-action
      perform_action: input_boolean.toggle
      target:
        entity_id: input_boolean.test_boolean

  - type: custom:bar-card
    entity: sensor.system_monitor_disk_free
    tap_action:
      action: call-service
      service: input_boolean.toggle
      service_data:
        entity_id: input_boolean.test_boolean

Image

Only the 2nd syntax (legacy) works.

ildar170975 avatar Jan 28 '25 18:01 ildar170975

This new-style code does not work either:

- type: custom:bar-card
  entities:
    - entity: sensor.nuc_cpu_usage
      name: CPU usage
      tap_action:
        action: more-info
        entity: sensor.average_usage_cpu_nuc

clau-bucur avatar Jan 28 '25 18:01 clau-bucur

Did you find a way to make it work? I'm having the same issue

imdeepjee avatar Feb 10 '25 18:02 imdeepjee

You may still use old syntax.

ildar170975 avatar Feb 10 '25 18:02 ildar170975

Came here to open this issue; thank you. This worked for me:

tap_action:
  action: call-service
  service: input_number.set_value
  service_data:
    entity_id: input_number.humidifier_on
    value: "0"

xstrex avatar Mar 20 '25 14:03 xstrex