Добавить сенсор "Положение жалюзей"

Fixes #51
This commit is contained in:
GrKoR
2022-06-13 20:50:44 +03:00
parent 2acd934bbe
commit 809fddf13a
6 changed files with 235 additions and 27 deletions

View File

@@ -119,6 +119,22 @@ namespace aux_ac {
AirCon *ac_;
};
template<typename... Ts>
class AirConVLouverSetAction : public Action<Ts...>
{
public:
AirConVLouverSetAction(AirCon *ac) : ac_(ac) {}
TEMPLATABLE_VALUE(uint8_t, value);
void play(Ts... x) {
vlpos_ = this->value_.value(x...);
this->ac_->setVLouverFrontendSequence( (ac_vlouver_frontend)vlpos_);
}
protected:
AirCon *ac_;
uint8_t vlpos_;
};
// **************************************** SEND TEST PACKET ACTION ****************************************