Skip to content
This components reads statistics from a The Things Network Gateway.
Branch: master
Clone or download
Latest commit d276df8 Dec 26, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
custom_components/ttn_gateway Code cleanup Dec 26, 2019
screenshots Added code files and screenshots Dec 17, 2019
.gitignore Initial commit Dec 17, 2019
LICENSE Initial commit Dec 17, 2019 Update Dec 25, 2019
hacs.json Added hacs.json file Dec 17, 2019 Update Dec 26, 2019

hacs_badge made-with-python Donate

TheThingsNetwork Gateway Sensor Component

This is a Custom Component for Home-Assistant ( that reads statistics from a local The Things Network Gateway.

If you have one of these (from kickstarter) you can use this component to monitor all statistics from it.

🎉 I have one for sale, new in the box btw.

NOTE: I got the original code from a GitHub Gists, but cannot find the source any more to refer too. If you happen to find it please tell me.


HACS - Recommended

  • Have HACS installed, this will allow you to easily manage and track updates.
  • Search for 'TTN Gateway Sensor'.
  • Click Install below the found integration.
  • Configure using the configuration instructions below.
  • Restart Home-Assistant.


  • Copy directory custom-components/ttn_gateway to your <config dir>/custom-components directory.
  • Configure with config below.
  • Restart Home-Assistant.


To use this component in your installation, add the following to your configuration.yaml file:

# Example configuration.yaml entry

  - platform: ttn_gateway
    host: IP_ADDRESS
    scan_interval: 10
      - gateway
      - hwversion
      - blversion
      - fwversion
      - uptime
      - connected
      - interface
      - ssid
      - activationlocked
      - configured
      - region
      - gwcard
      - brokerconnected
      - packetsup
      - packetsdown
      - estore

Configuration variables:

  • host (Required): The IP address of the gateway you want to monitor.
  • scan_interval (Optional): Number of seconds between polls. (default = 30)
  • resources (Required): This section tells the component which values to monitor.

If you want them grouped instead of having the separate sensor badges, you can use this in your groups.yaml:

# Example groups.yaml entry

TTN Gateway:
  - sensor.ttn_gw_hardware_version
  - sensor.ttn_gw_bootloader_version
  - sensor.ttn_gw_firmware_version
  - sensor.ttn_gw_uptime
  - sensor.ttn_gw_connected
  - sensor.ttn_gw_interface
  - sensor.ttn_gw_gateway
  - sensor.ttn_gw_ssid
  - sensor.ttn_gw_activation_locked
  - sensor.ttn_gw_configured
  - sensor.ttn_gw_region
  - sensor.ttn_gw_gateway_card
  - sensor.ttn_gw_broker_connected
  - sensor.ttn_gw_packets_up
  - sensor.ttn_gw_packets_down
  - sensor.ttn_gw_external_storage


alt text alt text



You can’t perform that action at this time.