steilerDev / homebridge-openhab2-complete

A homebridge plugin for openHAB, that has the expectation to fully support all Services offered by Apple's Homekit Accessory Protocol (HAP)
GNU General Public License v3.0
52 stars 16 forks source link

Cannot add accessory of type air #25

Closed EjvindHald closed 5 years ago

EjvindHald commented 5 years ago

I have added some accessories without problems. However, I cannot add an accessory of type air. In the log file I received this:

Unable to add accessory Luftkvalitet: TypeError: this.Service.AirQuality is not a constructor, skipping

and here is the VSCode snippet: {"type": "air", "items": [ {"name": "Luftkvalitet", "item": "StueplanKokkenVOCHomekitCategory"} ] I have verified that it is of type Number in openhab and actually holds a value between 1 and 5.

I am running in Docker with version 0.10 of openhab2-complete. Thanks.

steilerDev commented 5 years ago

Hi @EjvindHald ,

yes, this is a typo in the source. I fixed it and will push out an updated version to npm soon.