homebridge-mqttthing icon indicating copy to clipboard operation
homebridge-mqttthing copied to clipboard

Heater Cooler topic definition question

Open ldellus opened this issue 3 years ago • 0 comments

Hi,

I have an air conditioner with the following state: cool, fan_only, dry, heat, auto and the following fanspeed: min, low, med, high, max, auto

See my topic definition below. I tried to use the targetHeaterCoolerValues and currentHeaterCoolerValues but it doesn't work. I get the following warning: "Ignoring invalid value [3] for Target Heater-Cooler State - above maximum (2)"

The fanspeed works better but it still sends "off" instead of "min".

I'd like the plugin to display on Homekit the real states, i.e. "cool, fan_only, dry, heat, auto", but it only shows "off, cool, heat, auto".

Any help is appreciated.

Thanks,

Laurent


"topics": { "setActive": "amcor/ac/cmnd/power", "getActive": "amcor/ac/stat/power", "getCurrentHeaterCoolerState": "amcor/ac/stat/mode", "setTargetHeaterCoolerState": "amcor/ac/cmnd/mode", "getTargetHeaterCoolerState": "amcor/ac/stat/mode", "getCurrentTemperature": { "topic": "amcor/dht22", "apply": "return Math.round ( message );" }, "getCoolingThresholdTemperature": "amcor/ac/stat/temp", "setCoolingThresholdTemperature": "amcor/ac/cmnd/temp", "setRotationSpeed": { "topic": "amcor/ac/cmnd/fanspeed", "apply": "return [ 'min', 'low', 'med', 'high', 'max', 'auto' ][ Math.floor( message / 20 ) ];" }, "getRotationSpeed": { "topic": "amcor/ac/stat/fanspeed", "apply": "return [ 'min', 'low', 'med', 'high', 'max', 'auto' ][ Math.floor( message / 20 ) ];" } }, "minTemperature": 20, "maxTemperature": 30, "onValue": "on", "offValue": "off", "otherValueOff": true, "targetHeaterCoolerValues": ["cool","fan_only","dry","heat","auto"], "currentHeaterCoolerValues": ["off","cool","fan_only","dry","heat","auto"]

ldellus avatar Jul 06 '21 06:07 ldellus