ESPHome 2025.5.0
Loading...
Searching...
No Matches
mqtt_alarm_control_panel.h
Go to the documentation of this file.
1#pragma once
2
4
5#ifdef USE_MQTT
6#ifdef USE_ALARM_CONTROL_PANEL
7
8#include "mqtt_component.h"
10
11namespace esphome {
12namespace mqtt {
13
15 public:
17
18 void setup() override;
19
20 void send_discovery(JsonObject root, mqtt::SendDiscoveryConfig &config) override;
21
22 bool send_initial_state() override;
23
24 bool publish_state();
25
26 void dump_config() override;
27
28 protected:
29 std::string component_type() const override;
30 const EntityBase *get_entity() const override;
31
33};
34
35} // namespace mqtt
36} // namespace esphome
37
38#endif
39#endif // USE_MQTT
MQTTAlarmControlPanelComponent(alarm_control_panel::AlarmControlPanel *alarm_control_panel)
void send_discovery(JsonObject root, mqtt::SendDiscoveryConfig &config) override
alarm_control_panel::AlarmControlPanel * alarm_control_panel_
MQTTComponent is the base class for all components that interact with MQTT to expose certain function...
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7
Simple Helper struct used for Home Assistant MQTT send_discovery().