staromeste / homebridge-http-advanced-accessory

Supports all devices on HomeBridge Platform / Bridges devices to http
Apache License 2.0
65 stars 22 forks source link

modification of characteristics #10

Closed Srgk closed 5 years ago

Srgk commented 5 years ago

adding the possibility of modifying the properties of the characteristics


`"service": "Thermostat",
...
"props": {
    "CurrentHeatingCoolingState": {
        "format": "uint8",
        "maxValue": 1,
        "minValue": 0,
        "validValues": [
            0,
            1
        ],
        "perms": [
            "pr",
            "ev"
        ]
    },
    "TargetHeatingCoolingState": {
        "format": "uint8",
        "maxValue": 1,
        "minValue": 0,
        "validValues": [
            0,
            1
        ],
        "perms": [
            "pr",
            "pw",
            "ev"
        ]
    }
}`

example shows reduction of supported modes by thermostat

staromeste commented 5 years ago

Great commit. It's something I had in mind! Can you also update the documentation?

Srgk commented 5 years ago

My English is weak for such tasks, but with examples I can help