-
Notifications
You must be signed in to change notification settings - Fork 1
/
rika_revo.yaml
executable file
·58 lines (49 loc) · 1.06 KB
/
rika_revo.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
esphome:
name: rika-stove
esp32:
board: esp32dev
framework:
type: esp-idf
external_components:
- source: components
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
logger:
level: VERBOSE #makes uart stream available in esphome logstream
baud_rate: 0 #disable logging over uart
uart:
id: rika_uart_bus
tx_pin: GPIO16
rx_pin: GPIO17
baud_rate: 38400
rika_gsm:
id: ria_gsm_component_1
pin: "1234"
# phone_number: "+33685967412"
text_sensor:
- platform: rika_gsm
raw_status:
name: "Stove raw status"
binary_sensor:
- platform: rika_gsm
gsm_status:
name: "GSM status"
api:
encryption:
key: !secret api_encryption_key
services:
- service: turn_on
then:
- rika_gsm.send_command:
command: "ON"
- service: turn_off
then:
- rika_gsm.send_command:
command: "OFF"
- service: send_command
variables:
command: string
then:
- rika_gsm.send_command:
command: !lambda 'return command;'