bar-card
bar-card copied to clipboard
Actions 2024.8 not supported
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
Only the 2nd syntax (legacy) works.
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
Did you find a way to make it work? I'm having the same issue
You may still use old syntax.
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"