Skip to content

Commit

Permalink
Merge pull request #17 from pkmnct/add-reciever-type
Browse files Browse the repository at this point in the history
Allow customization of Category
  • Loading branch information
pkmnct committed Feb 24, 2023
2 parents f2bb3e4 + 062558f commit ba6e5fb
Show file tree
Hide file tree
Showing 9 changed files with 4,640 additions and 1,952 deletions.
24 changes: 19 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,42 @@ name: Build and Lint
on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Use Node.js 14
uses: actions/setup-node@v1
with:
node-version: 14

- name: Install dependencies
run: npm install

- name: Lint the project
run: npm run lint

build:
runs-on: ubuntu-latest

strategy:
matrix:
# the Node.js versions to build on
node-version: [10.x, 12.x, 13.x]
node-version: [14.x, 16.x]

steps:
- uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: npm install

- name: Lint the project
run: npm run lint

- name: Build the project
run: npm run build
env:
Expand Down
1 change: 0 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ web_modules/

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Homebridge Television Universal Control
[![Build Status](https://github.com/pkmnct/homebridge-television-universal-control/workflows/Build%20and%20Lint/badge.svg?branch=master)](https://github.com/pkmnct/homebridge-television-universal-control/actions?query=workflow%3A%22Build+and+Lint%22) [![npm version](https://badge.fury.io/js/homebridge-television-universal-control.svg)](https://www.npmjs.com/package/homebridge-television-universal-control)

This Homebridge plugin enables control of one or more compatible devices using one "Television" in HomeKit.
This Homebridge plugin enables control of one or more compatible devices using one combined "Television" (or alternative category) in HomeKit.

## Setup
If you run into permission errors during the install, run `sudo npm i -g homebridge-television-universal-control --unsafe-perm`
Expand Down
20 changes: 18 additions & 2 deletions config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,22 @@
"type": "string",
"required": true
},
"category": {
"title": "Category",
"description": "Known category values. Category is a hint to Homekit clients about what \"type\" of Accessory this represents, for UI only. See https://github.com/homebridge/HAP-NodeJS/blob/master/src/lib/Accessory.ts",
"type": "integer",
"placeholder": 31,
"oneOf": [
{ "title": "Other", "enum": [1] },
{ "title": "Bridge", "enum": [2] },
{ "title": "Speaker", "enum": [26] },
{ "title": "Television", "enum": [31] },
{ "title": "Remote Control", "enum": [32] },
{ "title": "Audio Receiver", "enum": [34] },
{ "title": "TV Set Top Box", "enum": [35] },
{ "title": "TV Streaming Stick", "enum": [36] }
]
},
"devices": {
"type": "object",
"title": "Devices",
Expand Down Expand Up @@ -59,7 +75,7 @@
"dataBits": {
"title": "Data Bits",
"type": "integer",
"placeholder": "8",
"placeholder": 8,
"oneOf": [
{ "title": "8", "enum": [8] },
{ "title": "7", "enum": [7] },
Expand All @@ -70,7 +86,7 @@
"stopBits": {
"title": "Stop Bits",
"type": "integer",
"placeholder": "1",
"placeholder": 1,
"oneOf": [
{ "title": "1", "enum": [1] },
{ "title": "2", "enum": [2] }
Expand Down
Loading

0 comments on commit ba6e5fb

Please sign in to comment.