parent
8b9f4c78b8
commit
6e96ab5a5d
@ -0,0 +1,23 @@
|
||||
#include "esphome/core/log.h"
|
||||
#include "empty_binary_output.h"
|
||||
|
||||
namespace esphome {
|
||||
namespace empty_binary_output {
|
||||
|
||||
static const char *TAG = "empty_binary_output.binary_output";
|
||||
|
||||
void EmptyBinaryOutput::setup(){
|
||||
|
||||
}
|
||||
|
||||
void EmptyBinaryOutput::write_state(bool state){
|
||||
|
||||
}
|
||||
|
||||
void EmptyBinaryOutput::dump_config() {
|
||||
ESP_LOGCONFIG(TAG, "Custom binary output");
|
||||
}
|
||||
|
||||
} //namespace empty_binary_output
|
||||
} //namespace esphome
|
||||
|
||||
@ -0,0 +1,22 @@
|
||||
#include "esphome/core/log.h"
|
||||
#include "empty_binary_sensor.h"
|
||||
|
||||
namespace esphome {
|
||||
namespace empty_binary_sensor {
|
||||
|
||||
static const char *TAG = "empty_binary_sensor.binary_sensor";
|
||||
|
||||
void EmptyBinarySensor::setup() {
|
||||
|
||||
}
|
||||
|
||||
void EmptyBinarySensor::update() {
|
||||
|
||||
}
|
||||
|
||||
void EmptyBinarySensor::dump_config() {
|
||||
ESP_LOGCONFIG(TAG, "Custom binary sensor");
|
||||
}
|
||||
|
||||
} //namespace empty_binary_sensor
|
||||
} //namespace esphome
|
||||
@ -1,23 +0,0 @@
|
||||
#include "esphome/core/log.h"
|
||||
#include "empty_custom_binary_output.h"
|
||||
|
||||
namespace esphome {
|
||||
namespace empty_custom_binary_output {
|
||||
|
||||
static const char *TAG = "empty_custom_binary_output.binary_output";
|
||||
|
||||
void EmptyCustomBinaryOutput::setup(){
|
||||
|
||||
}
|
||||
|
||||
void EmptyCustomBinaryOutput::write_state(bool state){
|
||||
|
||||
}
|
||||
|
||||
void EmptyCustomBinaryOutput::dump_config() {
|
||||
ESP_LOGCONFIG(TAG, "Custom binary output");
|
||||
}
|
||||
|
||||
} //namespace empty_custom_binary_output
|
||||
} //namespace esphome
|
||||
|
||||
@ -1,22 +0,0 @@
|
||||
#include "esphome/core/log.h"
|
||||
#include "empty_custom_binary_sensor.h"
|
||||
|
||||
namespace esphome {
|
||||
namespace empty_custom_binary_sensor {
|
||||
|
||||
static const char *TAG = "empty_custom_binary_sensor.binary_sensor";
|
||||
|
||||
void EmptyCustomBinarySensor::setup() {
|
||||
|
||||
}
|
||||
|
||||
void EmptyCustomBinarySensor::update() {
|
||||
|
||||
}
|
||||
|
||||
void EmptyCustomBinarySensor::dump_config() {
|
||||
ESP_LOGCONFIG(TAG, "Custom binary sensor");
|
||||
}
|
||||
|
||||
} //namespace empty_custom_binary_sensor
|
||||
} //namespace esphome
|
||||
@ -1,3 +0,0 @@
|
||||
import esphome.codegen as cg
|
||||
|
||||
empty_custom_fan_ns = cg.esphome_ns.namespace('empty_custom_fan')
|
||||
@ -1,23 +0,0 @@
|
||||
#include "esphome/core/log.h"
|
||||
#include "empty_custom_float_output.h"
|
||||
|
||||
namespace esphome {
|
||||
namespace empty_custom_float_output {
|
||||
|
||||
static const char *TAG = "empty_custom_float_output.output";
|
||||
|
||||
void EmptyCustomFloatOutput::setup(){
|
||||
|
||||
}
|
||||
|
||||
void EmptyCustomFloatOutput::write_state(float state){
|
||||
|
||||
}
|
||||
|
||||
void EmptyCustomFloatOutput::dump_config() {
|
||||
ESP_LOGCONFIG(TAG, "Empty custom float output");
|
||||
}
|
||||
|
||||
} //namespace empty_custom_float_output
|
||||
} //namespace esphome
|
||||
|
||||
@ -1,32 +0,0 @@
|
||||
#include "esphome/core/log.h"
|
||||
#include "empty_custom_light.h"
|
||||
|
||||
namespace esphome {
|
||||
namespace empty_custom_light {
|
||||
|
||||
static const char *TAG = "empty_custom_light.light";
|
||||
|
||||
void EmptyCustomLightOutput::setup() {
|
||||
|
||||
}
|
||||
|
||||
light::LightTraits EmptyCustomLightOutput::get_traits() {
|
||||
auto traits = light::LightTraits();
|
||||
traits.set_supports_brightness(true);
|
||||
traits.set_supports_rgb(false);
|
||||
traits.set_supports_rgb_white_value(false);
|
||||
traits.set_supports_color_temperature(false);
|
||||
|
||||
return traits;
|
||||
}
|
||||
|
||||
void EmptyCustomLightOutput::write_state(light::LightState *state) {
|
||||
|
||||
}
|
||||
|
||||
void EmptyCustomLightOutput::dump_config(){
|
||||
ESP_LOGCONFIG(TAG, "Empty custom light");
|
||||
}
|
||||
|
||||
} //namespace empty_custom_light
|
||||
} //namespace esphome
|
||||
@ -1,26 +0,0 @@
|
||||
#include "esphome/core/log.h"
|
||||
#include "empty_custom_sensor.h"
|
||||
|
||||
namespace esphome {
|
||||
namespace empty_custom_sensor {
|
||||
|
||||
static const char *TAG = "empty_custom_sensor.sensor";
|
||||
|
||||
void EmptyCustomSensor::setup() {
|
||||
|
||||
}
|
||||
|
||||
void EmptyCustomSensor::loop() {
|
||||
|
||||
}
|
||||
|
||||
void EmptyCustomSensor::update() {
|
||||
|
||||
}
|
||||
|
||||
void EmptyCustomSensor::dump_config() {
|
||||
ESP_LOGCONFIG(TAG, "Empty custom sensor");
|
||||
}
|
||||
|
||||
} //namespace empty_custom_sensor
|
||||
} //namespace esphome
|
||||
@ -1,22 +0,0 @@
|
||||
#include "esphome/core/log.h"
|
||||
#include "empty_custom_switch.h"
|
||||
|
||||
namespace esphome {
|
||||
namespace empty_custom_switch {
|
||||
|
||||
static const char *TAG = "empty_custom_switch.switch";
|
||||
|
||||
void EmptyCustomSwitch::setup() {
|
||||
|
||||
}
|
||||
|
||||
void EmptyCustomSwitch::write_state(bool state) {
|
||||
|
||||
}
|
||||
|
||||
void EmptyCustomSwitch::dump_config(){
|
||||
ESP_LOGCONFIG(TAG, "Empty custom switch");
|
||||
}
|
||||
|
||||
} //namespace empty_custom_switch
|
||||
} //namespace esphome
|
||||
@ -0,0 +1,3 @@
|
||||
import esphome.codegen as cg
|
||||
|
||||
empty_fan_ns = cg.esphome_ns.namespace('empty_fan')
|
||||
@ -0,0 +1,23 @@
|
||||
#include "esphome/core/log.h"
|
||||
#include "empty_float_output.h"
|
||||
|
||||
namespace esphome {
|
||||
namespace empty_float_output {
|
||||
|
||||
static const char *TAG = "empty_float_output.output";
|
||||
|
||||
void EmptyFloatOutput::setup(){
|
||||
|
||||
}
|
||||
|
||||
void EmptyFloatOutput::write_state(float state){
|
||||
|
||||
}
|
||||
|
||||
void EmptyFloatOutput::dump_config() {
|
||||
ESP_LOGCONFIG(TAG, "Empty custom float output");
|
||||
}
|
||||
|
||||
} //namespace empty_float_output
|
||||
} //namespace esphome
|
||||
|
||||
@ -0,0 +1,32 @@
|
||||
#include "esphome/core/log.h"
|
||||
#include "empty_light.h"
|
||||
|
||||
namespace esphome {
|
||||
namespace empty_light {
|
||||
|
||||
static const char *TAG = "empty_light.light";
|
||||
|
||||
void EmptyLightOutput::setup() {
|
||||
|
||||
}
|
||||
|
||||
light::LightTraits EmptyLightOutput::get_traits() {
|
||||
auto traits = light::LightTraits();
|
||||
traits.set_supports_brightness(true);
|
||||
traits.set_supports_rgb(false);
|
||||
traits.set_supports_rgb_white_value(false);
|
||||
traits.set_supports_color_temperature(false);
|
||||
|
||||
return traits;
|
||||
}
|
||||
|
||||
void EmptyLightOutput::write_state(light::LightState *state) {
|
||||
|
||||
}
|
||||
|
||||
void EmptyLightOutput::dump_config(){
|
||||
ESP_LOGCONFIG(TAG, "Empty custom light");
|
||||
}
|
||||
|
||||
} //namespace empty_light
|
||||
} //namespace esphome
|
||||
@ -0,0 +1,26 @@
|
||||
#include "esphome/core/log.h"
|
||||
#include "empty_sensor.h"
|
||||
|
||||
namespace esphome {
|
||||
namespace empty_sensor {
|
||||
|
||||
static const char *TAG = "empty_sensor.sensor";
|
||||
|
||||
void EmptySensor::setup() {
|
||||
|
||||
}
|
||||
|
||||
void EmptySensor::loop() {
|
||||
|
||||
}
|
||||
|
||||
void EmptySensor::update() {
|
||||
|
||||
}
|
||||
|
||||
void EmptySensor::dump_config() {
|
||||
ESP_LOGCONFIG(TAG, "Empty custom sensor");
|
||||
}
|
||||
|
||||
} //namespace empty_sensor
|
||||
} //namespace esphome
|
||||
@ -0,0 +1,22 @@
|
||||
#include "esphome/core/log.h"
|
||||
#include "empty_switch.h"
|
||||
|
||||
namespace esphome {
|
||||
namespace empty_switch {
|
||||
|
||||
static const char *TAG = "empty_switch.switch";
|
||||
|
||||
void EmptySwitch::setup() {
|
||||
|
||||
}
|
||||
|
||||
void EmptySwitch::write_state(bool state) {
|
||||
|
||||
}
|
||||
|
||||
void EmptySwitch::dump_config(){
|
||||
ESP_LOGCONFIG(TAG, "Empty custom switch");
|
||||
}
|
||||
|
||||
} //namespace empty_switch
|
||||
} //namespace esphome
|
||||
Loading…
Reference in new issue