PatchworkBoy / homebridge-edomoticz

Domoticz Homebridge-Plugin
Other
118 stars 44 forks source link

AirQuality States #142

Closed avgays closed 6 years ago

avgays commented 6 years ago

Hi,

Latest Domoticz bettas (e.g. 3.8968) return AirQuality States as "Excellent","Good","Fair","Mediocre","Bad" in domoticz_accessory.js first 3 are correctly mapped to "Excellent","Good","Fair", but not last 2, they both are mapped as default to "Fair"

can you, please, add this 2 states:

                case "Mediocre":
                    {
                        value = Characteristic.AirQuality.INFERIOR;
                        break;
                    }
                case "Bad":
                    {
                        value = Characteristic.AirQuality.POOR;
                        break;
                    }
rswilem commented 6 years ago

Thank you for your clear request. Have just added the 'new' states in commit 391d3f0.

rswilem commented 6 years ago

On that note, I have also pushed the new version to NPM! ;)

+ homebridge-edomoticz@2.1.11