jtp10181 / Hubitat

Custom Hubitat Apps/Drivers
Apache License 2.0
18 stars 6 forks source link

Zen21 - Add support for parameter 16 & 17 #22

Closed waterboysh closed 11 months ago

waterboysh commented 1 year ago

In the final firmware update for the Zen21, Zooz added these 2 parameters. I'm mainly interested in being able to disable programming from the switch.

jtp10181 commented 1 year ago

Temporary patch you can do is on line 406, fill in paramater number and fw version it starts.

Before:

    paddleProgramming: [ num: null,
        title: "Programming from the Paddle",
        size: 1, defaultVal: 0,
        options: [0:"Enabled", 1:"Disabled"],
        changes: [21:[num: null, firmVer:null], 23:[num: 15, firmVer:4.04], 26:[num: 15, firmVer:3.41],
            22:[num: 24, firmVer:4.04], 24:[num: 24, firmVer:4.04], 27:[num: 24, firmVer:3.04],
            71:[num: 17, firmVer:2.0], 73:[num: 17, firmVer:2.0], 76:[num: 17, firmVer:2.0],
            72:[num: 26, firmVer:2.0], 74:[num: 26, firmVer:2.0], 77:[num: 26, firmVer:2.0]
        ],

After:

    paddleProgramming: [ num: null,
        title: "Programming from the Paddle",
        size: 1, defaultVal: 0,
        options: [0:"Enabled", 1:"Disabled"],
        changes: [21:[num: 17, firmVer:4.05], 23:[num: 15, firmVer:4.04], 26:[num: 15, firmVer:3.41],
            22:[num: 24, firmVer:4.04], 24:[num: 24, firmVer:4.04], 27:[num: 24, firmVer:3.04],
            71:[num: 17, firmVer:2.0], 73:[num: 17, firmVer:2.0], 76:[num: 17, firmVer:2.0],
            72:[num: 26, firmVer:2.0], 74:[num: 26, firmVer:2.0], 77:[num: 26, firmVer:2.0]
        ],
    ],
jtp10181 commented 11 months ago

Pushed to main branch https://github.com/jtp10181/Hubitat/commit/6e9c599fa944df355b3f99d3653e99921c2d2a4f