Exclude specific entity in data template to prevent binary_sensor.remote_ui in list of unavailable entities

I was under the assumption that there was a problem because the Visual Studio Code add-on did not show action, services, etc in blue in the automations below the discussed automation anymore:

When deleting the message part, displaying some parts in blue of the following automations where there again:

I guess Visual Studio Code can not handle the message structure fine or something like that, but the automation with the new message structure is working.