Home IO Control
ESPHome add-on for IO-Homecontrol devices
Loading...
Searching...
No Matches
oneway_controller.cpp
Go to the documentation of this file.
1
/// @file oneway_controller.cpp
2
/// @brief Controller identities for the one-way (1W) protocol.
3
/// @ingroup hioc_protocol
4
5
#include "
oneway_controller.h
"
6
7
namespace
esphome
{
8
namespace
home_io_control
{
9
10
const
char
*
oneway_button_action_name
(
OneWayButtonAction
action) {
11
switch
(action) {
12
case
OneWayButtonAction::OPEN
:
13
return
"OPEN"
;
14
case
OneWayButtonAction::CLOSE
:
15
return
"CLOSE"
;
16
case
OneWayButtonAction::VENT
:
17
return
"VENT"
;
18
case
OneWayButtonAction::FAVORITE
:
19
return
"FAVORITE"
;
20
case
OneWayButtonAction::STOP
:
21
default
:
22
return
"STOP"
;
23
}
24
}
25
26
}
// namespace home_io_control
27
}
// namespace esphome
esphome::home_io_control::oneway_button_action_name
const char * oneway_button_action_name(OneWayButtonAction action)
Human-readable name for a button action, as it appears in the diagnostic sensor.
Definition
oneway_controller.cpp:10
esphome::home_io_control::OneWayButtonAction
OneWayButtonAction
The command a generated 1W button sends.
Definition
oneway_controller.h:166
esphome::home_io_control::OneWayButtonAction::FAVORITE
@ FAVORITE
CoverCommand::FAVORITE.
Definition
oneway_controller.h:171
esphome::home_io_control::OneWayButtonAction::STOP
@ STOP
CoverCommand::STOP.
Definition
oneway_controller.h:169
esphome::home_io_control::OneWayButtonAction::VENT
@ VENT
CoverCommand::VENT.
Definition
oneway_controller.h:170
esphome::home_io_control::OneWayButtonAction::CLOSE
@ CLOSE
Position 100 (fully closed).
Definition
oneway_controller.h:168
esphome::home_io_control::OneWayButtonAction::OPEN
@ OPEN
Position 0 (fully open).
Definition
oneway_controller.h:167
esphome::home_io_control
Definition
device_registry.cpp:13
esphome
Definition
device_registry.cpp:12
oneway_controller.h
Controller identities for the one-way (1W) protocol.
components
home_io_control
oneway_controller.cpp
Generated by
1.16.1