1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-02 03:12:20 +01:00

Add some components to the new testing framework (S part 1) (#6224)

Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
Keith Burzinski
2024-04-23 04:49:15 -05:00
committed by GitHub
parent ed381b45eb
commit 7e8ed5c391
181 changed files with 3589 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
esphome:
on_boot:
then:
- sim800l.send_sms:
recipient: '+15551234567'
message: Hello there
- sim800l.dial:
recipient: '+15551234567'
- sim800l.connect
- sim800l.disconnect
- sim800l.send_ussd:
ussd: test_ussd
uart:
- id: uart_sim800l
tx_pin: 4
rx_pin: 5
baud_rate: 9600
sim800l:
on_sms_received:
- lambda: |-
std::string str;
str = sender;
str = message;
- sim800l.send_sms:
message: hello you
recipient: "+1234"
- sim800l.dial:
recipient: "+1234"
on_incoming_call:
- logger.log:
format: "Incoming call from '%s'"
args: ["caller_id.c_str()"]
- sim800l.disconnect
on_ussd_received:
- logger.log: "ussd_received"

View File

@@ -0,0 +1,37 @@
esphome:
on_boot:
then:
- sim800l.send_sms:
recipient: '+15551234567'
message: Hello there
- sim800l.dial:
recipient: '+15551234567'
- sim800l.connect
- sim800l.disconnect
- sim800l.send_ussd:
ussd: test_ussd
uart:
- id: uart_sim800l
tx_pin: 4
rx_pin: 5
baud_rate: 9600
sim800l:
on_sms_received:
- lambda: |-
std::string str;
str = sender;
str = message;
- sim800l.send_sms:
message: hello you
recipient: "+1234"
- sim800l.dial:
recipient: "+1234"
on_incoming_call:
- logger.log:
format: "Incoming call from '%s'"
args: ["caller_id.c_str()"]
- sim800l.disconnect
on_ussd_received:
- logger.log: "ussd_received"

View File

@@ -0,0 +1,37 @@
esphome:
on_boot:
then:
- sim800l.send_sms:
recipient: '+15551234567'
message: Hello there
- sim800l.dial:
recipient: '+15551234567'
- sim800l.connect
- sim800l.disconnect
- sim800l.send_ussd:
ussd: test_ussd
uart:
- id: uart_sim800l
tx_pin: 17
rx_pin: 16
baud_rate: 9600
sim800l:
on_sms_received:
- lambda: |-
std::string str;
str = sender;
str = message;
- sim800l.send_sms:
message: hello you
recipient: "+1234"
- sim800l.dial:
recipient: "+1234"
on_incoming_call:
- logger.log:
format: "Incoming call from '%s'"
args: ["caller_id.c_str()"]
- sim800l.disconnect
on_ussd_received:
- logger.log: "ussd_received"

View File

@@ -0,0 +1,37 @@
esphome:
on_boot:
then:
- sim800l.send_sms:
recipient: '+15551234567'
message: Hello there
- sim800l.dial:
recipient: '+15551234567'
- sim800l.connect
- sim800l.disconnect
- sim800l.send_ussd:
ussd: test_ussd
uart:
- id: uart_sim800l
tx_pin: 17
rx_pin: 16
baud_rate: 9600
sim800l:
on_sms_received:
- lambda: |-
std::string str;
str = sender;
str = message;
- sim800l.send_sms:
message: hello you
recipient: "+1234"
- sim800l.dial:
recipient: "+1234"
on_incoming_call:
- logger.log:
format: "Incoming call from '%s'"
args: ["caller_id.c_str()"]
- sim800l.disconnect
on_ussd_received:
- logger.log: "ussd_received"

View File

@@ -0,0 +1,37 @@
esphome:
on_boot:
then:
- sim800l.send_sms:
recipient: '+15551234567'
message: Hello there
- sim800l.dial:
recipient: '+15551234567'
- sim800l.connect
- sim800l.disconnect
- sim800l.send_ussd:
ussd: test_ussd
uart:
- id: uart_sim800l
tx_pin: 4
rx_pin: 5
baud_rate: 9600
sim800l:
on_sms_received:
- lambda: |-
std::string str;
str = sender;
str = message;
- sim800l.send_sms:
message: hello you
recipient: "+1234"
- sim800l.dial:
recipient: "+1234"
on_incoming_call:
- logger.log:
format: "Incoming call from '%s'"
args: ["caller_id.c_str()"]
- sim800l.disconnect
on_ussd_received:
- logger.log: "ussd_received"

View File

@@ -0,0 +1,37 @@
esphome:
on_boot:
then:
- sim800l.send_sms:
recipient: '+15551234567'
message: Hello there
- sim800l.dial:
recipient: '+15551234567'
- sim800l.connect
- sim800l.disconnect
- sim800l.send_ussd:
ussd: test_ussd
uart:
- id: uart_sim800l
tx_pin: 4
rx_pin: 5
baud_rate: 9600
sim800l:
on_sms_received:
- lambda: |-
std::string str;
str = sender;
str = message;
- sim800l.send_sms:
message: hello you
recipient: "+1234"
- sim800l.dial:
recipient: "+1234"
on_incoming_call:
- logger.log:
format: "Incoming call from '%s'"
args: ["caller_id.c_str()"]
- sim800l.disconnect
on_ussd_received:
- logger.log: "ussd_received"