Strange error

Hi All,

I get some strange error logs:

2020-03-16 21:20:33 ERROR (MainThread) [homeassistant.components.automation] Error while executing automation automation.motion_detection_bathroom_on_off. Invalid data for call_service at pos 2: Service does not match format <domain>.<name>

###########################################################################################
#
# BATHROOM CONTROL LIGHTS BASED ON SCENE GOODNIGHT
#
###########################################################################################

- alias: "Motion Detection - Bathroom On Off"
  trigger:

    platform: state
    entity_id: binary_sensor.node_15

  condition:
    condition: state
    entity_id: switch.meek_bathroom
    state: "off"

  action:
    - service: light.turn_on
      data_template:
        entity_id: light.bathroom_all
        brightness_pct: >-
          {% if (states.binary_sensor.node_15.state) == 'on' and (states.switch.mqtt_scene_goodnight.state) == 'on' %} 50
          {% elif (states.binary_sensor.node_15.state) == 'on' and (states.switch.mqtt_scene_goodnight.state) == 'off' %} 100
          {% else %} 0
          {% endif %}

    - service_template: >-
        {% if (states.binary_sensor.node_15.state) == 'on' and (states.switch.mqtt_scene_goodnight.state) == 'off' %} switch.turn_on
        {% elif (states.binary_sensor.node_15.state) == 'off' and (states.switch.mqtt_scene_goodnight.state) == 'off' %}  switch.turn_off
        {% endif %}
      entity_id: switch.meek_bathroom

But the automation is working correct. Can someone tell me what this error can be?