|
Home IO Control
ESPHome add-on for IO-Homecontrol devices
|
Conversions and renderers shared by the hub and its Home Assistant entities. More...
#include "log_helpers.h"#include "proto_constants.h"#include "proto_device_model.h"#include "proto_frame.h"#include "proto_sizes.h"#include <cmath>#include <cstdint>#include <cstring>#include <string>Go to the source code of this file.
Namespaces | |
| namespace | esphome |
| namespace | esphome::home_io_control |
| namespace | esphome::home_io_control::detail |
Functions | |
| uint8_t | esphome::home_io_control::detail::round_percent (float fraction) |
| Convert a 0.0-1.0 HA fraction (position, tilt, or brightness) to a 0-100 IO percent. | |
| std::string | esphome::home_io_control::detail::format_originator (uint8_t originator) |
| Render a Command Originator byte as "name(0xXX)", e.g. | |
| std::string | esphome::home_io_control::detail::describe_last_commander (const IoDevice &dev, const uint8_t *hub_node_id) |
| Render the "Last Commanded By" sensor string. | |
| std::string | esphome::home_io_control::detail::describe_last_command_source (const IoDevice &dev) |
| Render the "Last Command Source" sensor string. | |
Variables | |
| constexpr float | esphome::home_io_control::detail::BINARY_ENTITY_ON_POSITION_THRESHOLD |
| Shared 0-100 cutoff: values below this mean binary "on". | |
Conversions and renderers shared by the hub and its Home Assistant entities.
Carries no dependency on the hub itself, so an entity can include this header instead of the hub's private helpers (make include-graph enforces that split).
Definition in file entity_helpers.h.