feat: initial prototype

Signed-off-by: bullshit <coding@ow-software.pl>
This commit is contained in:
bullshit committed 2025-08-06 20:20:37 +02:00
1 parent 41242b0ef1
commit 6a9303a4d7
16 files changed
+1843 -8

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
#include "sensor.h"
#include "esphome/core/log.h"
namespace esphome
{
namespace nut_ups
{
static const char *const S_TAG = "nut_ups.sensor";
void NutUpsSensor::dump_config()
{
ESP_LOGCONFIG(S_TAG, "NUT UPS Sensor:");
ESP_LOGCONFIG(S_TAG, " Type: %s", sensor_type_.c_str());
LOG_SENSOR(" ", "Sensor", this);
}
} // namespace nut_ups
} // namespace esphome