mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 17:27:19 +00:00
Update description and move vars to new style
This commit is contained in:
parent
2007f30791
commit
8d27517e23
@ -14,11 +14,14 @@ ha_release: 0.51
|
||||
---
|
||||
|
||||
|
||||
The `shodan` sensor platform is displaying the total of result of a [Shodan](https://www.shodan.io/) query.
|
||||
The `shodan` sensor platform is displaying the total of result of a
|
||||
[Shodan](https://www.shodan.io/) query.
|
||||
|
||||
Use "Show API Key" in the upper right corner when you are logged in or got to your "My Account" page to retrieve your API key.
|
||||
Use "Show API Key" in the upper right corner when you are logged in or got to
|
||||
your "My Account" page to retrieve your API key.
|
||||
|
||||
To enable this sensor, add the following lines to your `configuration.yaml` file for a GET request:
|
||||
To enable this sensor, add the following lines to your `configuration.yaml`
|
||||
file:
|
||||
|
||||
```yaml
|
||||
# Example configuration.yaml entry
|
||||
@ -28,9 +31,18 @@ sensor:
|
||||
query: 'home-assistant'
|
||||
```
|
||||
|
||||
Configuration variables:
|
||||
|
||||
- **api_key** (*Required*): The API key for Shodan.io.
|
||||
- **query** (*Required*): The search string.
|
||||
- **name** (*Optional*): Name of the Shodan sensor.
|
||||
{% configuration %}
|
||||
api_key:
|
||||
description: The API key for Shodan.io.
|
||||
required: true
|
||||
type: string
|
||||
query:
|
||||
description: The search string.
|
||||
required: true
|
||||
type: string
|
||||
name:
|
||||
description: Name of the Shodan sensor.
|
||||
required: false
|
||||
type: string
|
||||
{% endconfiguration %}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user