From 2d45bc6e3d3bf5e6d605927676f9d03e56b49c05 Mon Sep 17 00:00:00 2001 From: Serge Wagener Date: Thu, 10 Feb 2022 18:15:59 +0100 Subject: [PATCH] Working on UI config --- config.schema.json | 18 ++++++++++++++++++ src/Accessories/Lightbulb.ts | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/config.schema.json b/config.schema.json index aee9d88..806acfb 100644 --- a/config.schema.json +++ b/config.schema.json @@ -10,6 +10,24 @@ "type": "string", "required": true, "default": "SmartHomeNG" + }, + "host": { + "title": "SHNG Host", + "type": "string", + "required": true, + "default": "smarthome.local" + }, + "port": { + "title": "SHNG Port", + "type": "number", + "required": true, + "default": 2424 + }, + "tls": { + "title": "TLS enabled", + "type": "boolean", + "required": true, + "default": false } } } diff --git a/src/Accessories/Lightbulb.ts b/src/Accessories/Lightbulb.ts index b60d966..b5ddc2d 100644 --- a/src/Accessories/Lightbulb.ts +++ b/src/Accessories/Lightbulb.ts @@ -196,7 +196,7 @@ export class Lightbulb implements AccessoryPlugin { break; default: - this.platform.log.warn('Cannot update color of', this.name, 'because RGB(W) items are missing'); + this.platform.log.debug('Cannot update color of', this.name, 'because the light does not support colors'); break; } }