home-assistant.io/source/_components/sensor.thethingsnetwork.markdown
2018-05-03 22:01:32 +02:00

2.4 KiB

layout title description date sidebar comments sharing footer logo ha_category ha_iot_class ha_release
page The Things Network Sensor Instructions on how to integrate The Things Network sensors into Home Assistant. 2017-09-30 08:00 true false true true thethingsnetwork.png Sensor Local Polling 0.55

The thethingsnetwork sensor platform allows you to get data from a The Things Network Storage Integration.

This platform requires that the The Things Network component is set up and the The Things Network Storage Integration as well.

{% linkable_title Prerequisites %}

Visit the The Things Network Console website, log in with your The Things Network credentials, choose your application from Applications and go to Integrations.

Add a new integration.

Add a The Things Network integration

Select Data Storage.

Choose a The Things Network integration

Click Add integration to finish the process.

Add a The Things Network Data Storage integration

When done, the status of the integration should be Running. You could check the output after clicking on go to platform in an interactive web interface.

Add a The Things Network integration

Select Devices to get the ID of your device that you want to use.

Devices overview

{% linkable_title Configuration %}

To enable this platform, add the following lines to your configuration.yaml:

# Example configuration.yaml entry
sensor:
  - platform: thethingsnetwork
    device_id: ha-demo
    values:
      sensor_value: unit of measurement
      voltage: V

{% configuration %} device_id: description: The ID of the device. required: true type: string values: description: The sensor values with their unit of measurement required: true type: list {% endconfiguration %}