mirror of
https://github.com/esphome/esphome.git
synced 2024-11-28 09:44:12 +01:00
Merge remote-tracking branch 'upstream/dev' into dev
This commit is contained in:
commit
746f17aea6
74 changed files with 1374 additions and 28 deletions
|
@ -1,7 +1,6 @@
|
|||
import esphome.codegen as cg
|
||||
import esphome.config_validation as cv
|
||||
from esphome import automation
|
||||
from esphome import core
|
||||
from esphome.automation import maybe_simple_id
|
||||
from esphome.const import CONF_ID
|
||||
from esphome.components import uart
|
||||
|
@ -101,7 +100,7 @@ def range_segment_list(input):
|
|||
|
||||
largest_distance = -1
|
||||
for distance in input:
|
||||
if isinstance(distance, core.Lambda):
|
||||
if isinstance(distance, cv.Lambda):
|
||||
continue
|
||||
m = cv.distance(distance)
|
||||
if m > 9:
|
||||
|
@ -128,14 +127,14 @@ MMWAVE_SETTINGS_SCHEMA = cv.Schema(
|
|||
cv.Optional(CONF_OUTPUT_LATENCY): {
|
||||
cv.Required(CONF_DELAY_AFTER_DETECT): cv.templatable(
|
||||
cv.All(
|
||||
cv.positive_time_period,
|
||||
cv.Range(max=core.TimePeriod(seconds=1638.375)),
|
||||
cv.positive_time_period_milliseconds,
|
||||
cv.Range(max=cv.TimePeriod(seconds=1638.375)),
|
||||
)
|
||||
),
|
||||
cv.Required(CONF_DELAY_AFTER_DISAPPEAR): cv.templatable(
|
||||
cv.All(
|
||||
cv.positive_time_period,
|
||||
cv.Range(max=core.TimePeriod(seconds=1638.375)),
|
||||
cv.positive_time_period_milliseconds,
|
||||
cv.Range(max=cv.TimePeriod(seconds=1638.375)),
|
||||
)
|
||||
),
|
||||
},
|
||||
|
|
|
@ -50,7 +50,7 @@ class DfrobotSen0395SettingsAction : public Action<Ts...>, public Parented<Dfrob
|
|||
float detect = this->delay_after_detect_.value(x...);
|
||||
float disappear = this->delay_after_disappear_.value(x...);
|
||||
if (detect >= 0 && disappear >= 0) {
|
||||
this->parent_->enqueue(make_unique<OutputLatencyCommand>(detect, disappear));
|
||||
this->parent_->enqueue(make_unique<SetLatencyCommand>(detect, disappear));
|
||||
}
|
||||
}
|
||||
if (this->start_after_power_on_.has_value()) {
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
#include "commands.h"
|
||||
|
||||
#include <cmath>
|
||||
|
||||
#include "esphome/core/log.h"
|
||||
|
||||
#include "dfrobot_sen0395.h"
|
||||
|
@ -194,32 +196,22 @@ uint8_t DetRangeCfgCommand::on_message(std::string &message) {
|
|||
return 0; // Command not done yet.
|
||||
}
|
||||
|
||||
OutputLatencyCommand::OutputLatencyCommand(float delay_after_detection, float delay_after_disappear) {
|
||||
delay_after_detection = round(delay_after_detection / 0.025) * 0.025;
|
||||
delay_after_disappear = round(delay_after_disappear / 0.025) * 0.025;
|
||||
if (delay_after_detection < 0)
|
||||
delay_after_detection = 0;
|
||||
if (delay_after_detection > 1638.375)
|
||||
delay_after_detection = 1638.375;
|
||||
if (delay_after_disappear < 0)
|
||||
delay_after_disappear = 0;
|
||||
if (delay_after_disappear > 1638.375)
|
||||
delay_after_disappear = 1638.375;
|
||||
|
||||
this->delay_after_detection_ = delay_after_detection;
|
||||
this->delay_after_disappear_ = delay_after_disappear;
|
||||
|
||||
this->cmd_ = str_sprintf("outputLatency -1 %.0f %.0f", delay_after_detection / 0.025, delay_after_disappear / 0.025);
|
||||
SetLatencyCommand::SetLatencyCommand(float delay_after_detection, float delay_after_disappear) {
|
||||
delay_after_detection = std::round(delay_after_detection / 0.025f) * 0.025f;
|
||||
delay_after_disappear = std::round(delay_after_disappear / 0.025f) * 0.025f;
|
||||
this->delay_after_detection_ = clamp(delay_after_detection, 0.0f, 1638.375f);
|
||||
this->delay_after_disappear_ = clamp(delay_after_disappear, 0.0f, 1638.375f);
|
||||
this->cmd_ = str_sprintf("setLatency %.03f %.03f", this->delay_after_detection_, this->delay_after_disappear_);
|
||||
};
|
||||
|
||||
uint8_t OutputLatencyCommand::on_message(std::string &message) {
|
||||
uint8_t SetLatencyCommand::on_message(std::string &message) {
|
||||
if (message == "sensor is not stopped") {
|
||||
ESP_LOGE(TAG, "Cannot configure output latency. Sensor is not stopped!");
|
||||
return 1; // Command done
|
||||
} else if (message == "Done") {
|
||||
ESP_LOGI(TAG, "Updated output latency config:");
|
||||
ESP_LOGI(TAG, "Signal that someone was detected is delayed by %.02fs.", this->delay_after_detection_);
|
||||
ESP_LOGI(TAG, "Signal that nobody is detected anymore is delayed by %.02fs.", this->delay_after_disappear_);
|
||||
ESP_LOGI(TAG, "Signal that someone was detected is delayed by %.03f s.", this->delay_after_detection_);
|
||||
ESP_LOGI(TAG, "Signal that nobody is detected anymore is delayed by %.03f s.", this->delay_after_disappear_);
|
||||
ESP_LOGD(TAG, "Used command: %s", this->cmd_.c_str());
|
||||
return 1; // Command done
|
||||
}
|
||||
|
|
|
@ -62,9 +62,9 @@ class DetRangeCfgCommand : public Command {
|
|||
// TODO: Set min max values in component, so they can be published as sensor.
|
||||
};
|
||||
|
||||
class OutputLatencyCommand : public Command {
|
||||
class SetLatencyCommand : public Command {
|
||||
public:
|
||||
OutputLatencyCommand(float delay_after_detection, float delay_after_disappear);
|
||||
SetLatencyCommand(float delay_after_detection, float delay_after_disappear);
|
||||
uint8_t on_message(std::string &message) override;
|
||||
|
||||
protected:
|
||||
|
|
13
tests/components/a01nyub/test.esp32-c3-idf.yaml
Normal file
13
tests/components/a01nyub/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,13 @@
|
|||
uart:
|
||||
- id: uart_a01nyub
|
||||
tx_pin:
|
||||
number: 4
|
||||
rx_pin:
|
||||
number: 5
|
||||
baud_rate: 9600
|
||||
|
||||
sensor:
|
||||
- platform: a01nyub
|
||||
id: a01nyub_sensor
|
||||
name: a01nyub Distance
|
||||
uart_id: uart_a01nyub
|
13
tests/components/a01nyub/test.esp32-c3.yaml
Normal file
13
tests/components/a01nyub/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,13 @@
|
|||
uart:
|
||||
- id: uart_a01nyub
|
||||
tx_pin:
|
||||
number: 4
|
||||
rx_pin:
|
||||
number: 5
|
||||
baud_rate: 9600
|
||||
|
||||
sensor:
|
||||
- platform: a01nyub
|
||||
id: a01nyub_sensor
|
||||
name: a01nyub Distance
|
||||
uart_id: uart_a01nyub
|
13
tests/components/a01nyub/test.esp32-idf.yaml
Normal file
13
tests/components/a01nyub/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,13 @@
|
|||
uart:
|
||||
- id: uart_a01nyub
|
||||
tx_pin:
|
||||
number: 17
|
||||
rx_pin:
|
||||
number: 16
|
||||
baud_rate: 9600
|
||||
|
||||
sensor:
|
||||
- platform: a01nyub
|
||||
id: a01nyub_sensor
|
||||
name: a01nyub Distance
|
||||
uart_id: uart_a01nyub
|
13
tests/components/a01nyub/test.esp32.yaml
Normal file
13
tests/components/a01nyub/test.esp32.yaml
Normal file
|
@ -0,0 +1,13 @@
|
|||
uart:
|
||||
- id: uart_a01nyub
|
||||
tx_pin:
|
||||
number: 17
|
||||
rx_pin:
|
||||
number: 16
|
||||
baud_rate: 9600
|
||||
|
||||
sensor:
|
||||
- platform: a01nyub
|
||||
id: a01nyub_sensor
|
||||
name: a01nyub Distance
|
||||
uart_id: uart_a01nyub
|
13
tests/components/a01nyub/test.esp8266.yaml
Normal file
13
tests/components/a01nyub/test.esp8266.yaml
Normal file
|
@ -0,0 +1,13 @@
|
|||
uart:
|
||||
- id: uart_a01nyub
|
||||
tx_pin:
|
||||
number: 4
|
||||
rx_pin:
|
||||
number: 5
|
||||
baud_rate: 9600
|
||||
|
||||
sensor:
|
||||
- platform: a01nyub
|
||||
id: a01nyub_sensor
|
||||
name: a01nyub Distance
|
||||
uart_id: uart_a01nyub
|
13
tests/components/a01nyub/test.rp2040.yaml
Normal file
13
tests/components/a01nyub/test.rp2040.yaml
Normal file
|
@ -0,0 +1,13 @@
|
|||
uart:
|
||||
- id: uart_a01nyub
|
||||
tx_pin:
|
||||
number: 4
|
||||
rx_pin:
|
||||
number: 5
|
||||
baud_rate: 9600
|
||||
|
||||
sensor:
|
||||
- platform: a01nyub
|
||||
id: a01nyub_sensor
|
||||
name: a01nyub Distance
|
||||
uart_id: uart_a01nyub
|
13
tests/components/a02yyuw/test.esp32-c3-idf.yaml
Normal file
13
tests/components/a02yyuw/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,13 @@
|
|||
uart:
|
||||
- id: uart_a02yyuw
|
||||
tx_pin:
|
||||
number: 4
|
||||
rx_pin:
|
||||
number: 5
|
||||
baud_rate: 9600
|
||||
|
||||
sensor:
|
||||
- platform: a02yyuw
|
||||
id: a02yyuw_sensor
|
||||
name: a02yyuw Distance
|
||||
uart_id: uart_a02yyuw
|
13
tests/components/a02yyuw/test.esp32-c3.yaml
Normal file
13
tests/components/a02yyuw/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,13 @@
|
|||
uart:
|
||||
- id: uart_a02yyuw
|
||||
tx_pin:
|
||||
number: 4
|
||||
rx_pin:
|
||||
number: 5
|
||||
baud_rate: 9600
|
||||
|
||||
sensor:
|
||||
- platform: a02yyuw
|
||||
id: a02yyuw_sensor
|
||||
name: a02yyuw Distance
|
||||
uart_id: uart_a02yyuw
|
13
tests/components/a02yyuw/test.esp32-idf.yaml
Normal file
13
tests/components/a02yyuw/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,13 @@
|
|||
uart:
|
||||
- id: uart_a02yyuw
|
||||
tx_pin:
|
||||
number: 17
|
||||
rx_pin:
|
||||
number: 16
|
||||
baud_rate: 9600
|
||||
|
||||
sensor:
|
||||
- platform: a02yyuw
|
||||
id: a02yyuw_sensor
|
||||
name: a02yyuw Distance
|
||||
uart_id: uart_a02yyuw
|
13
tests/components/a02yyuw/test.esp32.yaml
Normal file
13
tests/components/a02yyuw/test.esp32.yaml
Normal file
|
@ -0,0 +1,13 @@
|
|||
uart:
|
||||
- id: uart_a02yyuw
|
||||
tx_pin:
|
||||
number: 17
|
||||
rx_pin:
|
||||
number: 16
|
||||
baud_rate: 9600
|
||||
|
||||
sensor:
|
||||
- platform: a02yyuw
|
||||
id: a02yyuw_sensor
|
||||
name: a02yyuw Distance
|
||||
uart_id: uart_a02yyuw
|
13
tests/components/a02yyuw/test.esp8266.yaml
Normal file
13
tests/components/a02yyuw/test.esp8266.yaml
Normal file
|
@ -0,0 +1,13 @@
|
|||
uart:
|
||||
- id: uart_a02yyuw
|
||||
tx_pin:
|
||||
number: 4
|
||||
rx_pin:
|
||||
number: 5
|
||||
baud_rate: 9600
|
||||
|
||||
sensor:
|
||||
- platform: a02yyuw
|
||||
id: a02yyuw_sensor
|
||||
name: a02yyuw Distance
|
||||
uart_id: uart_a02yyuw
|
13
tests/components/a02yyuw/test.rp2040.yaml
Normal file
13
tests/components/a02yyuw/test.rp2040.yaml
Normal file
|
@ -0,0 +1,13 @@
|
|||
uart:
|
||||
- id: uart_a02yyuw
|
||||
tx_pin:
|
||||
number: 4
|
||||
rx_pin:
|
||||
number: 5
|
||||
baud_rate: 9600
|
||||
|
||||
sensor:
|
||||
- platform: a02yyuw
|
||||
id: a02yyuw_sensor
|
||||
name: a02yyuw Distance
|
||||
uart_id: uart_a02yyuw
|
12
tests/components/a4988/test.esp32-c3-idf.yaml
Normal file
12
tests/components/a4988/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,12 @@
|
|||
stepper:
|
||||
- platform: a4988
|
||||
id: a4988_stepper
|
||||
step_pin:
|
||||
number: 2
|
||||
dir_pin:
|
||||
number: 3
|
||||
sleep_pin:
|
||||
number: 5
|
||||
max_speed: 250 steps/s
|
||||
acceleration: 100 steps/s^2
|
||||
deceleration: 200 steps/s^2
|
12
tests/components/a4988/test.esp32-c3.yaml
Normal file
12
tests/components/a4988/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,12 @@
|
|||
stepper:
|
||||
- platform: a4988
|
||||
id: a4988_stepper
|
||||
step_pin:
|
||||
number: 2
|
||||
dir_pin:
|
||||
number: 3
|
||||
sleep_pin:
|
||||
number: 5
|
||||
max_speed: 250 steps/s
|
||||
acceleration: 100 steps/s^2
|
||||
deceleration: 200 steps/s^2
|
12
tests/components/a4988/test.esp32-idf.yaml
Normal file
12
tests/components/a4988/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,12 @@
|
|||
stepper:
|
||||
- platform: a4988
|
||||
id: a4988_stepper
|
||||
step_pin:
|
||||
number: 22
|
||||
dir_pin:
|
||||
number: 23
|
||||
sleep_pin:
|
||||
number: 25
|
||||
max_speed: 250 steps/s
|
||||
acceleration: 100 steps/s^2
|
||||
deceleration: 200 steps/s^2
|
12
tests/components/a4988/test.esp32.yaml
Normal file
12
tests/components/a4988/test.esp32.yaml
Normal file
|
@ -0,0 +1,12 @@
|
|||
stepper:
|
||||
- platform: a4988
|
||||
id: a4988_stepper
|
||||
step_pin:
|
||||
number: 22
|
||||
dir_pin:
|
||||
number: 23
|
||||
sleep_pin:
|
||||
number: 25
|
||||
max_speed: 250 steps/s
|
||||
acceleration: 100 steps/s^2
|
||||
deceleration: 200 steps/s^2
|
12
tests/components/a4988/test.esp8266.yaml
Normal file
12
tests/components/a4988/test.esp8266.yaml
Normal file
|
@ -0,0 +1,12 @@
|
|||
stepper:
|
||||
- platform: a4988
|
||||
id: a4988_stepper
|
||||
step_pin:
|
||||
number: 1
|
||||
dir_pin:
|
||||
number: 2
|
||||
sleep_pin:
|
||||
number: 5
|
||||
max_speed: 250 steps/s
|
||||
acceleration: 100 steps/s^2
|
||||
deceleration: 200 steps/s^2
|
12
tests/components/a4988/test.rp2040.yaml
Normal file
12
tests/components/a4988/test.rp2040.yaml
Normal file
|
@ -0,0 +1,12 @@
|
|||
stepper:
|
||||
- platform: a4988
|
||||
id: a4988_stepper
|
||||
step_pin:
|
||||
number: 2
|
||||
dir_pin:
|
||||
number: 3
|
||||
sleep_pin:
|
||||
number: 5
|
||||
max_speed: 250 steps/s
|
||||
acceleration: 100 steps/s^2
|
||||
deceleration: 200 steps/s^2
|
21
tests/components/absolute_humidity/test.esp32-c3-idf.yaml
Normal file
21
tests/components/absolute_humidity/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,21 @@
|
|||
sensor:
|
||||
- platform: absolute_humidity
|
||||
name: Absolute Humidity
|
||||
temperature: template_temperature
|
||||
humidity: template_humidity
|
||||
- platform: template
|
||||
id: template_humidity
|
||||
lambda: |-
|
||||
if (millis() > 10000) {
|
||||
return 0.6;
|
||||
} else {
|
||||
return 0.0;
|
||||
}
|
||||
- platform: template
|
||||
id: template_temperature
|
||||
lambda: |-
|
||||
if (millis() > 10000) {
|
||||
return 42.0;
|
||||
} else {
|
||||
return 0.0;
|
||||
}
|
21
tests/components/absolute_humidity/test.esp32-c3.yaml
Normal file
21
tests/components/absolute_humidity/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,21 @@
|
|||
sensor:
|
||||
- platform: absolute_humidity
|
||||
name: Absolute Humidity
|
||||
temperature: template_temperature
|
||||
humidity: template_humidity
|
||||
- platform: template
|
||||
id: template_humidity
|
||||
lambda: |-
|
||||
if (millis() > 10000) {
|
||||
return 0.6;
|
||||
} else {
|
||||
return 0.0;
|
||||
}
|
||||
- platform: template
|
||||
id: template_temperature
|
||||
lambda: |-
|
||||
if (millis() > 10000) {
|
||||
return 42.0;
|
||||
} else {
|
||||
return 0.0;
|
||||
}
|
21
tests/components/absolute_humidity/test.esp32-idf.yaml
Normal file
21
tests/components/absolute_humidity/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,21 @@
|
|||
sensor:
|
||||
- platform: absolute_humidity
|
||||
name: Absolute Humidity
|
||||
temperature: template_temperature
|
||||
humidity: template_humidity
|
||||
- platform: template
|
||||
id: template_humidity
|
||||
lambda: |-
|
||||
if (millis() > 10000) {
|
||||
return 0.6;
|
||||
} else {
|
||||
return 0.0;
|
||||
}
|
||||
- platform: template
|
||||
id: template_temperature
|
||||
lambda: |-
|
||||
if (millis() > 10000) {
|
||||
return 42.0;
|
||||
} else {
|
||||
return 0.0;
|
||||
}
|
21
tests/components/absolute_humidity/test.esp32.yaml
Normal file
21
tests/components/absolute_humidity/test.esp32.yaml
Normal file
|
@ -0,0 +1,21 @@
|
|||
sensor:
|
||||
- platform: absolute_humidity
|
||||
name: Absolute Humidity
|
||||
temperature: template_temperature
|
||||
humidity: template_humidity
|
||||
- platform: template
|
||||
id: template_humidity
|
||||
lambda: |-
|
||||
if (millis() > 10000) {
|
||||
return 0.6;
|
||||
} else {
|
||||
return 0.0;
|
||||
}
|
||||
- platform: template
|
||||
id: template_temperature
|
||||
lambda: |-
|
||||
if (millis() > 10000) {
|
||||
return 42.0;
|
||||
} else {
|
||||
return 0.0;
|
||||
}
|
21
tests/components/absolute_humidity/test.esp8266.yaml
Normal file
21
tests/components/absolute_humidity/test.esp8266.yaml
Normal file
|
@ -0,0 +1,21 @@
|
|||
sensor:
|
||||
- platform: absolute_humidity
|
||||
name: Absolute Humidity
|
||||
temperature: template_temperature
|
||||
humidity: template_humidity
|
||||
- platform: template
|
||||
id: template_humidity
|
||||
lambda: |-
|
||||
if (millis() > 10000) {
|
||||
return 0.6;
|
||||
} else {
|
||||
return 0.0;
|
||||
}
|
||||
- platform: template
|
||||
id: template_temperature
|
||||
lambda: |-
|
||||
if (millis() > 10000) {
|
||||
return 42.0;
|
||||
} else {
|
||||
return 0.0;
|
||||
}
|
21
tests/components/absolute_humidity/test.rp2040.yaml
Normal file
21
tests/components/absolute_humidity/test.rp2040.yaml
Normal file
|
@ -0,0 +1,21 @@
|
|||
sensor:
|
||||
- platform: absolute_humidity
|
||||
name: Absolute Humidity
|
||||
temperature: template_temperature
|
||||
humidity: template_humidity
|
||||
- platform: template
|
||||
id: template_humidity
|
||||
lambda: |-
|
||||
if (millis() > 10000) {
|
||||
return 0.6;
|
||||
} else {
|
||||
return 0.0;
|
||||
}
|
||||
- platform: template
|
||||
id: template_temperature
|
||||
lambda: |-
|
||||
if (millis() > 10000) {
|
||||
return 42.0;
|
||||
} else {
|
||||
return 0.0;
|
||||
}
|
7
tests/components/ac_dimmer/test.esp32-c3.yaml
Normal file
7
tests/components/ac_dimmer/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,7 @@
|
|||
output:
|
||||
- platform: ac_dimmer
|
||||
id: ac_dimmer_1
|
||||
gate_pin:
|
||||
number: 5
|
||||
zero_cross_pin:
|
||||
number: 6
|
7
tests/components/ac_dimmer/test.esp32.yaml
Normal file
7
tests/components/ac_dimmer/test.esp32.yaml
Normal file
|
@ -0,0 +1,7 @@
|
|||
output:
|
||||
- platform: ac_dimmer
|
||||
id: ac_dimmer_1
|
||||
gate_pin:
|
||||
number: 12
|
||||
zero_cross_pin:
|
||||
number: 13
|
7
tests/components/ac_dimmer/test.esp8266.yaml
Normal file
7
tests/components/ac_dimmer/test.esp8266.yaml
Normal file
|
@ -0,0 +1,7 @@
|
|||
output:
|
||||
- platform: ac_dimmer
|
||||
id: ac_dimmer_1
|
||||
gate_pin:
|
||||
number: 5
|
||||
zero_cross_pin:
|
||||
number: 4
|
7
tests/components/ac_dimmer/test.rp2040.yaml
Normal file
7
tests/components/ac_dimmer/test.rp2040.yaml
Normal file
|
@ -0,0 +1,7 @@
|
|||
output:
|
||||
- platform: ac_dimmer
|
||||
id: ac_dimmer_1
|
||||
gate_pin:
|
||||
number: 5
|
||||
zero_cross_pin:
|
||||
number: 6
|
14
tests/components/adc128s102/test.esp32-c3-idf.yaml
Normal file
14
tests/components/adc128s102/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,14 @@
|
|||
spi:
|
||||
- id: spi_adc128s102
|
||||
clk_pin: 6
|
||||
mosi_pin: 7
|
||||
miso_pin: 5
|
||||
|
||||
adc128s102:
|
||||
cs_pin: 8
|
||||
id: adc128s102_adc
|
||||
|
||||
sensor:
|
||||
- platform: adc128s102
|
||||
id: adc128s102_channel_0
|
||||
channel: 0
|
14
tests/components/adc128s102/test.esp32-c3.yaml
Normal file
14
tests/components/adc128s102/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,14 @@
|
|||
spi:
|
||||
- id: spi_adc128s102
|
||||
clk_pin: 6
|
||||
mosi_pin: 7
|
||||
miso_pin: 5
|
||||
|
||||
adc128s102:
|
||||
cs_pin: 8
|
||||
id: adc128s102_adc
|
||||
|
||||
sensor:
|
||||
- platform: adc128s102
|
||||
id: adc128s102_channel_0
|
||||
channel: 0
|
14
tests/components/adc128s102/test.esp32-idf.yaml
Normal file
14
tests/components/adc128s102/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,14 @@
|
|||
spi:
|
||||
- id: spi_adc128s102
|
||||
clk_pin: 16
|
||||
mosi_pin: 17
|
||||
miso_pin: 15
|
||||
|
||||
adc128s102:
|
||||
cs_pin: 12
|
||||
id: adc128s102_adc
|
||||
|
||||
sensor:
|
||||
- platform: adc128s102
|
||||
id: adc128s102_channel_0
|
||||
channel: 0
|
14
tests/components/adc128s102/test.esp32.yaml
Normal file
14
tests/components/adc128s102/test.esp32.yaml
Normal file
|
@ -0,0 +1,14 @@
|
|||
spi:
|
||||
- id: spi_adc128s102
|
||||
clk_pin: 16
|
||||
mosi_pin: 17
|
||||
miso_pin: 15
|
||||
|
||||
adc128s102:
|
||||
cs_pin: 12
|
||||
id: adc128s102_adc
|
||||
|
||||
sensor:
|
||||
- platform: adc128s102
|
||||
id: adc128s102_channel_0
|
||||
channel: 0
|
14
tests/components/adc128s102/test.esp8266.yaml
Normal file
14
tests/components/adc128s102/test.esp8266.yaml
Normal file
|
@ -0,0 +1,14 @@
|
|||
spi:
|
||||
- id: spi_adc128s102
|
||||
clk_pin: 14
|
||||
mosi_pin: 13
|
||||
miso_pin: 12
|
||||
|
||||
adc128s102:
|
||||
cs_pin: 15
|
||||
id: adc128s102_adc
|
||||
|
||||
sensor:
|
||||
- platform: adc128s102
|
||||
id: adc128s102_channel_0
|
||||
channel: 0
|
14
tests/components/adc128s102/test.rp2040.yaml
Normal file
14
tests/components/adc128s102/test.rp2040.yaml
Normal file
|
@ -0,0 +1,14 @@
|
|||
spi:
|
||||
- id: spi_adc128s102
|
||||
clk_pin: 2
|
||||
mosi_pin: 3
|
||||
miso_pin: 4
|
||||
|
||||
adc128s102:
|
||||
cs_pin: 5
|
||||
id: adc128s102_adc
|
||||
|
||||
sensor:
|
||||
- platform: adc128s102
|
||||
id: adc128s102_channel_0
|
||||
channel: 0
|
31
tests/components/addressable_light/test.esp32-c3-idf.yaml
Normal file
31
tests/components/addressable_light/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,31 @@
|
|||
light:
|
||||
- platform: esp32_rmt_led_strip
|
||||
id: led_matrix_32x8
|
||||
default_transition_length: 500ms
|
||||
chipset: ws2812
|
||||
rgb_order: GRB
|
||||
num_leds: 256
|
||||
pin: 2
|
||||
rmt_channel: 0
|
||||
|
||||
display:
|
||||
- platform: addressable_light
|
||||
id: led_matrix_32x8_display
|
||||
addressable_light_id: led_matrix_32x8
|
||||
width: 32
|
||||
height: 8
|
||||
pixel_mapper: |-
|
||||
if (x % 2 == 0) {
|
||||
return (x * 8) + y;
|
||||
}
|
||||
return (x * 8) + (7 - y);
|
||||
lambda: |-
|
||||
Color red = Color(0xFF0000);
|
||||
Color green = Color(0x00FF00);
|
||||
Color blue = Color(0x0000FF);
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height(), red);
|
||||
it.rectangle(1, 1, it.get_width()-2, it.get_height()-2, green);
|
||||
it.rectangle(2, 2, it.get_width()-4, it.get_height()-4, blue);
|
||||
it.rectangle(3, 3, it.get_width()-6, it.get_height()-6, red);
|
||||
rotation: 0°
|
||||
update_interval: 16ms
|
31
tests/components/addressable_light/test.esp32-c3.yaml
Normal file
31
tests/components/addressable_light/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,31 @@
|
|||
light:
|
||||
- platform: esp32_rmt_led_strip
|
||||
id: led_matrix_32x8
|
||||
default_transition_length: 500ms
|
||||
chipset: ws2812
|
||||
rgb_order: GRB
|
||||
num_leds: 256
|
||||
pin: 2
|
||||
rmt_channel: 0
|
||||
|
||||
display:
|
||||
- platform: addressable_light
|
||||
id: led_matrix_32x8_display
|
||||
addressable_light_id: led_matrix_32x8
|
||||
width: 32
|
||||
height: 8
|
||||
pixel_mapper: |-
|
||||
if (x % 2 == 0) {
|
||||
return (x * 8) + y;
|
||||
}
|
||||
return (x * 8) + (7 - y);
|
||||
lambda: |-
|
||||
Color red = Color(0xFF0000);
|
||||
Color green = Color(0x00FF00);
|
||||
Color blue = Color(0x0000FF);
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height(), red);
|
||||
it.rectangle(1, 1, it.get_width()-2, it.get_height()-2, green);
|
||||
it.rectangle(2, 2, it.get_width()-4, it.get_height()-4, blue);
|
||||
it.rectangle(3, 3, it.get_width()-6, it.get_height()-6, red);
|
||||
rotation: 0°
|
||||
update_interval: 16ms
|
31
tests/components/addressable_light/test.esp32-idf.yaml
Normal file
31
tests/components/addressable_light/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,31 @@
|
|||
light:
|
||||
- platform: esp32_rmt_led_strip
|
||||
id: led_matrix_32x8
|
||||
default_transition_length: 500ms
|
||||
chipset: ws2812
|
||||
rgb_order: GRB
|
||||
num_leds: 256
|
||||
pin: 2
|
||||
rmt_channel: 0
|
||||
|
||||
display:
|
||||
- platform: addressable_light
|
||||
id: led_matrix_32x8_display
|
||||
addressable_light_id: led_matrix_32x8
|
||||
width: 32
|
||||
height: 8
|
||||
pixel_mapper: |-
|
||||
if (x % 2 == 0) {
|
||||
return (x * 8) + y;
|
||||
}
|
||||
return (x * 8) + (7 - y);
|
||||
lambda: |-
|
||||
Color red = Color(0xFF0000);
|
||||
Color green = Color(0x00FF00);
|
||||
Color blue = Color(0x0000FF);
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height(), red);
|
||||
it.rectangle(1, 1, it.get_width()-2, it.get_height()-2, green);
|
||||
it.rectangle(2, 2, it.get_width()-4, it.get_height()-4, blue);
|
||||
it.rectangle(3, 3, it.get_width()-6, it.get_height()-6, red);
|
||||
rotation: 0°
|
||||
update_interval: 16ms
|
32
tests/components/addressable_light/test.esp32.yaml
Normal file
32
tests/components/addressable_light/test.esp32.yaml
Normal file
|
@ -0,0 +1,32 @@
|
|||
light:
|
||||
- platform: fastled_clockless
|
||||
id: led_matrix_32x8
|
||||
name: led_matrix_32x8
|
||||
chipset: WS2812B
|
||||
pin: 2
|
||||
num_leds: 256
|
||||
rgb_order: GRB
|
||||
default_transition_length: 0s
|
||||
color_correct: [50%, 50%, 50%]
|
||||
|
||||
display:
|
||||
- platform: addressable_light
|
||||
id: led_matrix_32x8_display
|
||||
addressable_light_id: led_matrix_32x8
|
||||
width: 32
|
||||
height: 8
|
||||
pixel_mapper: |-
|
||||
if (x % 2 == 0) {
|
||||
return (x * 8) + y;
|
||||
}
|
||||
return (x * 8) + (7 - y);
|
||||
lambda: |-
|
||||
Color red = Color(0xFF0000);
|
||||
Color green = Color(0x00FF00);
|
||||
Color blue = Color(0x0000FF);
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height(), red);
|
||||
it.rectangle(1, 1, it.get_width()-2, it.get_height()-2, green);
|
||||
it.rectangle(2, 2, it.get_width()-4, it.get_height()-4, blue);
|
||||
it.rectangle(3, 3, it.get_width()-6, it.get_height()-6, red);
|
||||
rotation: 0°
|
||||
update_interval: 16ms
|
34
tests/components/ade7953_i2c/test.esp32-c3-idf.yaml
Normal file
34
tests/components/ade7953_i2c/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,34 @@
|
|||
i2c:
|
||||
- id: i2c_ade7953
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
sensor:
|
||||
- platform: ade7953_i2c
|
||||
irq_pin: 6
|
||||
voltage:
|
||||
name: ADE7953 Voltage
|
||||
id: ade7953_voltage
|
||||
current_a:
|
||||
name: ADE7953 Current A
|
||||
id: ade7953_current_a
|
||||
current_b:
|
||||
name: ADE7953 Current B
|
||||
id: ade7953_current_b
|
||||
power_factor_a:
|
||||
name: ADE7953 Power Factor A
|
||||
power_factor_b:
|
||||
name: ADE7953 Power Factor B
|
||||
apparent_power_a:
|
||||
name: ADE7953 Apparent Power A
|
||||
apparent_power_b:
|
||||
name: ADE7953 Apparent Power B
|
||||
active_power_a:
|
||||
name: ADE7953 Active Power A
|
||||
active_power_b:
|
||||
name: ADE7953 Active Power B
|
||||
reactive_power_a:
|
||||
name: ADE7953 Reactive Power A
|
||||
reactive_power_b:
|
||||
name: ADE7953 Reactive Power B
|
||||
update_interval: 1s
|
34
tests/components/ade7953_i2c/test.esp32-c3.yaml
Normal file
34
tests/components/ade7953_i2c/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,34 @@
|
|||
i2c:
|
||||
- id: i2c_ade7953
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
sensor:
|
||||
- platform: ade7953_i2c
|
||||
irq_pin: 6
|
||||
voltage:
|
||||
name: ADE7953 Voltage
|
||||
id: ade7953_voltage
|
||||
current_a:
|
||||
name: ADE7953 Current A
|
||||
id: ade7953_current_a
|
||||
current_b:
|
||||
name: ADE7953 Current B
|
||||
id: ade7953_current_b
|
||||
power_factor_a:
|
||||
name: ADE7953 Power Factor A
|
||||
power_factor_b:
|
||||
name: ADE7953 Power Factor B
|
||||
apparent_power_a:
|
||||
name: ADE7953 Apparent Power A
|
||||
apparent_power_b:
|
||||
name: ADE7953 Apparent Power B
|
||||
active_power_a:
|
||||
name: ADE7953 Active Power A
|
||||
active_power_b:
|
||||
name: ADE7953 Active Power B
|
||||
reactive_power_a:
|
||||
name: ADE7953 Reactive Power A
|
||||
reactive_power_b:
|
||||
name: ADE7953 Reactive Power B
|
||||
update_interval: 1s
|
34
tests/components/ade7953_i2c/test.esp32-idf.yaml
Normal file
34
tests/components/ade7953_i2c/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,34 @@
|
|||
i2c:
|
||||
- id: i2c_ade7953
|
||||
scl: 16
|
||||
sda: 17
|
||||
|
||||
sensor:
|
||||
- platform: ade7953_i2c
|
||||
irq_pin: 15
|
||||
voltage:
|
||||
name: ADE7953 Voltage
|
||||
id: ade7953_voltage
|
||||
current_a:
|
||||
name: ADE7953 Current A
|
||||
id: ade7953_current_a
|
||||
current_b:
|
||||
name: ADE7953 Current B
|
||||
id: ade7953_current_b
|
||||
power_factor_a:
|
||||
name: ADE7953 Power Factor A
|
||||
power_factor_b:
|
||||
name: ADE7953 Power Factor B
|
||||
apparent_power_a:
|
||||
name: ADE7953 Apparent Power A
|
||||
apparent_power_b:
|
||||
name: ADE7953 Apparent Power B
|
||||
active_power_a:
|
||||
name: ADE7953 Active Power A
|
||||
active_power_b:
|
||||
name: ADE7953 Active Power B
|
||||
reactive_power_a:
|
||||
name: ADE7953 Reactive Power A
|
||||
reactive_power_b:
|
||||
name: ADE7953 Reactive Power B
|
||||
update_interval: 1s
|
34
tests/components/ade7953_i2c/test.esp32.yaml
Normal file
34
tests/components/ade7953_i2c/test.esp32.yaml
Normal file
|
@ -0,0 +1,34 @@
|
|||
i2c:
|
||||
- id: i2c_ade7953
|
||||
scl: 16
|
||||
sda: 17
|
||||
|
||||
sensor:
|
||||
- platform: ade7953_i2c
|
||||
irq_pin: 15
|
||||
voltage:
|
||||
name: ADE7953 Voltage
|
||||
id: ade7953_voltage
|
||||
current_a:
|
||||
name: ADE7953 Current A
|
||||
id: ade7953_current_a
|
||||
current_b:
|
||||
name: ADE7953 Current B
|
||||
id: ade7953_current_b
|
||||
power_factor_a:
|
||||
name: ADE7953 Power Factor A
|
||||
power_factor_b:
|
||||
name: ADE7953 Power Factor B
|
||||
apparent_power_a:
|
||||
name: ADE7953 Apparent Power A
|
||||
apparent_power_b:
|
||||
name: ADE7953 Apparent Power B
|
||||
active_power_a:
|
||||
name: ADE7953 Active Power A
|
||||
active_power_b:
|
||||
name: ADE7953 Active Power B
|
||||
reactive_power_a:
|
||||
name: ADE7953 Reactive Power A
|
||||
reactive_power_b:
|
||||
name: ADE7953 Reactive Power B
|
||||
update_interval: 1s
|
34
tests/components/ade7953_i2c/test.esp8266.yaml
Normal file
34
tests/components/ade7953_i2c/test.esp8266.yaml
Normal file
|
@ -0,0 +1,34 @@
|
|||
i2c:
|
||||
- id: i2c_ade7953
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
sensor:
|
||||
- platform: ade7953_i2c
|
||||
irq_pin: 15
|
||||
voltage:
|
||||
name: ADE7953 Voltage
|
||||
id: ade7953_voltage
|
||||
current_a:
|
||||
name: ADE7953 Current A
|
||||
id: ade7953_current_a
|
||||
current_b:
|
||||
name: ADE7953 Current B
|
||||
id: ade7953_current_b
|
||||
power_factor_a:
|
||||
name: ADE7953 Power Factor A
|
||||
power_factor_b:
|
||||
name: ADE7953 Power Factor B
|
||||
apparent_power_a:
|
||||
name: ADE7953 Apparent Power A
|
||||
apparent_power_b:
|
||||
name: ADE7953 Apparent Power B
|
||||
active_power_a:
|
||||
name: ADE7953 Active Power A
|
||||
active_power_b:
|
||||
name: ADE7953 Active Power B
|
||||
reactive_power_a:
|
||||
name: ADE7953 Reactive Power A
|
||||
reactive_power_b:
|
||||
name: ADE7953 Reactive Power B
|
||||
update_interval: 1s
|
34
tests/components/ade7953_i2c/test.rp2040.yaml
Normal file
34
tests/components/ade7953_i2c/test.rp2040.yaml
Normal file
|
@ -0,0 +1,34 @@
|
|||
i2c:
|
||||
- id: i2c_ade7953
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
sensor:
|
||||
- platform: ade7953_i2c
|
||||
irq_pin: 6
|
||||
voltage:
|
||||
name: ADE7953 Voltage
|
||||
id: ade7953_voltage
|
||||
current_a:
|
||||
name: ADE7953 Current A
|
||||
id: ade7953_current_a
|
||||
current_b:
|
||||
name: ADE7953 Current B
|
||||
id: ade7953_current_b
|
||||
power_factor_a:
|
||||
name: ADE7953 Power Factor A
|
||||
power_factor_b:
|
||||
name: ADE7953 Power Factor B
|
||||
apparent_power_a:
|
||||
name: ADE7953 Apparent Power A
|
||||
apparent_power_b:
|
||||
name: ADE7953 Apparent Power B
|
||||
active_power_a:
|
||||
name: ADE7953 Active Power A
|
||||
active_power_b:
|
||||
name: ADE7953 Active Power B
|
||||
reactive_power_a:
|
||||
name: ADE7953 Reactive Power A
|
||||
reactive_power_b:
|
||||
name: ADE7953 Reactive Power B
|
||||
update_interval: 1s
|
36
tests/components/ade7953_spi/test.esp32-c3-idf.yaml
Normal file
36
tests/components/ade7953_spi/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,36 @@
|
|||
spi:
|
||||
- id: spi_ade7953
|
||||
clk_pin: 6
|
||||
mosi_pin: 7
|
||||
miso_pin: 5
|
||||
|
||||
sensor:
|
||||
- platform: ade7953_spi
|
||||
cs_pin: 8
|
||||
irq_pin: 9
|
||||
voltage:
|
||||
name: ADE7953 Voltage
|
||||
id: ade7953_voltage
|
||||
current_a:
|
||||
name: ADE7953 Current A
|
||||
id: ade7953_current_a
|
||||
current_b:
|
||||
name: ADE7953 Current B
|
||||
id: ade7953_current_b
|
||||
power_factor_a:
|
||||
name: ADE7953 Power Factor A
|
||||
power_factor_b:
|
||||
name: ADE7953 Power Factor B
|
||||
apparent_power_a:
|
||||
name: ADE7953 Apparent Power A
|
||||
apparent_power_b:
|
||||
name: ADE7953 Apparent Power B
|
||||
active_power_a:
|
||||
name: ADE7953 Active Power A
|
||||
active_power_b:
|
||||
name: ADE7953 Active Power B
|
||||
reactive_power_a:
|
||||
name: ADE7953 Reactive Power A
|
||||
reactive_power_b:
|
||||
name: ADE7953 Reactive Power B
|
||||
update_interval: 1s
|
36
tests/components/ade7953_spi/test.esp32-c3.yaml
Normal file
36
tests/components/ade7953_spi/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,36 @@
|
|||
spi:
|
||||
- id: spi_ade7953
|
||||
clk_pin: 6
|
||||
mosi_pin: 7
|
||||
miso_pin: 5
|
||||
|
||||
sensor:
|
||||
- platform: ade7953_spi
|
||||
cs_pin: 8
|
||||
irq_pin: 9
|
||||
voltage:
|
||||
name: ADE7953 Voltage
|
||||
id: ade7953_voltage
|
||||
current_a:
|
||||
name: ADE7953 Current A
|
||||
id: ade7953_current_a
|
||||
current_b:
|
||||
name: ADE7953 Current B
|
||||
id: ade7953_current_b
|
||||
power_factor_a:
|
||||
name: ADE7953 Power Factor A
|
||||
power_factor_b:
|
||||
name: ADE7953 Power Factor B
|
||||
apparent_power_a:
|
||||
name: ADE7953 Apparent Power A
|
||||
apparent_power_b:
|
||||
name: ADE7953 Apparent Power B
|
||||
active_power_a:
|
||||
name: ADE7953 Active Power A
|
||||
active_power_b:
|
||||
name: ADE7953 Active Power B
|
||||
reactive_power_a:
|
||||
name: ADE7953 Reactive Power A
|
||||
reactive_power_b:
|
||||
name: ADE7953 Reactive Power B
|
||||
update_interval: 1s
|
36
tests/components/ade7953_spi/test.esp32-idf.yaml
Normal file
36
tests/components/ade7953_spi/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,36 @@
|
|||
spi:
|
||||
- id: spi_ade7953
|
||||
clk_pin: 16
|
||||
mosi_pin: 17
|
||||
miso_pin: 15
|
||||
|
||||
sensor:
|
||||
- platform: ade7953_spi
|
||||
cs_pin: 5
|
||||
irq_pin: 13
|
||||
voltage:
|
||||
name: ADE7953 Voltage
|
||||
id: ade7953_voltage
|
||||
current_a:
|
||||
name: ADE7953 Current A
|
||||
id: ade7953_current_a
|
||||
current_b:
|
||||
name: ADE7953 Current B
|
||||
id: ade7953_current_b
|
||||
power_factor_a:
|
||||
name: ADE7953 Power Factor A
|
||||
power_factor_b:
|
||||
name: ADE7953 Power Factor B
|
||||
apparent_power_a:
|
||||
name: ADE7953 Apparent Power A
|
||||
apparent_power_b:
|
||||
name: ADE7953 Apparent Power B
|
||||
active_power_a:
|
||||
name: ADE7953 Active Power A
|
||||
active_power_b:
|
||||
name: ADE7953 Active Power B
|
||||
reactive_power_a:
|
||||
name: ADE7953 Reactive Power A
|
||||
reactive_power_b:
|
||||
name: ADE7953 Reactive Power B
|
||||
update_interval: 1s
|
36
tests/components/ade7953_spi/test.esp32.yaml
Normal file
36
tests/components/ade7953_spi/test.esp32.yaml
Normal file
|
@ -0,0 +1,36 @@
|
|||
spi:
|
||||
- id: spi_ade7953
|
||||
clk_pin: 16
|
||||
mosi_pin: 17
|
||||
miso_pin: 15
|
||||
|
||||
sensor:
|
||||
- platform: ade7953_spi
|
||||
cs_pin: 5
|
||||
irq_pin: 13
|
||||
voltage:
|
||||
name: ADE7953 Voltage
|
||||
id: ade7953_voltage
|
||||
current_a:
|
||||
name: ADE7953 Current A
|
||||
id: ade7953_current_a
|
||||
current_b:
|
||||
name: ADE7953 Current B
|
||||
id: ade7953_current_b
|
||||
power_factor_a:
|
||||
name: ADE7953 Power Factor A
|
||||
power_factor_b:
|
||||
name: ADE7953 Power Factor B
|
||||
apparent_power_a:
|
||||
name: ADE7953 Apparent Power A
|
||||
apparent_power_b:
|
||||
name: ADE7953 Apparent Power B
|
||||
active_power_a:
|
||||
name: ADE7953 Active Power A
|
||||
active_power_b:
|
||||
name: ADE7953 Active Power B
|
||||
reactive_power_a:
|
||||
name: ADE7953 Reactive Power A
|
||||
reactive_power_b:
|
||||
name: ADE7953 Reactive Power B
|
||||
update_interval: 1s
|
36
tests/components/ade7953_spi/test.esp8266.yaml
Normal file
36
tests/components/ade7953_spi/test.esp8266.yaml
Normal file
|
@ -0,0 +1,36 @@
|
|||
spi:
|
||||
- id: spi_ade7953
|
||||
clk_pin: 14
|
||||
mosi_pin: 13
|
||||
miso_pin: 12
|
||||
|
||||
sensor:
|
||||
- platform: ade7953_spi
|
||||
cs_pin: 15
|
||||
irq_pin: 5
|
||||
voltage:
|
||||
name: ADE7953 Voltage
|
||||
id: ade7953_voltage
|
||||
current_a:
|
||||
name: ADE7953 Current A
|
||||
id: ade7953_current_a
|
||||
current_b:
|
||||
name: ADE7953 Current B
|
||||
id: ade7953_current_b
|
||||
power_factor_a:
|
||||
name: ADE7953 Power Factor A
|
||||
power_factor_b:
|
||||
name: ADE7953 Power Factor B
|
||||
apparent_power_a:
|
||||
name: ADE7953 Apparent Power A
|
||||
apparent_power_b:
|
||||
name: ADE7953 Apparent Power B
|
||||
active_power_a:
|
||||
name: ADE7953 Active Power A
|
||||
active_power_b:
|
||||
name: ADE7953 Active Power B
|
||||
reactive_power_a:
|
||||
name: ADE7953 Reactive Power A
|
||||
reactive_power_b:
|
||||
name: ADE7953 Reactive Power B
|
||||
update_interval: 1s
|
36
tests/components/ade7953_spi/test.rp2040.yaml
Normal file
36
tests/components/ade7953_spi/test.rp2040.yaml
Normal file
|
@ -0,0 +1,36 @@
|
|||
spi:
|
||||
- id: spi_ade7953
|
||||
clk_pin: 2
|
||||
mosi_pin: 3
|
||||
miso_pin: 4
|
||||
|
||||
sensor:
|
||||
- platform: ade7953_spi
|
||||
cs_pin: 5
|
||||
irq_pin: 6
|
||||
voltage:
|
||||
name: ADE7953 Voltage
|
||||
id: ade7953_voltage
|
||||
current_a:
|
||||
name: ADE7953 Current A
|
||||
id: ade7953_current_a
|
||||
current_b:
|
||||
name: ADE7953 Current B
|
||||
id: ade7953_current_b
|
||||
power_factor_a:
|
||||
name: ADE7953 Power Factor A
|
||||
power_factor_b:
|
||||
name: ADE7953 Power Factor B
|
||||
apparent_power_a:
|
||||
name: ADE7953 Apparent Power A
|
||||
apparent_power_b:
|
||||
name: ADE7953 Apparent Power B
|
||||
active_power_a:
|
||||
name: ADE7953 Active Power A
|
||||
active_power_b:
|
||||
name: ADE7953 Active Power B
|
||||
reactive_power_a:
|
||||
name: ADE7953 Reactive Power A
|
||||
reactive_power_b:
|
||||
name: ADE7953 Reactive Power B
|
||||
update_interval: 1s
|
13
tests/components/ads1115/test.esp32-c3-idf.yaml
Normal file
13
tests/components/ads1115/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,13 @@
|
|||
i2c:
|
||||
- id: i2c_ads1115
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
ads1115:
|
||||
address: 0x48
|
||||
|
||||
sensor:
|
||||
- platform: ads1115
|
||||
multiplexer: A0_A1
|
||||
gain: 1.024
|
||||
id: ads1115_sensor
|
13
tests/components/ads1115/test.esp32-c3.yaml
Normal file
13
tests/components/ads1115/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,13 @@
|
|||
i2c:
|
||||
- id: i2c_ads1115
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
ads1115:
|
||||
address: 0x48
|
||||
|
||||
sensor:
|
||||
- platform: ads1115
|
||||
multiplexer: A0_A1
|
||||
gain: 1.024
|
||||
id: ads1115_sensor
|
13
tests/components/ads1115/test.esp32-idf.yaml
Normal file
13
tests/components/ads1115/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,13 @@
|
|||
i2c:
|
||||
- id: i2c_ads1115
|
||||
scl: 16
|
||||
sda: 17
|
||||
|
||||
ads1115:
|
||||
address: 0x48
|
||||
|
||||
sensor:
|
||||
- platform: ads1115
|
||||
multiplexer: A0_A1
|
||||
gain: 1.024
|
||||
id: ads1115_sensor
|
13
tests/components/ads1115/test.esp32.yaml
Normal file
13
tests/components/ads1115/test.esp32.yaml
Normal file
|
@ -0,0 +1,13 @@
|
|||
i2c:
|
||||
- id: i2c_ads1115
|
||||
scl: 16
|
||||
sda: 17
|
||||
|
||||
ads1115:
|
||||
address: 0x48
|
||||
|
||||
sensor:
|
||||
- platform: ads1115
|
||||
multiplexer: A0_A1
|
||||
gain: 1.024
|
||||
id: ads1115_sensor
|
13
tests/components/ads1115/test.esp8266.yaml
Normal file
13
tests/components/ads1115/test.esp8266.yaml
Normal file
|
@ -0,0 +1,13 @@
|
|||
i2c:
|
||||
- id: i2c_ads1115
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
ads1115:
|
||||
address: 0x48
|
||||
|
||||
sensor:
|
||||
- platform: ads1115
|
||||
multiplexer: A0_A1
|
||||
gain: 1.024
|
||||
id: ads1115_sensor
|
13
tests/components/ads1115/test.rp2040.yaml
Normal file
13
tests/components/ads1115/test.rp2040.yaml
Normal file
|
@ -0,0 +1,13 @@
|
|||
i2c:
|
||||
- id: i2c_ads1115
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
ads1115:
|
||||
address: 0x48
|
||||
|
||||
sensor:
|
||||
- platform: ads1115
|
||||
multiplexer: A0_A1
|
||||
gain: 1.024
|
||||
id: ads1115_sensor
|
11
tests/components/aht10/test.esp32-c3-idf.yaml
Normal file
11
tests/components/aht10/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,11 @@
|
|||
i2c:
|
||||
- id: i2c_aht10
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
sensor:
|
||||
- platform: aht10
|
||||
temperature:
|
||||
name: Temperature
|
||||
humidity:
|
||||
name: Humidity
|
11
tests/components/aht10/test.esp32-c3.yaml
Normal file
11
tests/components/aht10/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,11 @@
|
|||
i2c:
|
||||
- id: i2c_aht10
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
sensor:
|
||||
- platform: aht10
|
||||
temperature:
|
||||
name: Temperature
|
||||
humidity:
|
||||
name: Humidity
|
11
tests/components/aht10/test.esp32-idf.yaml
Normal file
11
tests/components/aht10/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,11 @@
|
|||
i2c:
|
||||
- id: i2c_aht10
|
||||
scl: 16
|
||||
sda: 17
|
||||
|
||||
sensor:
|
||||
- platform: aht10
|
||||
temperature:
|
||||
name: Temperature
|
||||
humidity:
|
||||
name: Humidity
|
11
tests/components/aht10/test.esp32.yaml
Normal file
11
tests/components/aht10/test.esp32.yaml
Normal file
|
@ -0,0 +1,11 @@
|
|||
i2c:
|
||||
- id: i2c_aht10
|
||||
scl: 16
|
||||
sda: 17
|
||||
|
||||
sensor:
|
||||
- platform: aht10
|
||||
temperature:
|
||||
name: Temperature
|
||||
humidity:
|
||||
name: Humidity
|
11
tests/components/aht10/test.esp8266.yaml
Normal file
11
tests/components/aht10/test.esp8266.yaml
Normal file
|
@ -0,0 +1,11 @@
|
|||
i2c:
|
||||
- id: i2c_aht10
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
sensor:
|
||||
- platform: aht10
|
||||
temperature:
|
||||
name: Temperature
|
||||
humidity:
|
||||
name: Humidity
|
11
tests/components/aht10/test.rp2040.yaml
Normal file
11
tests/components/aht10/test.rp2040.yaml
Normal file
|
@ -0,0 +1,11 @@
|
|||
i2c:
|
||||
- id: i2c_aht10
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
sensor:
|
||||
- platform: aht10
|
||||
temperature:
|
||||
name: Temperature
|
||||
humidity:
|
||||
name: Humidity
|
22
tests/components/airthings_wave_mini/test.esp32-c3-idf.yaml
Normal file
22
tests/components/airthings_wave_mini/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,22 @@
|
|||
esp32_ble_tracker:
|
||||
|
||||
ble_client:
|
||||
- mac_address: 01:02:03:04:05:06
|
||||
id: airthingsmini01
|
||||
|
||||
sensor:
|
||||
- id: airthingswm
|
||||
platform: airthings_wave_mini
|
||||
ble_client_id: airthingsmini01
|
||||
update_interval: 5min
|
||||
battery_update_interval: 12h
|
||||
temperature:
|
||||
name: Wave Mini Temperature
|
||||
humidity:
|
||||
name: Wave Mini Humidity
|
||||
pressure:
|
||||
name: Wave Mini Pressure
|
||||
tvoc:
|
||||
name: Wave Mini VOC
|
||||
battery_voltage:
|
||||
name: Wave Mini Battery Voltage
|
22
tests/components/airthings_wave_mini/test.esp32-c3.yaml
Normal file
22
tests/components/airthings_wave_mini/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,22 @@
|
|||
esp32_ble_tracker:
|
||||
|
||||
ble_client:
|
||||
- mac_address: 01:02:03:04:05:06
|
||||
id: airthingsmini01
|
||||
|
||||
sensor:
|
||||
- id: airthingswm
|
||||
platform: airthings_wave_mini
|
||||
ble_client_id: airthingsmini01
|
||||
update_interval: 5min
|
||||
battery_update_interval: 12h
|
||||
temperature:
|
||||
name: Wave Mini Temperature
|
||||
humidity:
|
||||
name: Wave Mini Humidity
|
||||
pressure:
|
||||
name: Wave Mini Pressure
|
||||
tvoc:
|
||||
name: Wave Mini VOC
|
||||
battery_voltage:
|
||||
name: Wave Mini Battery Voltage
|
22
tests/components/airthings_wave_mini/test.esp32-idf.yaml
Normal file
22
tests/components/airthings_wave_mini/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,22 @@
|
|||
esp32_ble_tracker:
|
||||
|
||||
ble_client:
|
||||
- mac_address: 01:02:03:04:05:06
|
||||
id: airthingsmini01
|
||||
|
||||
sensor:
|
||||
- id: airthingswm
|
||||
platform: airthings_wave_mini
|
||||
ble_client_id: airthingsmini01
|
||||
update_interval: 5min
|
||||
battery_update_interval: 12h
|
||||
temperature:
|
||||
name: Wave Mini Temperature
|
||||
humidity:
|
||||
name: Wave Mini Humidity
|
||||
pressure:
|
||||
name: Wave Mini Pressure
|
||||
tvoc:
|
||||
name: Wave Mini VOC
|
||||
battery_voltage:
|
||||
name: Wave Mini Battery Voltage
|
22
tests/components/airthings_wave_mini/test.esp32.yaml
Normal file
22
tests/components/airthings_wave_mini/test.esp32.yaml
Normal file
|
@ -0,0 +1,22 @@
|
|||
esp32_ble_tracker:
|
||||
|
||||
ble_client:
|
||||
- mac_address: 01:02:03:04:05:06
|
||||
id: airthingsmini01
|
||||
|
||||
sensor:
|
||||
- id: airthingswm
|
||||
platform: airthings_wave_mini
|
||||
ble_client_id: airthingsmini01
|
||||
update_interval: 5min
|
||||
battery_update_interval: 12h
|
||||
temperature:
|
||||
name: Wave Mini Temperature
|
||||
humidity:
|
||||
name: Wave Mini Humidity
|
||||
pressure:
|
||||
name: Wave Mini Pressure
|
||||
tvoc:
|
||||
name: Wave Mini VOC
|
||||
battery_voltage:
|
||||
name: Wave Mini Battery Voltage
|
28
tests/components/airthings_wave_plus/test.esp32-c3-idf.yaml
Normal file
28
tests/components/airthings_wave_plus/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,28 @@
|
|||
esp32_ble_tracker:
|
||||
|
||||
ble_client:
|
||||
- mac_address: 01:02:03:04:05:06
|
||||
id: airthings01
|
||||
|
||||
sensor:
|
||||
- id: airthingswp
|
||||
platform: airthings_wave_plus
|
||||
ble_client_id: airthings01
|
||||
update_interval: 5min
|
||||
battery_update_interval: 12h
|
||||
temperature:
|
||||
name: Wave Plus Temperature
|
||||
radon:
|
||||
name: Wave Plus Radon
|
||||
radon_long_term:
|
||||
name: Wave Plus Radon Long Term
|
||||
pressure:
|
||||
name: Wave Plus Pressure
|
||||
humidity:
|
||||
name: Wave Plus Humidity
|
||||
co2:
|
||||
name: Wave Plus CO2
|
||||
tvoc:
|
||||
name: Wave Plus VOC
|
||||
battery_voltage:
|
||||
name: Wave Plus Battery Voltage
|
28
tests/components/airthings_wave_plus/test.esp32-c3.yaml
Normal file
28
tests/components/airthings_wave_plus/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,28 @@
|
|||
esp32_ble_tracker:
|
||||
|
||||
ble_client:
|
||||
- mac_address: 01:02:03:04:05:06
|
||||
id: airthings01
|
||||
|
||||
sensor:
|
||||
- id: airthingswp
|
||||
platform: airthings_wave_plus
|
||||
ble_client_id: airthings01
|
||||
update_interval: 5min
|
||||
battery_update_interval: 12h
|
||||
temperature:
|
||||
name: Wave Plus Temperature
|
||||
radon:
|
||||
name: Wave Plus Radon
|
||||
radon_long_term:
|
||||
name: Wave Plus Radon Long Term
|
||||
pressure:
|
||||
name: Wave Plus Pressure
|
||||
humidity:
|
||||
name: Wave Plus Humidity
|
||||
co2:
|
||||
name: Wave Plus CO2
|
||||
tvoc:
|
||||
name: Wave Plus VOC
|
||||
battery_voltage:
|
||||
name: Wave Plus Battery Voltage
|
28
tests/components/airthings_wave_plus/test.esp32-idf.yaml
Normal file
28
tests/components/airthings_wave_plus/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,28 @@
|
|||
esp32_ble_tracker:
|
||||
|
||||
ble_client:
|
||||
- mac_address: 01:02:03:04:05:06
|
||||
id: airthings01
|
||||
|
||||
sensor:
|
||||
- id: airthingswp
|
||||
platform: airthings_wave_plus
|
||||
ble_client_id: airthings01
|
||||
update_interval: 5min
|
||||
battery_update_interval: 12h
|
||||
temperature:
|
||||
name: Wave Plus Temperature
|
||||
radon:
|
||||
name: Wave Plus Radon
|
||||
radon_long_term:
|
||||
name: Wave Plus Radon Long Term
|
||||
pressure:
|
||||
name: Wave Plus Pressure
|
||||
humidity:
|
||||
name: Wave Plus Humidity
|
||||
co2:
|
||||
name: Wave Plus CO2
|
||||
tvoc:
|
||||
name: Wave Plus VOC
|
||||
battery_voltage:
|
||||
name: Wave Plus Battery Voltage
|
28
tests/components/airthings_wave_plus/test.esp32.yaml
Normal file
28
tests/components/airthings_wave_plus/test.esp32.yaml
Normal file
|
@ -0,0 +1,28 @@
|
|||
esp32_ble_tracker:
|
||||
|
||||
ble_client:
|
||||
- mac_address: 01:02:03:04:05:06
|
||||
id: airthings01
|
||||
|
||||
sensor:
|
||||
- id: airthingswp
|
||||
platform: airthings_wave_plus
|
||||
ble_client_id: airthings01
|
||||
update_interval: 5min
|
||||
battery_update_interval: 12h
|
||||
temperature:
|
||||
name: Wave Plus Temperature
|
||||
radon:
|
||||
name: Wave Plus Radon
|
||||
radon_long_term:
|
||||
name: Wave Plus Radon Long Term
|
||||
pressure:
|
||||
name: Wave Plus Pressure
|
||||
humidity:
|
||||
name: Wave Plus Humidity
|
||||
co2:
|
||||
name: Wave Plus CO2
|
||||
tvoc:
|
||||
name: Wave Plus VOC
|
||||
battery_voltage:
|
||||
name: Wave Plus Battery Voltage
|
Loading…
Reference in a new issue