Shodan

The shodan sensor integrationIntegrations connect and integrate Home Assistant with your devices, services, and more. [Learn more] is displaying the total of result of a Shodan 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.

To enable this integrationIntegrations connect and integrate Home Assistant with your devices, services, and more. [Learn more], add the following lines to your configuration.yamlThe configuration.yaml file is the main configuration file for Home Assistant. It lists the integrations to be loaded and their specific configurations. In some cases, the configuration needs to be edited manually directly in the configuration.yaml file. Most integrations can be configured in the UI. [Learn more] file. After changing the configuration.yamlThe configuration.yaml file is the main configuration file for Home Assistant. It lists the integrations to be loaded and their specific configurations. In some cases, the configuration needs to be edited manually directly in the configuration.yaml file. Most integrations can be configured in the UI. [Learn more] file, restart Home Assistant to apply the changes. The integration is now shown on the integrations page under Settings > Devices & services. Its entities are listed on the integration card itself and on the Entities tab.

file:

# Example configuration.yaml entry
sensor:
  - platform: shodan
    api_key: SHODAN_API_KEY
    query: "home-assistant"

Configuration Variables

api_key string Required

The API key for Shodan.io.

query string Required

The search string.

name string (Optional)

Name of the Shodan sensor.