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
7namespace esphome {
8namespace home_io_control {
9
11 switch (action) {
13 return "OPEN";
15 return "CLOSE";
17 return "VENT";
19 return "FAVORITE";
21 default:
22 return "STOP";
23 }
24}
25
26} // namespace home_io_control
27} // namespace esphome
const char * oneway_button_action_name(OneWayButtonAction action)
Human-readable name for a button action, as it appears in the diagnostic sensor.
OneWayButtonAction
The command a generated 1W button sends.
Controller identities for the one-way (1W) protocol.