You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 9, 2022. It is now read-only.
I just updated the firmware on my switchbot curtains (foolishly), and now the current_position and battery attributes are incorrect. They appear to be swapped.
The text was updated successfully, but these errors were encountered:
for anyone else with this issue, changing the last part of cover.py to look like
@propertydefcurrent_cover_position(self):
"""Return the current position of cover shutter."""return100-self._device.get_battery_percent()
#return self._device.get_position()defupdate(self):
self._device.update()
self._light=self._device.get_light_level()
self._battery=self._device.get_position()
#self._battery = self._device.get_battery_percent()
I just updated the firmware on my switchbot curtains (foolishly), and now the current_position and battery attributes are incorrect. They appear to be swapped.
The text was updated successfully, but these errors were encountered: