Error in Lovelace UI, but works just fine

Can anyone tell me what is wrong with this code? It works perfectly, but shows this error in yellow at the bottom of the Lovelace editor page:

Expected a value of type {entity,name,icon} | entity-id for entities.0.tap_action but received {"action":"call-service","service":"homeassistant.toggle","service_data":{"entity_id":"input_boolean.mode_armed"}}.

I get the same message in various glance and entities cards when I try to use a tap_action.

entities:
  - entity: binary_sensor.alarm_status
    icon: 'mdi:alarm-bell'
    name: Alarm
    tap_action:
      action: call-service
      service: homeassistant.toggle
      service_data:
        entity_id: input_boolean.mode_armed
  - entity: binary_sensor.master_doors
    tap_action:
      action: navigate
      navigation_path: /lovelace/doors
  - entity: binary_sensor.master_windows
    tap_action:
      action: navigate
      navigation_path: /lovelace/windows
  - entity: binary_sensor.master_motion
    tap_action:
      action: navigate
      navigation_path: /lovelace/motion
show_name: true
show_state: true
theme: default
type: glance

Thanks.

Ignore those warnings. They falsely callout warnings, it’s a known issue.

1 Like