Add Switchbot Blind Tilt control (#2002)

close_up, close_down, open, and percentage command
Add auto-discovery with HA and cover component
This commit is contained in:
Florian authored and GitHub committed 2024-08-14 14:55:15 -05:00
1 parent 4ec577d6af
commit 04c3e7ef95
6 files changed
+244 -22

No files matched your search

+9
View File
@@ -82,5 +82,14 @@ public:
bool processActions(std::vector<BLEAction>& actions) override;
};
class SBBT_connect : public zBLEConnect {
uint8_t m_notifyVal;
void notifyCB(NimBLERemoteCharacteristic* pChar, uint8_t* pData, size_t length, bool isNotify);
public:
SBBT_connect(NimBLEAddress& addr) : zBLEConnect(addr) {}
bool processActions(std::vector<BLEAction>& actions) override;
};
#endif //ESP32
#endif //zBLEConnect_h