Implement full support for two shutters

This commit is contained in:
2022-02-20 20:47:24 +01:00
parent e294ee9cf3
commit c872facfa8
2 changed files with 366 additions and 0 deletions

33
include/main.h Normal file
View File

@@ -0,0 +1,33 @@
#include <ArduinoHA.h>
void initPins();
void initWifi();
void initHA();
void onCoverLeftCommand(HACover::CoverCommand cmd);
void onCoverRightCommand(HACover::CoverCommand cmd);
void onCoverLeftSetPositionCommand(uint8_t pos);
void onCoverRightSetPositionCommand(uint8_t pos);
void processStateLeft();
void processStateRight();
void sendCoverLeftOpen();
void sendCoverLeftStop();
void sendCoverLeftClose();
void sendCoverRightOpen();
void sendCoverRightStop();
void sendCoverRightClose();
void sendRemoteCommand();