05-12-2023, 11:57 AM
(05-12-2023, 10:53 AM)admin Wrote: because in China have stopped use 2G, unless i can test it for you.
Can you see my yaml config? Is it correct?:
esphome:
name: b8gsm
platform: ESP32
board: esp32dev
ota:
logger:
api:
ethernet:
type: LAN8720
mdc_pin: GPIO23
mdio_pin: GPIO18
clk_mode: GPIO17_OUT
phy_addr: 0
uart:
baud_rate: 9600
tx_pin: GPIO15
rx_pin: GPIO13
sim800l:
on_sms_received:
- logger.log:
format: "Received '%s' from %s"
args: [ 'message.c_str()', 'sender.c_str()' ]
sensor:
- platform: sim800l
rssi:
name: "Sim800L RSSI"
text_sensor:
- platform: template
id: sms_sender
name: "Sms Sender"
- platform: template
id: sms_message
name: "Sms Message"
switch:
- platform: template
name: "sms water level error"
turn_on_action:
- sim800l.send_sms:
recipient: '+79260090270'
message: "water level error!"
- platform: template
name: "call water level error"
turn_on_action:
- sim800l.dial:
recipient: '+79260090270'
binary_sensor:
- platform: sim800l
registered:
name: "Sim800L Registered"