KraigM / homebridge-wink

Wink hub plugin for HomeBridge
54 stars 37 forks source link

Z-Wave Shades (Somfy) #40

Open mriksman opened 8 years ago

mriksman commented 8 years ago

When I change the Target Position, I get; [wink] Changing target property 'position' of the undefined called Kitchen to 0 But nothing happens. I put in some logging lines of code to see where the code fails, line 83 of wink-accessory.js;

    } else if (this.device.desired_state[sProperty] == undefined) {
        callback(Error("Unsupported"));
        return;
    }

When I comment out these lines, it progresses thorough and the blinds operate. However, as there is no feedback from these blinds, I get a message saying; [wink] Unable to determine if update was successful.

I am curious as to how commenting those lines out worked. Surely if this was 'undefined', the write to the API wouldn't have worked, and the blinds wouldn't have operated?

mriksman commented 8 years ago

Looking at Winkathome.net, it seems that desired_state.position is null. So even though a write occurs, and the control works; Wink must set this value to null afterwards?