gaetancollaud / digitalstrom-mqtt

Bridge between digitalSTROM and MQTT
GNU Affero General Public License v3.0
23 stars 4 forks source link

Cover "STOP" command issue after migrating to version 2.x #51

Open kellerto opened 6 months ago

kellerto commented 6 months ago

Hi there, first of all, I would like to thank you for sharing your dss to MQTT application with us. It works very good and reliable. I love it. I'm using it to control DS via HASSIO.

Note: Still using version 2.0.6_linux_arm.v6 but checked the most recent released to make sure this topic is not solved yet.

Move the cover up and down works great: Mar 01 13:27:02 raspberrypiZero digitalstrom-mqtt[637]: 2024-03-01T13:27:02+01:00 INF Output value changed DeviceId=3504175fe000000000000000000596b800 Output=shadePositionOutside newValue=100 oldValue=0

but when pressing stop it throws following error: Mar 01 13:27:04 raspberrypiZero digitalstrom-mqtt[637]: 2024-03-01T13:27:04+01:00 ERR Error handling MQTT Message. error="error parsing message as float value: strconv.ParseFloat: parsing \"STOP\": invalid syntax" topic=devices/Jalousie_4/shadePositionOutside/command

Any suggestion or workaround for this?

gaetancollaud commented 5 months ago

Hi,

Sorry for the late response.

Unfortunatelly the stop command is gone since version 2. Indeed the new Digitalstrom API doesn't provide a way to send a stop command anymore. I was available in the deprecated API. Maybe there is a way to create a scenario to do such action, but I'm not even sure.

The workaround is to stay on the version 1.6.7 until digitalstrom provides such option in their API.