NorthernMan54 / node-red-contrib-homebridge-automation

Homebridge and Node-RED Integration
Apache License 2.0
106 stars 18 forks source link

TargetPosition not working #73

Open vladtsit opened 3 years ago

vladtsit commented 3 years ago

Hi, I have window-covering accessory provided by Broadlink plugin. I can successfully get state {"CurrentPosition":100,"TargetPosition":100,"PositionState":2} but if I send {"TargetPosition" :90 } to hb-control I'm getting following error:

Payload should be an JSON object containing device characteristics and values, ie {"On":false, "Brightness":0 }Valid values include: CurrentPosition, TargetPosition, PositionState

What is wrong?

Regards, Vladimir

NorthernMan54 commented 3 years ago

As the message indicates that error indicates that the payload object is not a valid JSON Object. Please check your coding etc

If an unsupported characteristic is received the error is different

Characteristic 'Brightnesss' is not valid. Try one of these: On