YAML Schema issue with templates, scripts, sensors

For about a month now, I get errors in my config files complaining that the YAML schema has issues, but when I go to the documentation the code is correct. Here are a few examples:

Templates.yaml

- platform: template
  sensors:
    #----- Count Automations
    count_automations:
      entity_id: sensor.date
      value_template: "{{ states.automation | list | length }}"

error

Property entity_id is not allowed.yaml-schema: http://schemas.home-assistant.io/integration-sensor

Scripts.yaml

back_porch_camera_snap_picture:
  alias: Back Porch Camera Snap Picture
  sequence:
  - data: {}
    action: blink.trigger_camera
    target:
      device_id: 9bf0c4d1570da773edddb4b9112beac8
  - data:
      filename: /config/tmp/images/back_porch/{{ now().strftime('%Y%m%d_%H%M%S') }}.jpg
    target:
      entity_id: camera.blink_back_porch
    action: camera.snapshot
  mode: single
  icon: mdi:camera

error

Property action is not allowed.yaml-schema: http://schemas.home-assistant.io/integration-script

Sensors.yaml

- platform: template
  sensors:
    #----- Count Automations
    count_automations:
      entity_id: sensor.date
      value_template: "{{ states.automation | list | length }}"

error

Property entity_id is not allowed.yaml-schema: http://schemas.home-assistant.io/integration-sensor

Hi NeoFax75,

Where do you see these errors?

Inside the VSCode addon using the homeassistant schema.

Here is the format for a template sensor:

The entity_id field for the legacy template sensor format has been depreciated ages ago. The field doesn’t do anything. You can remove those lines.
If you want to render that template only once a day, use a trigger based template sensor (which is only possible using the modern format)

The action issue is the HA Config helper extension in VSCode. It needs to be updated to support the action key. It still expects service instead of action.
You can safely ignore it until the extension is updated.
There is already a PR created to fix it, which needs to be merged.