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

Feature request: more configuration options for Thermostat and HeaterCooler #83

Closed maisun closed 3 years ago

maisun commented 4 years ago

Is your feature request related to a problem? Please describe. It's not related to a problem

Describe the solution you'd like 1) I'd like to be able to configure minTemp, maxTemp and minStep also for HeaterCooler (the support is already added for Thermostat 2) I'd like to be able to configure minFanSpeed, maxFanSpeed, minFanStep for HeaterCooler (maybe also Fan??), so that I can configure a steps of the ventilation fan (level 25%, 50%, 75% and 100%), something like: primaryService.getCharacteristic(this.Characteristic.RotationSpeed).setProps({ maxValue: 0, minValue: 100, minStep: 25 }); 3) For Thermostat I'd like an option to restrict the device only allow heating mode (there is no cooling for Thermostats): primaryService.getCharacteristic(this.Characteristic.TargetHeatingCoolingState).setProps({ validValues: [1] });

Additional context I have mod the code and tested the above, it is working fine.

psyciknz commented 3 years ago

I'd like number 3 as well...It say that it will be inferred from heatingItem sand cooling item....I only have an heating item (a switch) and yet I still see a cool option on the thermostat in homebridge. Being able to restrict to 0, 1, 2, 3 (from mqttthing)

Configure restrictHeatingCoolingState to an array of integers to restrict the target heating/cooling states made available by Homekit, where 0 represents OFF, 1 HEAT, 2 COOL and 3 AUTO, for example:

"restrictHeatingCoolingState": [0, 1, 2] - for OFF, HEAT and COOL (but no AUTO)
"restrictHeatingCoolingState": [0, 1] - for OFF or HEAT only
steilerDev commented 3 years ago

Hi @maisun and @psyciknz ,

thank you for your feedback.

  1. This is already possible based on the current implementation on the master branch. I added this to the documentation and will be part of the 1.1.1 release
  2. Implemented this for HeaterCooler, AirPurifier and Humidifier/Dehumidifier. Fan is a little bit different. If this is something you want to see in the future please open a different feature request.
  3. There is cooling for thermostats for Apple ;) When using only heatingItem, cooling won't be shown anymore (same way around). Refer to the current README on the master branch. This will also be part of 1.1.1

Regards!

ankitseal commented 3 years ago

Any update on the 1.1.1?

steilerDev commented 3 years ago

Fixed with 1.3.0