7 Commits
Author SHA1 Message Date
dennis 4f453d8a76 0.1.5 2023-02-05 00:28:11 +01:00
dennis d062bb7bb0 Ignore .idea in npm 2023-02-05 00:27:58 +01:00
dennis 1082b0fc67 0.1.4 2023-02-05 00:05:28 +01:00
dennis 1676ae90ae 0.1.3 2023-02-05 00:05:19 +01:00
dennis 47e49b9e67 Changed/fixxed logging 2023-02-05 00:04:54 +01:00
dennis 035a28c37b Create publish.yml 2023-02-04 23:50:08 +01:00
dennis 6e388601f8 Update package.json (to v0.1.2) 2023-02-04 23:17:16 +01:00
7 changed files with 31 additions and 10 deletions

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
name: Publish Package to npmjs
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v3
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
+3
View File
@@ -1,6 +1,9 @@
# Ignore source code
src
# IDEA files
.idea
# ------------- Defaults ------------- #
# gitHub actions
+1 -1
View File
@@ -53,7 +53,7 @@
"resetAfterSwitchOff": {
"title": "Reset when switch turned `Off`",
"type": "boolean",
"description": "Reset the switch and trigger index, when the trigger switch is turned `Off` (independent from timeout)",
"description": "Reset the switch and trigger index, when the trigger switch is turned <code>Off</code> (independent from timeout)",
"required": true,
"default": false
},
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "homebridge-multitap-switch",
"version": "0.1.1",
"version": "0.1.5",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "homebridge-multitap-switch",
"version": "0.1.1",
"version": "0.1.5",
"license": "MIT",
"devDependencies": {
"@types/node": "^16.10.9",
+4 -4
View File
@@ -2,15 +2,15 @@
"private": false,
"displayName": "Homebridge Multi-Tap-Switch",
"name": "homebridge-multi-tap-switch",
"version": "0.1.1",
"version": "0.1.5",
"description": "A configurable multi-tap switch for i.e. switching scenes",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/dtwardow/homebridge-multitap-switch.git"
"url": "git+https://github.com/dtwardow/homebridge-multi-tap-switch.git"
},
"bugs": {
"url": "https://github.com/dtwardow/homebridge-multitap-switch/issues"
"url": "https://github.com/dtwardow/homebridge-multi-tap-switch/issues"
},
"engines": {
"node": ">=14.18.1",
@@ -37,6 +37,6 @@
"ts-node": "^10.3.0",
"typescript": "^4.4.4"
},
"homepage": "https://github.com/dtwardow/homebridge-multitap-switch#readme",
"homepage": "https://github.com/dtwardow/homebridge-multi-tap-switch#readme",
"author": "Dennis Twardowsky <twardowsky@gmail.com>"
}
+2 -2
View File
@@ -21,8 +21,8 @@ export class Logging {
log(...parts: any) {
this.isDebug ?
this.logHandler.debug(this.msgPrefix(), ...parts) :
this.logHandler.info(this.msgPrefix(), ...parts);
this.logHandler.info(this.msgPrefix(), ...parts) :
this.logHandler.debug(this.msgPrefix(), ...parts);
}
warn = (...parts: any) => this.logHandler.warn(this.msgPrefix(), ...parts);
+1 -1
View File
@@ -83,7 +83,7 @@ export class MultiTapSwitchPlatform implements DynamicPlatformPlugin {
// existingAccessory.context.device = device;
// this.api.updatePlatformAccessories([existingAccessory]);
if (existingAccessory.context.config !== device) {
this.log.info('Update Accessory ->', device.name);
this.log.debug('Update Accessory ->', device.name);
existingAccessory.context.config = device;
this.api.updatePlatformAccessories([existingAccessory]);
}