Skip to content
radio

GitHub Action

Zigbee2mqtt Multi Addon Action

v1.0 Latest version

Zigbee2mqtt Multi Addon Action

radio

Zigbee2mqtt Multi Addon Action

Create and maintain multiple Zigbee2mqtt Home Assistant add-ons in your repository

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Zigbee2mqtt Multi Addon Action

uses: andreypolyak/[email protected]

Learn more about this action in andreypolyak/zigbee2mqtt-multi-addon-action

Choose a version

zigbee2mqtt-multi-addon-action

Use it to create and maintain repository with multiple Zigbee2mqtt Home Assistant add-ons.

Setup

  1. Create new empty public Github repository
  2. Click on the "Actions" tab in the tab bar
  3. Press the "New workflow" button
  4. Press the "Skip this and set up a workflow yourself →" link
  5. Replace the sample code with the following code and replace "addon 1, addon 2" with any addon names that you want to use separated with a comma (example: "Living Room, Bedroom, Garage"):
name: Multiple Zigbee2mqtt Home Assistant add-ons

on:
  schedule:
    - cron: '*/30 * * * *' # every 30 minutes
  workflow_dispatch: # on button click

jobs:
  sync:

    runs-on: ubuntu-latest

    steps:
      - uses: andreypolyak/[email protected]
        with:
          addon_names: "addon 1, addon 2"
          github_token: ${{ github.token }}
  1. Press the "Start commit" button, then "Commit new file"
  2. Click on the "Actions" tab in the tab bar once again
  3. Select the "Multiple Zigbee2mqtt Home Assistant add-ons" workflow from the side panel
  4. Press the "Run workflow" button and then once again "Run workflow" button
  5. Wait for workflow run completion
  6. Add your repository to add-on repositories in Home Assistant Supervisor

Usage

This action will automatically run every 30 minutes and check if any updates to the original Zigbee2mqtt are available. If they would be found action will update version in your repository accordingly.

To create new Zigbee2mqtt add-ons after initial setup open your workflow (.github/workflows/main.yml by default) and change the addon_names variable. Don't forget to separate add-on names with a comma.