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

Heater/Cooler Swing not working #105

Closed AhmedOsama closed 1 year ago

AhmedOsama commented 2 years ago

When using Heater/Cooler swing item (type switch on openhab) does not get any updates from Homekit

       {
            "name": "Living AC",
            "type": "heatercooler",
            "currentTempItem": "LivingTemprature",
            "item": "LivingAC",
            "inverted": "false",
            "modeItem": "LivingAcMode",
            "coolingItem": "LivingAcCool",
            "coolingThresholdTempItem": "LivingAcCoolingSetTemp",
            "heatingItem": "LivingAcHeat",
            "heatingThresholdTempItem": "LivingAcHeatingSetTemp",
            "swingItem": "LivingSwingItem",
            "swingItemInverted": "false",
            "rotationSpeedItem": "LivingAcFan",
            "tempUnit": "celsius",
            "minTemp": "20",
            "maxTemp": "30",
            "minFanSpeed": "0",
            "maxFanSpeed": "5",
            "minFanStep": "1"
        }

iOS : 14.7.1 OS: Ubuntu Bionic Beaver (18.04.3 LTS) OH 2.4.0 Node.js Version | v14.15.3 Npm Version v6.14.9 homebridge /var/homebridge /var/homebridge/config.json

AhmedOsama commented 2 years ago

I have done every possible check in the past 3 days, the swing item can receive on and off commands using openhab console has no issues at all Homebridge logs see its state and when toggled from apple home nothing happens when changing its state from openhab console it updates properly on apple home but not the other way round

AhmedOsama commented 2 years ago

Actually swing doesn't work it does not update from openhab to homekit or from homekit to openhab but HB logs show the state change when setting it with OH console

steilerDev commented 2 years ago

Swing functionality is wrongfully a readOnly property in this addon. I will enable read/write, which should fix this.

steilerDev commented 2 years ago

ca8b67b should fix this.

steilerDev commented 1 year ago

closed with 1.3.5 release