From 74096fada3207b2fa63a8bbc7fdb2e22d7034786 Mon Sep 17 00:00:00 2001 From: Philippe Portes Date: Fri, 31 Aug 2018 20:32:23 -0700 Subject: [PATCH 1/2] Updated for new SmartConnect mobile app --- .../honeywell-hpa250b.groovy | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/devicetypes/philippeportesppo/honeywell-hpa250b.src/honeywell-hpa250b.groovy b/devicetypes/philippeportesppo/honeywell-hpa250b.src/honeywell-hpa250b.groovy index 1a67288..8c212dc 100644 --- a/devicetypes/philippeportesppo/honeywell-hpa250b.src/honeywell-hpa250b.groovy +++ b/devicetypes/philippeportesppo/honeywell-hpa250b.src/honeywell-hpa250b.groovy @@ -16,12 +16,13 @@ import groovy.json.JsonSlurper metadata { -definition (name: "Honeywell_HPA250B", namespace: "philippeportesppo", author: "Philippe PORTES") +definition (name: "Honeywell_HPA250B", namespace: "philippeportesppo", author: "Philippe PORTES", ocfDeviceType: "oic.d.airpurifier", runLocally: false, minHubCoreVersion: '000.017.0012', executeCommandsLocally: false, vid:"generic-switch") { + capability "switch" capability "actuator" - capability "Sensor" + capability "sensor" capability "polling" - capability "switch" + command "fan_germ" command "fan_general" command "fan_allergen" @@ -34,15 +35,21 @@ definition (name: "Honeywell_HPA250B", namespace: "philippeportesppo", author: " command "voc_on" command "timer_minus" command "timer_plus" + + //command "enrollResponse" + + //fingerprint manufacturer: "Honeywell", model: "HPA250B", deviceJoinName: "HPA250B" + + attribute "argument", "enum", ["on", "auto", "medium", "off", "germ", "general_on", "allergen","turbo","updating","plus", "minus"] attribute "command", "enum", ["fan_speed", "light", "voc","timer"] } -preferences { +/*preferences { section { // input "internal_ip", "text", title: "Raspberry static IP", required: true // input "internal_port", "text", title: "Raspberry port (12345)", required: true } - } + }*/ tiles (scale: 2) { @@ -95,7 +102,7 @@ standardTile("prefilter", "device.prefilter", width: 2, height: 2, canChangeIcon standardTile("epafilter", "device.epafilter", width: 2, height: 2, canChangeIcon: false, canChangeBackground: false, decoration: "flat") { state ("default", label: 'EPA Filter: ${currentValue}%', backgroundColor:"#ffffff") } - main("fan") + main("switch") details(["fan","switch","light","voc","timer_minus","timer","timer_plus", "prefilter","epafilter" ]) } From 27768b72a56caf85fedf1c783583102788f512b3 Mon Sep 17 00:00:00 2001 From: PPO16 Date: Fri, 31 Aug 2018 20:35:13 -0700 Subject: [PATCH 2/2] Update honeywell-hpa250b.groovy --- .../honeywell-hpa250b.groovy | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/devicetypes/philippeportesppo/honeywell-hpa250b.src/honeywell-hpa250b.groovy b/devicetypes/philippeportesppo/honeywell-hpa250b.src/honeywell-hpa250b.groovy index 8c212dc..047a59a 100644 --- a/devicetypes/philippeportesppo/honeywell-hpa250b.src/honeywell-hpa250b.groovy +++ b/devicetypes/philippeportesppo/honeywell-hpa250b.src/honeywell-hpa250b.groovy @@ -35,22 +35,11 @@ definition (name: "Honeywell_HPA250B", namespace: "philippeportesppo", author: " command "voc_on" command "timer_minus" command "timer_plus" - - //command "enrollResponse" - - //fingerprint manufacturer: "Honeywell", model: "HPA250B", deviceJoinName: "HPA250B" - - + attribute "argument", "enum", ["on", "auto", "medium", "off", "germ", "general_on", "allergen","turbo","updating","plus", "minus"] attribute "command", "enum", ["fan_speed", "light", "voc","timer"] } -/*preferences { - section { - // input "internal_ip", "text", title: "Raspberry static IP", required: true - // input "internal_port", "text", title: "Raspberry port (12345)", required: true - } - }*/ - + tiles (scale: 2) { standardTile("fan", "device.fan", width: 6, height: 4, canChangeIcon: false, canChangeBackground: false, decoration: "flat") { @@ -393,4 +382,4 @@ def refreshCmd() { } - \ No newline at end of file +