.. _mmc5603: MMC5603 Magnetometer ===================== .. seo:: :description: Instructions for setting up MMC5693 IMU compass sensors. :image: mmc5603.jpg :keywords: MMC5603 The ``mmc5603`` allows you to use your MMC5603 triple-axis magnetometers (`datasheet `__, `Adafruit`_) with ESPHome. The :ref:`I²C Bus ` is required to be set up in your configuration for this sensor to work. .. figure:: ../../images/mmc5603.jpg :align: center :width: 30.0% MMC5603 Magnetometer. .. _Adafruit: https://www.adafruit.com/product/5579 .. code-block:: yaml # Example configuration entry sensor: - platform: MMC5603 address: 0x30 field_strength_x: name: "MMC5603 Field Strength X" field_strength_y: name: "MMC5603 Field Strength Y" field_strength_z: name: "MMC5603 Field Strength Z" heading: name: "MMC5603 Heading" update_interval: 60s Configuration variables: ------------------------ - **address** (*Optional*, int): Manually specify the I²C address of the sensor. Defaults to ``0x1E``. - **field_strength_x** (*Optional*): The field strength in microtesla along the X-Axis. All options from :ref:`Sensor `. - **field_strength_y** (*Optional*): The field strength in microtesla along the Y-Axis. All options from :ref:`Sensor `. - **field_strength_z** (*Optional*): The field strength in microtesla along the Z-Axis. All options from :ref:`Sensor `. - **heading** (*Optional*): The heading of the sensor in degrees. All options from :ref:`Sensor `. - **update_interval** (*Optional*, :ref:`config-time`): The interval to check the sensor. Defaults to ``60s``. - **id** (*Optional*, :ref:`config-id`): Manually specify the ID used for code generation. See Also -------- - :ref:`sensor-filters` - :doc:`template` - :apiref:`mmc5603/mmc5603.h` - :ghedit:`Edit`