mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 15:26:59 +00:00
Update IMAP Email Content Sensor configuration variable (#6777)
* Update IMAP Email Content Sensor configuration variable
* Update sensor.imap_email_content.markdown
* ✏️ Tweak
This commit is contained in:
parent
744b362b88
commit
d7bea08402
@ -32,17 +32,43 @@ sensor:
|
|||||||
- example@gmail.com
|
- example@gmail.com
|
||||||
```
|
```
|
||||||
|
|
||||||
Configuration variables:
|
{% configuration %}
|
||||||
|
server:
|
||||||
- **server** (*Required*): The IP address or hostname of the IMAP server.
|
description: The IP address or hostname of the IMAP server.
|
||||||
- **port** (*Required*): The port where the server is accessible.
|
required: true
|
||||||
- **name** (*Optional*): Name of the IMAP sensor to use in the frontend.
|
type: string
|
||||||
- **username** (*Required*): Username for the IMAP server.
|
port:
|
||||||
- **password** (*Required*): Password for the IMAP server.
|
description: The port where the server is accessible.
|
||||||
- **senders** (*Required*): A list of sender email addresses that are allowed to report state via email. Only emails received from these addresses will be processed.
|
required: false
|
||||||
- **value_template** (*Optional*): If specified this template will be used to render the state of the sensor. If a template is not supplied the message subject will be used for the sensor value. The following attributes will be supplied to the template:
|
default: 993
|
||||||
|
type: integer
|
||||||
* **from**: The from address of the email
|
name:
|
||||||
* **body**: The body of the email
|
description: Name of the IMAP sensor.
|
||||||
* **subject**: The subject of the email
|
required: false
|
||||||
* **date**: The date and time the email was sent
|
type: string
|
||||||
|
username:
|
||||||
|
description: Username for the IMAP server.
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
password:
|
||||||
|
description: Password for the IMAP server.
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
senders:
|
||||||
|
description: A list of sender email addresses that are allowed to report state via email. Only emails received from these addresses will be processed.
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
value_template:
|
||||||
|
description: If specified this template will be used to render the state of the sensor. If a template is not supplied the message subject will be used for the sensor value. The following attributes will be supplied to the template.
|
||||||
|
required: false
|
||||||
|
type: template
|
||||||
|
keys:
|
||||||
|
from:
|
||||||
|
description: The from address of the email.
|
||||||
|
body:
|
||||||
|
description: The body of the email.
|
||||||
|
subject:
|
||||||
|
description: The subject of the email.
|
||||||
|
date:
|
||||||
|
description: The date and time the email was sent.
|
||||||
|
{% endconfiguration %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user