ESPHome 2026.9.0-dev
Loading...
Searching...
No Matches
hoermann_hcp_button.h
Go to the documentation of this file.
1#pragma once
2
4#include "../hoermann_hcp.h"
5
6namespace esphome::hoermann_hcp {
7
8// The door commands the cover has no equivalent for. A refused command is already reported by the hub and
9// leaves nothing to correct here, because a button carries no state of its own.
11 public:
12 explicit HoermannHcpButton(HoermannHcp *parent) : parent_(parent) {}
13
14 protected:
16};
17
19 public:
21
22 protected:
23 void press_action() override { this->parent_->vent_door(); }
24};
25
27 public:
29
30 protected:
31 void press_action() override { this->parent_->half_open_door(); }
32};
33
34} // namespace esphome::hoermann_hcp
Base class for all buttons.
Definition button.h:25