Skip to content

Instantly share code, notes, and snippets.

@gargomoma
Created October 31, 2023 16:54
Show Gist options
  • Select an option

  • Save gargomoma/91f0457eaddc32ba23e5e0b8b9eb19f6 to your computer and use it in GitHub Desktop.

Select an option

Save gargomoma/91f0457eaddc32ba23e5e0b8b9eb19f6 to your computer and use it in GitHub Desktop.
A home assistant config package to track your TinyGs station
## Replace [STATION_ID] with your station ID
## you can retrieve it from the URL while checking your station status at tinygs.com
rest:
- resource: "https://api.tinygs.com/v1/station/[STATION_ID]"
scan_interval: 300
sensor:
- name: "TinyGs Satellite"
value_template: "{{ value_json.satellite }}"
- name: "TinyGs ConfirmedPackets"
value_template: "{{ value_json.confirmedPackets | int }}"
binary_sensor:
- name: "TinyGs Status"
value_template: "{{ value_json.status }}"
@trisweb
Copy link

trisweb commented Sep 27, 2025

This works pretty well! Some suggestions:

  • Add unit_of_measurement: "packets" to the ConfirmedPackets entry. This will make it interpret as a number and a graph.
  • Add last packet time:
      - name: "TinyGS Last Packet Time"
        value_template: "{{ as_local(as_datetime((value_json.lastPacketTime | int) / 1000)) }}"
        device_class: timestamp
    

My full config if anyone is interested:

rest:
  - resource: "https://api.tinygs.com/v1/station/[YOUR STATION ID]"
    scan_interval: 300
    sensor:
      - name: "TinyGS Satellite"
        value_template: "{{ value_json.satellite }}"
      - name: "TinyGS Last Packet Time"
        value_template: "{{ as_local(as_datetime((value_json.lastPacketTime | int) / 1000)) }}"
        device_class: timestamp
      - name: "TinyGS ConfirmedPackets"
        value_template: "{{ value_json.confirmedPackets | int }}"
        unit_of_measurement: "packets"
    binary_sensor:
      - name: "TinyGS Status"
        value_template: "{{ value_json.status }}"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment