api: make relay outputs hardware-profile aware

This commit is contained in:
2026-06-09 15:13:57 -06:00
parent f2966518da
commit c166b38730
10 changed files with 183 additions and 37 deletions
@@ -4,12 +4,16 @@
#define MAX_RELAYS 2
#define MAX_TEMP_SENSORS 8
#define HARDWARE_PROFILE "generic_esp32_2ch_relay"
struct RelayConfig {
String id;
String name;
String role;
uint8_t hardwareChannel;
uint8_t pin;
bool enabled;
bool available;
};
struct TempSensorConfig {