Skip to content

This components reads statistics from a The Things Network Gateway.

License

Notifications You must be signed in to change notification settings

cyberjunky/home-assistant-ttn_gateway

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hacs_badge made-with-python Donate

TheThingsNetwork Gateway Sensor Component

This is a Custom Component for Home-Assistant (https://home-assistant.io) 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.

Installation

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.

Manual

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

Usage

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

# Example configuration.yaml entry

sensor:
  - platform: ttn_gateway
    host: IP_ADDRESS
    scan_interval: 10
    resources:
      - 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

Screenshots

alt text alt text

Donation

Donate

About

This components reads statistics from a The Things Network Gateway.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages