Home Assistant component to feed Home Assistant component to feed all your repositories on Gogs.
- Install this component by copying these files to
custom_components/gogs/
. - Install the card: Entity attributes
- Add the code to your
configuration.yaml
using the config options below. - Add the card code to your
ui-lovelace.yaml
. - You will need to restart after installation for the component to start working.
key | default | required | description |
---|---|---|---|
token | yes | Your Gogs token (Find your Gogs token) | |
host | yes | The host which Gogs is running on. | |
protocol | yes | The HTTP protocol used by Gogs. | |
port | yes | The port which Gogs is running on. | |
repositories | yes | A List of your repositores you want to track that contain repository path. |
sensor:
- platform: gogs
token: YOUR_GOGS_TOKEN
host: localhost
protocol: http
port: 80
repositories:
- path: 'user/crazy_repo'
- type: custom:entity-attributes-card
title: gogs repository
heading_name: Attributes
heading_state: States
filter:
include:
- key: sensor.gogs_crazy_repo.*
sensor:
- platform: gogs
token: YOUR_GOGS_TOKEN
host: localhost
protocol: http
port: 80
repositories:
- path: 'user/crazy_repo'
- path: 'user/awesome_repo'
- path: 'user/amazing _repo'