ThingSpeak

The thingspeak integrations makes Home Assistant communicate with the ThingSpeak API. For now, it records exactly one entity at once, which is great for testing purposes. For long-time storage you should rely on the InfluxDB integration.

Configuration

You will have to create a new channel on ThingSpeak and grab your Write API Key from the “API Keys” tab of the channel you want to use.

To setup the ThingSpeak integration in your installation, add the following to your configuration.yamlconfiguration.yaml 文件是 Home Assistant 的主要配置文件。它列出了要加载的集成及其特定配置。在某些情况下,需要直接在 configuration.yaml 文件中手动编辑配置。大多数集成可以在 UI 中配置。 [Learn more] file:

# Example configuration.yaml entry
thingspeak:
  api_key: MY_API_KEY
  id: 1337
  whitelist: sensor.yr_temperature

Configuration Variables

api_key string Required

Your ThingSpeak Channel Write API key.

id integer Required

The ID of your desired ThingSpeak channel.

whitelist string Required

The name of the entity whose states should be sent to the channel.