Open stridger opened 3 years ago
This project is based on the PySwitchbot library
Unfortunaley, PySwitchbot does not yet provide state information: https://github.com/Danielhiversen/pySwitchbot/blob/0.9.1/switchbot/__init__.py#L132
As soon as PySwitchbot supports reporting of states, I can implement reporting in switchbot-mqtt.
Upstream issue: https://github.com/Danielhiversen/pySwitchbot/issues/18
That makes sense, thank you!
relevant pull request: https://github.com/Danielhiversen/pySwitchbot/pull/21
Hi, it seems the upstream pull request mentioned has been merged :-) I'm eager to see if it will work, hope you have some time to update it on your end.
PS, I;''m running a RBPi3B+ with the 0.6.0-armv6 docker container, seems to work ok :)
Hi, we'll need a new release containing that MR first: https://github.com/Danielhiversen/pySwitchbot/releases
Hi, is there any plan to update the state along with motor position? Currently it seems to get stuck on closing
.
Hi, plans yes, but it hasn't been implemented yet.
for reference:
SwitchbotCurtain.get_basic_info
returns a boolean "inMotion", which could be used for updating the device state:
https://github.com/Danielhiversen/pySwitchbot/blob/0.13.3/switchbot/__init__.py#L709
should be added here: https://github.com/fphammerle/switchbot-mqtt/blob/v3.0.0/switchbot_mqtt/_actors/__init__.py#L160
Switchbot Curtain can be controlled by using the Switchbot remote or by physically pulling the curtain. Is it possible for switchbot-mqtt to pick up on such actions and update the mqtt state accordingly?