diff --git a/modules/monitoring_icinga/monitoring_icinga.module b/modules/monitoring_icinga/monitoring_icinga.module
index 7b93da3..dcdae63 100644
--- a/modules/monitoring_icinga/monitoring_icinga.module
+++ b/modules/monitoring_icinga/monitoring_icinga.module
@@ -50,7 +50,7 @@ function monitoring_icinga_menu() {
  *   Icinga service description.
  */
 function monitoring_icinga_service_description(SensorConfig $sensor_config) {
-  return $sensor_config->getCategory() . ' - ' . $sensor_config->getLabel() . ' - ' . $sensor_config->getName();
+  return $sensor_config->getCategory() . ' - ' . $sensor_config->getLabel() . ' - ' . $sensor_config->id();
 }
 
 /**
diff --git a/modules/monitoring_munin/monitoring_munin.module b/modules/monitoring_munin/monitoring_munin.module
index d4c7821..52fb19a 100644
--- a/modules/monitoring_munin/monitoring_munin.module
+++ b/modules/monitoring_munin/monitoring_munin.module
@@ -106,9 +106,9 @@ function monitoring_munin_multigraph_delete($title) {
           unset($munin_settings['multigraphs'][$i]);
         }
       }
-      $settings = monitoring_sensor_settings_get($info->getName());
+      $settings = monitoring_sensor_settings_get($info->id());
       $settings['munin'] = $munin_settings;
-      monitoring_sensor_settings_save($info->getName(), $settings);
+      monitoring_sensor_settings_save($info->id(), $settings);
     }
   }
 }
diff --git a/modules/multigraph/src/Form/MultigraphForm.php b/modules/multigraph/src/Form/MultigraphForm.php
index 72f0301..bd80771 100644
--- a/modules/multigraph/src/Form/MultigraphForm.php
+++ b/modules/multigraph/src/Form/MultigraphForm.php
@@ -75,7 +75,7 @@ class MultigraphForm extends EntityForm {
     $sensors_options = array();
     foreach ($sensors as $sensor) {
       if ($sensor->isNumeric()) {
-        $sensors_options[$sensor->getName()] = $sensor->getLabel();
+        $sensors_options[$sensor->id()] = $sensor->getLabel();
       }
     }
 
diff --git a/monitoring.drush.inc b/monitoring.drush.inc
index 153da80..6d7b7ac 100644
--- a/monitoring.drush.inc
+++ b/monitoring.drush.inc
@@ -169,7 +169,7 @@ function monitoring_drush_info_single($sensor_name) {
     return drush_set_error('MONITORING_SENSOR_INVALID_NAME', dt('Sensor "@name" does not exist.', array('@name' => $sensor_name)));
   }
 
-  $rows[] = array(String::format("@label (@name)", array('@label' => $sensor_config->getLabel(), '@name' => $sensor_config->getName())), '====================');
+  $rows[] = array(String::format("@label (@name)", array('@label' => $sensor_config->getLabel(), '@name' => $sensor_config->id())), '====================');
   $rows[] = array(dt('Category'), $sensor_config->getCategory());
   $rows[] = array(dt('Description'), $sensor_config->getDescription());
   $rows[] = array(dt('Value info'), String::format('type: @type, label: @label, numeric: @numeric', array(
@@ -291,7 +291,7 @@ function monitoring_drush_result_output_table(array $results, $show_exec_time =
  *   Sensor result object.
  */
 function monitoring_drush_result_output_table_single(SensorResultInterface $result) {
-  $rows[] = array(dt('Name'), $result->getSensorConfig()->getName());
+  $rows[] = array(dt('Name'), $result->getSensorConfig()->id());
   $rows[] = array(dt('Label'), $result->getSensorConfig()->getLabel());
   $rows[] = array(dt('Status'), $result->getStatusLabel());
   $rows[] = array(dt('Message'), $result->getMessage());
diff --git a/src/Controller/ForceRunController.php b/src/Controller/ForceRunController.php
index 257915a..d59dea4 100644
--- a/src/Controller/ForceRunController.php
+++ b/src/Controller/ForceRunController.php
@@ -67,7 +67,7 @@ class ForceRunController extends ControllerBase {
    */
   public function forceRunSensor(SensorConfig $monitoring_sensor_config) {
 
-    $this->sensorRunner->resetCache(array($monitoring_sensor_config->getName()));
+    $this->sensorRunner->resetCache(array($monitoring_sensor_config->id()));
     drupal_set_message($this->t('Force run of the sensor @name executed.', array('@name' => $monitoring_sensor_config->getLabel())));
     return $this->redirect('monitoring.sensor_list');
   }
diff --git a/src/Entity/SensorConfig.php b/src/Entity/SensorConfig.php
index 3f175b6..04e2fdf 100644
--- a/src/Entity/SensorConfig.php
+++ b/src/Entity/SensorConfig.php
@@ -127,7 +127,7 @@ class SensorConfig extends ConfigEntityBase {
    * @return string
    *   Sensor ID.
    */
-  public function getName() {
+  public function id() {
     return $this->id;
   }
 
@@ -362,7 +362,7 @@ class SensorConfig extends ConfigEntityBase {
    */
   public function getDefinition() {
     $config = array(
-      'sensor' => $this->getName(),
+      'sensor' => $this->id(),
       'label' => $this->getLabel(),
       'category' => $this->getCategory(),
       'description' => $this->getDescription(),
diff --git a/src/Form/SensorDetailForm.php b/src/Form/SensorDetailForm.php
index af6d8ef..ead8569 100644
--- a/src/Form/SensorDetailForm.php
+++ b/src/Form/SensorDetailForm.php
@@ -188,7 +188,7 @@ class SensorDetailForm extends EntityForm {
     $view = Views::getView('monitoring_sensor_results');
     if (!empty($view)) {
       $view->initDisplay();
-      $output = $view->preview('detail_page_log', array($sensor_config->getName()));
+      $output = $view->preview('detail_page_log', array($sensor_config->id()));
       if (!empty($view->result)) {
         $form['sensor_log'] = array(
           '#type' => 'details',
diff --git a/src/Plugin/monitoring/SensorPlugin/DisappearedSensorsSensorPlugin.php b/src/Plugin/monitoring/SensorPlugin/DisappearedSensorsSensorPlugin.php
index 9831ec7..5b94964 100644
--- a/src/Plugin/monitoring/SensorPlugin/DisappearedSensorsSensorPlugin.php
+++ b/src/Plugin/monitoring/SensorPlugin/DisappearedSensorsSensorPlugin.php
@@ -42,7 +42,7 @@ class DisappearedSensorsSensorPlugin extends SensorPluginBase {
    */
   public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
     try {
-      $result = monitoring_sensor_run($this->sensorConfig->getName());
+      $result = monitoring_sensor_run($this->sensorConfig->id());
     } catch (\Exception $e) {
       // @todo: Figure out why this happens.
       drupal_set_message($e->getMessage(), 'error');
diff --git a/src/Result/SensorResult.php b/src/Result/SensorResult.php
index 3a11aad..2eec58e 100644
--- a/src/Result/SensorResult.php
+++ b/src/Result/SensorResult.php
@@ -477,7 +477,7 @@ class SensorResult implements SensorResultInterface {
    * {@inheritdoc}
    */
   public function getSensorName() {
-    return $this->sensorConfig->getName();
+    return $this->sensorConfig->id();
   }
 
   /**
diff --git a/src/Sensor/SensorManager.php b/src/Sensor/SensorManager.php
index cb52d44..6b9aa3c 100644
--- a/src/Sensor/SensorManager.php
+++ b/src/Sensor/SensorManager.php
@@ -101,7 +101,7 @@ class SensorManager extends DefaultPluginManager {
     $enabled_sensors = array();
     foreach ($this->getAllSensorConfig() as $sensor_config) {
       if ($sensor_config->isEnabled()) {
-        $enabled_sensors[$sensor_config->getName()] = $sensor_config;
+        $enabled_sensors[$sensor_config->id()] = $sensor_config;
       }
     }
     return $enabled_sensors;
diff --git a/src/SensorPlugin/SensorPluginBase.php b/src/SensorPlugin/SensorPluginBase.php
index 5a283f7..a002477 100644
--- a/src/SensorPlugin/SensorPluginBase.php
+++ b/src/SensorPlugin/SensorPluginBase.php
@@ -76,7 +76,7 @@ abstract class SensorPluginBase implements SensorPluginInterface {
    * {@inheritdoc}
    */
   public function getSensorName() {
-    return $this->sensorConfig->getName();
+    return $this->sensorConfig->id();
   }
 
   /**
diff --git a/src/SensorPlugin/ThresholdsSensorPluginBase.php b/src/SensorPlugin/ThresholdsSensorPluginBase.php
index 1a76e46..86ee5b2 100644
--- a/src/SensorPlugin/ThresholdsSensorPluginBase.php
+++ b/src/SensorPlugin/ThresholdsSensorPluginBase.php
@@ -145,7 +145,7 @@ abstract class ThresholdsSensorPluginBase extends SensorPluginBase implements Th
    *   The validation message.
    */
   protected function setFormError($threshold_key, FormStateInterface $form_state, $message) {
-    $form_state->setErrorByName($this->sensorConfig->getName() . '][thresholds][' . $threshold_key, $message);
+    $form_state->setErrorByName($this->sensorConfig->id() . '][thresholds][' . $threshold_key, $message);
   }
 
   /**
diff --git a/src/SensorRunner.php b/src/SensorRunner.php
index 7aa0c80..84c7c4b 100644
--- a/src/SensorRunner.php
+++ b/src/SensorRunner.php
@@ -92,7 +92,7 @@ class SensorRunner {
     // Only load sensor caches if they define caching.
     foreach ($sensors_config as $sensor_config) {
       if ($sensor_config->getCachingTime()) {
-        $cids[] = $this->getSensorCid($sensor_config->getName());
+        $cids[] = $this->getSensorCid($sensor_config->id());
       }
     }
     if ($cids) {
@@ -159,14 +159,14 @@ class SensorRunner {
     $plugin = $sensor_config->getPlugin();
     // Check if sensor is enabled.
     if (!$plugin->isEnabled()) {
-      throw new DisabledSensorException(String::format('Sensor @sensor_name is not enabled and must not be run.', array('@sensor_name' => $sensor_config->getName())));
+      throw new DisabledSensorException(String::format('Sensor @sensor_name is not enabled and must not be run.', array('@sensor_name' => $sensor_config->id())));
     }
 
     $result = $this->getResultObject($sensor_config);
 
     // In case result is not yet cached run sensor.
     if (!$result->isCached()) {
-      Timer::start($sensor_config->getName());
+      Timer::start($sensor_config->id());
       try {
         $plugin->runSensor($result);
       } catch (\Exception $e) {
@@ -180,7 +180,7 @@ class SensorRunner {
         //   backtrace as part of the sensor verbose output.
       }
 
-      $timer = Timer::stop($sensor_config->getName());
+      $timer = Timer::stop($sensor_config->id());
       $result->setExecutionTime($timer['time']);
 
       // Capture verbose output if requested and if we are able to do so.
@@ -297,8 +297,8 @@ class SensorRunner {
   protected function getResultObject(SensorConfig $sensor_config) {
     $result_class = '\Drupal\monitoring\Result\SensorResult';
 
-    if (!$this->forceRun && isset($this->sensorResultCache[$sensor_config->getName()])) {
-      $result = new $result_class($sensor_config, $this->sensorResultCache[$sensor_config->getName()]);
+    if (!$this->forceRun && isset($this->sensorResultCache[$sensor_config->id()])) {
+      $result = new $result_class($sensor_config, $this->sensorResultCache[$sensor_config->id()]);
     }
     else {
       $result = new $result_class($sensor_config);
diff --git a/src/Tests/MonitoringServicesTest.php b/src/Tests/MonitoringServicesTest.php
index 57b8de8..fc8f3f0 100644
--- a/src/Tests/MonitoringServicesTest.php
+++ b/src/Tests/MonitoringServicesTest.php
@@ -78,7 +78,7 @@ class MonitoringServicesTest extends RESTTestBase {
     $this->assertResponse(200);
 
     foreach (monitoring_sensor_manager()->getAllSensorConfig() as $sensor_name => $sensor_config) {
-      $this->assertEqual($response_data[$sensor_name]['sensor'], $sensor_config->getName());
+      $this->assertEqual($response_data[$sensor_name]['sensor'], $sensor_config->id());
       $this->assertEqual($response_data[$sensor_name]['label'], $sensor_config->getLabel());
       $this->assertEqual($response_data[$sensor_name]['category'], $sensor_config->getCategory());
       $this->assertEqual($response_data[$sensor_name]['description'], $sensor_config->getDescription());
@@ -87,7 +87,7 @@ class MonitoringServicesTest extends RESTTestBase {
       $this->assertEqual($response_data[$sensor_name]['caching_time'], $sensor_config->getCachingTime());
       $this->assertEqual($response_data[$sensor_name]['time_interval'], $sensor_config->getTimeIntervalValue());
       $this->assertEqual($response_data[$sensor_name]['enabled'], $sensor_config->isEnabled());
-      $this->assertEqual($response_data[$sensor_name]['uri'], Url::fromUri('base://monitoring-sensor-info/' . $sensor_config->getName(), array('absolute' => TRUE))->toString());
+      $this->assertEqual($response_data[$sensor_name]['uri'], Url::fromUri('base://monitoring-sensor-info/' . $sensor_config->id(), array('absolute' => TRUE))->toString());
 
       if ($sensor_config->isDefiningThresholds()) {
         $this->assertEqual($response_data[$sensor_name]['thresholds'], $sensor_config->getSetting('thresholds'));
@@ -102,7 +102,7 @@ class MonitoringServicesTest extends RESTTestBase {
     $response_data = $this->doRequest('monitoring-sensor-info/' . $sensor_name);
     $this->assertResponse(200);
     $sensor_config = SensorConfig::load($sensor_name);
-    $this->assertEqual($response_data['sensor'], $sensor_config->getName());
+    $this->assertEqual($response_data['sensor'], $sensor_config->id());
     $this->assertEqual($response_data['label'], $sensor_config->getLabel());
     $this->assertEqual($response_data['category'], $sensor_config->getCategory());
     $this->assertEqual($response_data['description'], $sensor_config->getDescription());
@@ -111,7 +111,7 @@ class MonitoringServicesTest extends RESTTestBase {
     $this->assertEqual($response_data['caching_time'], $sensor_config->getCachingTime());
     $this->assertEqual($response_data['time_interval'], $sensor_config->getTimeIntervalValue());
     $this->assertEqual($response_data['enabled'], $sensor_config->isEnabled());
-    $this->assertEqual($response_data['uri'], Url::fromUri('base://monitoring-sensor-info/' . $sensor_config->getName(), array('absolute' => TRUE))->toString());
+    $this->assertEqual($response_data['uri'], Url::fromUri('base://monitoring-sensor-info/' . $sensor_config->id(), array('absolute' => TRUE))->toString());
 
     if ($sensor_config->isDefiningThresholds()) {
       $this->assertEqual($response_data['thresholds'], $sensor_config->getSetting('thresholds'));
@@ -176,16 +176,16 @@ class MonitoringServicesTest extends RESTTestBase {
    *   Sensor config for which we have the result.
    */
   protected function assertSensorResult($response_result, SensorConfig $sensor_config) {
-    $this->assertEqual($response_result['sensor_name'], $sensor_config->getName());
+    $this->assertEqual($response_result['sensor_name'], $sensor_config->id());
     // Test the uri - the hardcoded endpoint is defined in the
     // monitoring_test.default_services.inc.
-    $this->assertEqual($response_result['uri'], Url::fromUri('base://monitoring-sensor-result/' . $sensor_config->getName(), array('absolute' => TRUE))->toString());
+    $this->assertEqual($response_result['uri'], Url::fromUri('base://monitoring-sensor-result/' . $sensor_config->id(), array('absolute' => TRUE))->toString());
 
     // If the result is cached test also for the result values. In case of
     // result which is not cached we might not get the same values.
     if ($sensor_config->getCachingTime()) {
       // Cannot use $this->runSensor() as the cache needs to remain.
-      $result = monitoring_sensor_run($sensor_config->getName());
+      $result = monitoring_sensor_run($sensor_config->id());
       $this->assertEqual($response_result['status'], $result->getStatus());
       $this->assertEqual($response_result['value'], $result->getValue());
       $this->assertEqual($response_result['expected_value'], $result->getExpectedValue());
diff --git a/src/Tests/MonitoringUITest.php b/src/Tests/MonitoringUITest.php
index 5bfecbe..32d910d 100644
--- a/src/Tests/MonitoringUITest.php
+++ b/src/Tests/MonitoringUITest.php
@@ -415,7 +415,7 @@ class MonitoringUITest extends MonitoringTestBase {
       $form_field_name = 'settings' . '[thresholds][' . $key . ']';
       $data[$form_field_name] = $value;
     }
-    $this->drupalPostForm('admin/config/system/monitoring/sensors/' . $sensor_config->getName(), $data, t('Save'));
+    $this->drupalPostForm('admin/config/system/monitoring/sensors/' . $sensor_config->id(), $data, t('Save'));
   }
 
   /**
