ESPHome  2024.11.0
mqtt_alarm_control_panel.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "esphome/core/defines.h"
4 
5 #ifdef USE_MQTT
6 #ifdef USE_ALARM_CONTROL_PANEL
7 
8 #include "mqtt_component.h"
10 
11 namespace esphome {
12 namespace 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
alarm_control_panel::AlarmControlPanel * alarm_control_panel_
MQTTAlarmControlPanelComponent(alarm_control_panel::AlarmControlPanel *alarm_control_panel)
Simple Helper struct used for Home Assistant MQTT send_discovery().
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7
void send_discovery(JsonObject root, mqtt::SendDiscoveryConfig &config) override
MQTTComponent is the base class for all components that interact with MQTT to expose certain function...