Home IO Control
ESPHome add-on for IO-Homecontrol devices
Loading...
Searching...
No Matches
proto_device_types.cpp File Reference

The IO node-type / subtype table and its lookups. More...

#include "proto_device_types.h"
#include <cstdio>
Include dependency graph for proto_device_types.cpp:

Go to the source code of this file.

Namespaces

namespace  esphome
namespace  esphome::home_io_control

Functions

const DeviceTypeInfo * esphome::home_io_control::find_exact_device_type_info (DeviceType type, uint8_t subtype)
 Look up the table row with exactly this (type, subtype), without falling back.
const DeviceTypeInfo * esphome::home_io_control::find_device_type_info (DeviceType type, uint8_t subtype)
 Look up the table row for a (type, subtype) pair.
bool esphome::home_io_control::device_has_platform (DeviceType type, uint8_t subtype)
 Can an ESPHome platform drive this (type, subtype) today?
const char * esphome::home_io_control::device_platform_name (DeviceType type, uint8_t subtype)
 Name of the ESPHome platform that drives this (type, subtype).
DeviceCapabilityClass esphome::home_io_control::device_capability_class (DeviceType type, uint8_t subtype)
 Capability class of a (type, subtype), subtype-aware.
bool esphome::home_io_control::device_light_is_brightness_only (DeviceType type, uint8_t subtype)
 Is this light limited to brightness (no colour, no colour temperature)?
std::string esphome::home_io_control::format_device_kind (DeviceType type, uint8_t subtype)
 Human-readable description of a (type, subtype) for logs and reports.
std::string esphome::home_io_control::format_device_ids (DeviceType type, uint8_t subtype)
 Wire values of a (type, subtype), for logs that must stay readable without the table.

Detailed Description

The IO node-type / subtype table and its lookups.

Definition in file proto_device_types.cpp.