diff --git a/components/binary_sensor/homeassistant.rst b/components/binary_sensor/homeassistant.rst index 0374de100..db99d7637 100644 --- a/components/binary_sensor/homeassistant.rst +++ b/components/binary_sensor/homeassistant.rst @@ -16,11 +16,25 @@ states from your Home Assistant instance using the :doc:`native API `. diff --git a/components/sensor/homeassistant.rst b/components/sensor/homeassistant.rst index ec2bfc153..687c8b985 100644 --- a/components/sensor/homeassistant.rst +++ b/components/sensor/homeassistant.rst @@ -16,6 +16,17 @@ states from your Home Assistant instance using the :doc:`native API ` - Importing attributes is currently not supported, but you can create template sensors in Home Assistant - that return the attribute of a sensor and then import the template sensor here. - Configuration variables: ------------------------ - **name** (**Required**, string): The name of the sensor. - **entity_id** (**Required**, string): The entity ID to import from Home Assistant. +- **attribute** (*Optional*, string): The name of the state attribute to import from the + specified entity. The entity state is used when this option is omitted. + Requires Home Assistant 2021.6 or newer. - **id** (*Optional*, :ref:`config-id`): Manually specify the ID used for code generation. - All other options from :ref:`Sensor `. diff --git a/components/text_sensor/homeassistant.rst b/components/text_sensor/homeassistant.rst index 4bb99e319..08ab13580 100644 --- a/components/text_sensor/homeassistant.rst +++ b/components/text_sensor/homeassistant.rst @@ -16,11 +16,25 @@ states from your Home Assistant instance using the :doc:`native API `.