ESPHome 2026.8.0b4
Loading...
Searching...
No Matches
hoermann_hcp_cover.h
Go to the documentation of this file.
1#pragma once
2
3#include <cmath>
4
7#include "../hoermann_hcp.h"
8
9namespace esphome::hoermann_hcp {
10
11class HoermannHcpCover : public cover::Cover, public Component {
12 public:
13 explicit HoermannHcpCover(HoermannHcp *parent) : parent_(parent) {}
14
15 void setup() override;
16 void dump_config() override;
18 void control(const cover::CoverCall &call) override;
19
20 protected:
21 void update_from_state_();
23 // NAN until the first position is observed, so no direction is inferred from a baseline that never existed.
25};
26
27} // namespace esphome::hoermann_hcp
Base class for all cover devices.
Definition cover.h:110
cover::CoverTraits get_traits() override
void control(const cover::CoverCall &call) override