diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d9a494d..8403d53 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,6 +11,13 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Build ESPHomeApiHelper bundle + run: | + mkdir EspHomeApiHelper + cp bundles/esphome-api-helper.txt EspHomeApiHelper/install.txt + cp bundles/esphome-api-helper.txt EspHomeApiHelper/update.txt + wget -O EspHomeApiHelper/esphome.espHomeApiHelper.groovy https://raw.githubusercontent.com/konnected-io/hubitat-public/refs/heads/main/ESPHome/ESPHome-API-Library.groovy + - name: Build GDOv1-S bundle run: | mkdir GarageDoorOpenerGDOv1S @@ -43,6 +50,13 @@ jobs: cp drivers/konnected-alarm-panel.groovy AlarmPanel/konnected.KonnectedAlarmPanel.groovy wget -O AlarmPanel/esphome.espHomeApiHelper.groovy https://raw.githubusercontent.com/konnected-io/hubitat-public/refs/heads/main/ESPHome/ESPHome-API-Library.groovy + - name: Zip EspHomeApiHelper + uses: thedoctor0/zip-release@0.7.6 + with: + type: 'zip' + directory: EspHomeApiHelper + filename: ESPHome-API-Library-Bundle.zip + - name: Zip GDOv1-S uses: thedoctor0/zip-release@0.7.6 with: @@ -70,7 +84,14 @@ jobs: type: 'zip' directory: AlarmPanel filename: AlarmPanel.zip - + + - name: Upload EspHomeApiHelper + uses: Shopify/upload-to-release@v2.0.0 + with: + name: ESPHome-API-Library-Bundle.zip + path: EspHomeApiHelper/ESPHome-API-Library-Bundle.zip + repo-token: ${{ secrets.GITHUB_TOKEN }} + - name: Upload GDOv1-S uses: Shopify/upload-to-release@v2.0.0 with: diff --git a/bundles/esphome-api-helper.txt b/bundles/esphome-api-helper.txt new file mode 100644 index 0000000..6d40d3d --- /dev/null +++ b/bundles/esphome-api-helper.txt @@ -0,0 +1,3 @@ +esphome +espHomeApiHelperLibrary +library esphome.espHomeApiHelper.groovy diff --git a/hpm-repository.json b/hpm-repository.json index 44db495..7c3e599 100644 --- a/hpm-repository.json +++ b/hpm-repository.json @@ -8,7 +8,7 @@ "category": "Integrations", "tags": ["Garage Doors"], "location": "https://raw.githubusercontent.com/konnected-io/konnected-hubitat/master/package-gdov1s.json", - "description": "Integrate the Konnected Garage Door Opener GDOv1-S" + "description": "Integrate the Konnected GDO White (GDOv1-S)" }, { "id": "01ab08a8-1ad3-44ea-ae68-47482773940e", @@ -16,7 +16,7 @@ "category": "Integrations", "tags": ["Garage Doors"], "location": "https://raw.githubusercontent.com/konnected-io/konnected-hubitat/master/package-gdov2s.json", - "description": "Integrate the Konnected Garage Door Opener GDOv2-S" + "description": "Integrate the Konnected GDO White (GDOv2-S)" }, { "id": "9f9d9a0c-ee29-4e5d-8c52-48d5b3fc8e0f", diff --git a/package-alarm-panel.json b/package-alarm-panel.json new file mode 100644 index 0000000..259b6dc --- /dev/null +++ b/package-alarm-panel.json @@ -0,0 +1,25 @@ +{ + "packageName": "Alarm Panel (universal)", + "author": "Konnected Inc.", + "version": "0.1", + "minimumHEVersion": "0.0", + "dateReleased": "2024-09-27", + "bundles": [ + { + "id": "948fa4dc-8209-442b-b590-749f0ae899a0", + "name": "espHomeApiHelperLibrary", + "namespace": "esphome", + "location": "https://github.com/konnected-io/konnected-hubitat/releases/latest/download/ESPHome-API-Library-Bundle.zip", + "required": true + } + ], + "drivers": [ + { + "id": "353b5525-8943-4a2c-9f1b-e51c5265ce33", + "name": "", + "namespace": "", + "location": "https://raw.githubusercontent.com/konnected-io/konnected-hubitat/master/drivers/konnected-alarm-panel.groovy", + "required": true + } + ] +} \ No newline at end of file diff --git a/package-gdov1s.json b/package-gdov1s.json index 5b0cea5..97202cc 100644 --- a/package-gdov1s.json +++ b/package-gdov1s.json @@ -9,7 +9,7 @@ "id": "948fa4dc-8209-442b-b590-749f0ae899a0", "name": "espHomeApiHelperLibrary", "namespace": "esphome", - "location": "https://raw.githubusercontent.com/bradsjm/hubitat-drivers/main/ESPHome/ESPHome-API-Library-Bundle.zip", + "location": "https://github.com/konnected-io/konnected-hubitat/releases/latest/download/ESPHome-API-Library-Bundle.zip", "required": true } ], diff --git a/package-gdov2q.json b/package-gdov2q.json index f79aa79..1a00505 100644 --- a/package-gdov2q.json +++ b/package-gdov2q.json @@ -9,7 +9,7 @@ "id": "948fa4dc-8209-442b-b590-749f0ae899a0", "name": "espHomeApiHelperLibrary", "namespace": "esphome", - "location": "https://raw.githubusercontent.com/bradsjm/hubitat-drivers/main/ESPHome/ESPHome-API-Library-Bundle.zip", + "location": "https://github.com/konnected-io/konnected-hubitat/releases/latest/download/ESPHome-API-Library-Bundle.zip", "required": true } ], diff --git a/package-gdov2s.json b/package-gdov2s.json index df4da54..60a066e 100644 --- a/package-gdov2s.json +++ b/package-gdov2s.json @@ -9,7 +9,7 @@ "id": "948fa4dc-8209-442b-b590-749f0ae899a0", "name": "espHomeApiHelperLibrary", "namespace": "esphome", - "location": "https://raw.githubusercontent.com/bradsjm/hubitat-drivers/main/ESPHome/ESPHome-API-Library-Bundle.zip", + "location": "https://github.com/konnected-io/konnected-hubitat/releases/latest/download/ESPHome-API-Library-Bundle.zip", "required": true } ],