ESPHome
2025.12.0-dev
Loading...
Searching...
No Matches
esphome
components
seeed_mr24hpc1
select
scene_mode_select.cpp
Go to the documentation of this file.
1
#include "
scene_mode_select.h
"
2
3
namespace
esphome
{
4
namespace
seeed_mr24hpc1 {
5
6
void
SceneModeSelect::control
(
size_t
index) {
7
this->
publish_state
(index);
8
this->
parent_
->set_scene_mode(index);
9
}
10
11
}
// namespace seeed_mr24hpc1
12
}
// namespace esphome
esphome::Parented< MR24HPC1Component >::parent_
MR24HPC1Component * parent_
Definition
helpers.h:929
esphome::seeed_mr24hpc1::SceneModeSelect::control
void control(size_t index) override
Definition
scene_mode_select.cpp:6
esphome::select::Select::publish_state
void publish_state(const std::string &state)
Definition
select.cpp:12
esphome
Providing packet encoding functions for exchanging data with a remote host.
Definition
a01nyub.cpp:7
scene_mode_select.h
Generated by
1.12.0