Lovelace UI Editor doesn't like tap_action on Glance card

I’m switching over to using the new Lovelace UI Editor. When I go to edit a Glance Card I have, I see the following error:

 Your config is not supported by the UI editor:
**Expected a value of type `{entity,name,icon} | entity-id` for `entities.0.tap_action` but received `{"action":"toggle"}`.**
Falling back to YAML editor.

This is my yaml:

entities:
  - entity: switch.kitchen_lamp_1
    tap_action:
      action: toggle
  - entity: switch.kitchen_lamp_2
    tap_action:
      action: toggle
title: Kitchen Lamps
type: glance
show_name: true
show_icon: true
show_state: false

If I remove the tap_action/action lines, then I can get the normal editor to work.

Can’t find a reason why… It isn’t possible to configure the tap action from the new UI editor.

The other issue I have with this is that when I change the above so that the UI Editor works, the switches for show_state and show_header_toggle aren’t reflected correctly when I then edit the Glance card again. For example, if I turn off show_state, save the card, then edit it. It shows the switch as enabled, but it isn’t.

Your config is correct. It’s not an error as such.

The UI editor is not complete. If you add extra variables like this that are not yet supported in the GUI editor you can only use the YAML editor.

1 Like