binsentsu / am43-ctrl

Node Util for controlling an AM43 Blinds Drive Cover, either over MQTT or via a HTTP API
43 stars 25 forks source link

Shade Stopped Working But Battery is fine #33

Open misperry opened 3 years ago

misperry commented 3 years ago

Hey there, for some reason with the latest update for HASS.IO core core-2021.6.6 and supervisor-2021.06.3 and host OS 6.0 For some reason my AM43 shade item is no longer working.

I am receiving good data for the battery level and light sensor but I cannot raise or lower shades. I see no errors in the MQTT log and when I run the AM43 software I see no errors in it either.

Does anyone know where I could look next?

luisgarcia87 commented 3 years ago

same problem here! Unable to move the shaed, but light and battery sensors works fine

luisgarcia87 commented 3 years ago

Hey @misperry modify the MQTTConnector.js file. Go to the src files inside am43-ctrl folder (my location installed on a Raspberry Pi was /home/pi/node_modules/am43-ctrl/src/MQTTConnector.js and add a line #53 the following:

state_topic: ${deviceTopic}/state,

Based on this fix by @provinzio this PR #35

https://github.com/binsentsu/am43-ctrl/pull/35/files

misperry commented 3 years ago

That is awesome @luisgarcia87! That fixed it perfectly! Ho and by the way I added the `` around the it so I added:

state_topic: ${deviceTopic}/state, to my list around line #53. I knew It was just missing something in the definition of the shade. Thanks for the help!