arachnetech / homebridge-mqttthing

A plugin for Homebridge allowing the integration of many different accessory types using MQTT.
Apache License 2.0
462 stars 104 forks source link

Window Cover - change values for publishing #621

Open TAGinside opened 1 year ago

TAGinside commented 1 year ago

Hello !

its possible to change default values for my shelly 2PM cover profile ? For my shelly the position message begin with : "pos","number 0-100"

And with Window setting we have a configuration like this :

"type": "window", "name": "Stores_Salon", "url": "mqtt://localhost:9443", "topics": { "getOnline": "Home_Net/cmnd/Storesalon//online", "getCurrentDoorState": "Home_Net/cmnd/Storesalon//statuscover:0", "getDoorMoving": "Home_Net/cmnd/Storesalon//statuscover:0", "getCurrentPosition": "Home_Net/cmnd/Storesalon//status/cover:0", "setHoldPosition": "Home_Net/cmnd/Storesalon//command/cover:0", "getLockTargetState": "Home_Net/cmnd/Storesalon//statuscover:0", "getObstructionDetected": "Home_Net/cmnd/Storesalon//statuscover:0", "getPositionState": "Home_Net/cmnd/Storesalon//status/cover:0", "getTargetDoorState": "Home_Net/cmnd/Storesalon//statuscover:0", "setTargetDoorState": "Home_Net/cmnd/Storesalon//command/cover:0", "getTargetPosition": "Home_Net/cmnd/Storesalon//status/cover:0", "setTargetPosition": "Home_Net/cmnd/Storesalon//command/cover:0" }, "minPosition": 0, "maxPosition": 100, "accessory": ``"mqttthing"

And i want someting like this :

"minPosition": pos,0, "maxPosition": pos,100,