cflurin / homebridge-mqtt

Homebridge-mqtt is a Plugin for Homebridge.
Apache License 2.0
229 stars 39 forks source link

validValues for a characteristic #90

Closed faxioman closed 4 years ago

faxioman commented 4 years ago

Is there a way to set the "validValues" prop of a characteristic (eg. CurrentHeatingCoolingState of a thermostat than can only work in "heat" mode)?

faxioman commented 4 years ago

Ehm ... of course.

{
    "name": "My thermostat",
    "service_name": "thermostat",
    "service": "Thermostat",
    "TargetHeatingCoolingState": {
        "validValues": [
            0,
            1
        ]
    }
}

;)

bohtho commented 4 years ago

Can this be updated after the accessory is first created?