lwsrbrts / PoSHue

Windows PowerShell 5/PowerShell Core 6 Classes for controlling Philips Hue Bridge and Hue Lights, Groups, Sensors.
GNU Lesser General Public License v3.0
51 stars 7 forks source link

Allow bri / sat 0-255 range #12

Closed psitem closed 6 years ago

psitem commented 6 years ago

I definitely have some bulbs that return 255 brightness. These aren't ZLL profile so I can't put them on an actual Hue Bridge to see if it would mangle the value to 254.

    "8": {
        "etag": "0331c26bcc0b370b77e746e8e8247f8c",
        "hascolor": false,
        "manufacturername": "sengled",
        "modelid": "E11-G13",
        "name": "Patio Left",
        "state": {
            "alert": "none",
            "bri": 255,
            "on": false,
            "reachable": true
        },
        "swversion": "00000003",
        "type": "Dimmable light",
        "uniqueid": "b0:ce:18:14:03:0d:78:86-01"
    },
    "9": {
        "etag": "0331c26bcc0b370b77e746e8e8247f8c",
        "hascolor": false,
        "manufacturername": "sengled",
        "modelid": "E11-G13",
        "name": "Patio Right",
        "state": {
            "alert": "none",
            "bri": 255,
            "on": false,
            "reachable": true
        },
        "swversion": "00000003",
        "type": "Dimmable light",
        "uniqueid": "b0:ce:18:14:03:0d:6b:18-01"
    },
psitem commented 6 years ago

With bri it is documented that setting 0/255 on Hue bulbs will return 1/254.

https://developers.meethue.com/documentation/core-concepts