Home Assistant component to feed Home Assistant component to feed all your repositories on Gitea.
- Install this component by copying these files to
custom_components/gitea/
. - 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 Gitea token (Find your Gitea token) | |
host | yes | The host which Gitea is running on. | |
protocol | yes | The HTTP protocol used by Gitea. | |
port | yes | The port which Gitea is running on. | |
repositories | yes | A List of your repositores you want to track that contain repository path. |
sensor:
- platform: gitea
token: YOUR_GITEA_TOKEN
host: localhost
protocol: http
port: 80
repositories:
- path: 'user/crazy_repo'
- type: custom:entity-attributes-card
title: Gitea repository
heading_name: Attributes
heading_state: States
filter:
include:
- key: sensor.gitea_crazy_repo.*
sensor:
- platform: gitea
token: YOUR_GITEA_TOKEN
host: localhost
protocol: http
port: 80
repositories:
- path: 'user/crazy_repo'
- path: 'user/awesome_repo'
- path: 'user/amazing _repo'