diff --git a/.homeychangelog.json b/.homeychangelog.json index b247448..dcca88a 100644 --- a/.homeychangelog.json +++ b/.homeychangelog.json @@ -50,5 +50,9 @@ "1.0.2": { "en": "Small fixes (Probability of precipitation).", "de": "Kleine Korrekturen (Niederschalags-Wahrscheinlichkeit)." + }, + "1.0.3": { + "en": "Small fixes (condition detail trigger).", + "de": "Kleine Korrekturen (Spez.Wetterbedingungs-Trigger)." } } diff --git a/.homeycompose/app.json b/.homeycompose/app.json index 150e15d..0ee994c 100644 --- a/.homeycompose/app.json +++ b/.homeycompose/app.json @@ -1,6 +1,6 @@ { "id": "nu.baretta.openweathermap", - "version": "1.0.2", + "version": "1.0.3", "compatibility": ">=5.0.0", "sdk": 3, "name": { diff --git a/app.json b/app.json index 0c15746..6d40be2 100644 --- a/app.json +++ b/app.json @@ -1,7 +1,7 @@ { "_comment": "This file is generated. Please edit .homeycompose/app.json instead.", "id": "nu.baretta.openweathermap", - "version": "1.0.2", + "version": "1.0.3", "compatibility": ">=5.0.0", "sdk": 3, "name": { diff --git a/drivers/owmOnecallCurrent/device.js b/drivers/owmOnecallCurrent/device.js index 7d9927e..61d62a6 100644 --- a/drivers/owmOnecallCurrent/device.js +++ b/drivers/owmOnecallCurrent/device.js @@ -175,6 +175,7 @@ class owmCurrent extends Homey.Device { this.log("Main conditioncode: " + data.current.weather[0].main); var conditioncode_detail = data.current.weather[0].id.toString(); + var conditioncode_detail_number = data.current.weather[0].id; this.log("Specific conditioncode: " + data.current.weather[0].id); let now = new Date(data.current.dt*1000).toLocaleString('de-DE', @@ -445,10 +446,10 @@ class owmCurrent extends Homey.Device { this.log("Conditioncode_detail previous: " + this.getCapabilityValue('conditioncode_detail')); this.log("Conditioncode_detail new: " + conditioncode_detail); let state = { - "conditioncode": conditioncode_detail + "conditioncode": conditioncode_detail_number }; let tokens = { - "conditioncode": conditioncode_detail, + "conditioncode": conditioncode_detail_number, "location": GEOlocation }; triggerList.push({'trigger':this._flowTriggerConditionDetailChanged, 'device':device, 'token':tokens, 'state':state}); diff --git a/drivers/owmOnecallDaily/device.js b/drivers/owmOnecallDaily/device.js index e3b1089..03cb5d9 100644 --- a/drivers/owmOnecallDaily/device.js +++ b/drivers/owmOnecallDaily/device.js @@ -162,6 +162,7 @@ class owmOnecallDaily extends Homey.Device { var conditioncode = data.weather[0].main; this.log("Main conditioncode: " + data.weather[0].main); var conditioncode_detail = data.weather[0].id.toString(); + var conditioncode_detail_number = data.weather[0].id; this.log("Specific conditioncode: " + data.weather[0].id); var temp_min = Math.round(data.temp.min * 10) / 10; @@ -492,10 +493,10 @@ class owmOnecallDaily extends Homey.Device { this.log("Conditioncode_detail previous: " + this.getCapabilityValue('conditioncode_detail')); this.log("Conditioncode_detail new: " + conditioncode_detail); let state = { - "conditioncode": conditioncode_detail + "conditioncode": conditioncode_detail_number }; let tokens = { - "conditioncode": conditioncode_detail, + "conditioncode": conditioncode_detail_number, "location": GEOlocation }; triggerList.push({'trigger':this._flowTriggerConditionDetailChanged, 'device':device, 'token':tokens, 'state':state}); diff --git a/drivers/owmOnecallHourly/device.js b/drivers/owmOnecallHourly/device.js index 70588f3..3479966 100644 --- a/drivers/owmOnecallHourly/device.js +++ b/drivers/owmOnecallHourly/device.js @@ -164,6 +164,7 @@ class owmOnecallHourly extends Homey.Device { var conditioncode = data.weather[0].main; this.log("Main conditioncode: " + data.weather[0].main); var conditioncode_detail = data.weather[0].id.toString(); + var conditioncode_detail_number = data.weather[0].id; this.log("Specific conditioncode: " + data.weather[0].id); var temp = Math.round(data.temp* 10) / 10; @@ -347,10 +348,10 @@ class owmOnecallHourly extends Homey.Device { this.log("Conditioncode_detail previous: " + this.getCapabilityValue('conditioncode_detail')); this.log("Conditioncode_detail new: " + conditioncode_detail); let state = { - "conditioncode": conditioncode_detail + "conditioncode": conditioncode_detail_number }; let tokens = { - "conditioncode": conditioncode_detail, + "conditioncode": conditioncode_detail_number, "location": GEOlocation }; triggerList.push({'trigger':this._flowTriggerConditionDetailChanged, 'device':device, 'token':tokens, 'state':state});