mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-21 15:04:24 +01:00
added esphome component and hmi file
This commit is contained in:
20
components/nextion_custom/automation.h
Normal file
20
components/nextion_custom/automation.h
Normal file
@@ -0,0 +1,20 @@
|
||||
#pragma once
|
||||
|
||||
#include <utility>
|
||||
|
||||
#include "esphome/core/component.h"
|
||||
#include "esphome/core/automation.h"
|
||||
#include "nextion_custom.h"
|
||||
|
||||
namespace esphome {
|
||||
namespace NextionCustom {
|
||||
|
||||
class NextionCustomMsgIncomingTrigger : public Trigger<std::string> {
|
||||
public:
|
||||
explicit NextionCustomMsgIncomingTrigger(NextionCustom *parent) {
|
||||
parent->add_incoming_msg_callback([this](const std::string &value) { this->trigger(value); });
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace NextionCustom
|
||||
} // namespace esphome
|
||||
Reference in New Issue
Block a user