forked from esphome/esphome
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add some components to the new testing framework (A part 1) (esphome#…
- Loading branch information
Showing
70 changed files
with
1,355 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
output: | ||
- platform: ac_dimmer | ||
id: ac_dimmer_1 | ||
gate_pin: | ||
number: 5 | ||
zero_cross_pin: | ||
number: 6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
output: | ||
- platform: ac_dimmer | ||
id: ac_dimmer_1 | ||
gate_pin: | ||
number: 12 | ||
zero_cross_pin: | ||
number: 13 |
Oops, something went wrong.