-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathgenerator.yaml
88 lines (67 loc) · 1.55 KB
/
generator.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
substitutions:
name: generator-rs232-bridge
display_name: Generator RS232 Bridge
esphome:
name: $name
esp32:
board: esp32dev
framework:
type: arduino
# Enable logging
logger:
# disable UART (serial) logging
baud_rate: 0
# Enable Home Assistant API
api:
ota:
password: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "$name"
password: !secret wifi_hotspot_password
captive_portal:
web_server:
port: 80
include_internal: true
external_components:
- source: github://oxan/esphome-stream-server
uart:
id: uart_bus
baud_rate: 9600
tx_pin: GPIO1
#rx_pin: GPIO3 -- should be fine also
rx_pin: GPIO22
debug:
direction: BOTH
after:
timeout: 100ms
sequence:
- lambda: UARTDebug::log_hex(direction, bytes, ' ');
stream_server:
uart_id: uart_bus
port: 6638
status_led:
pin: GPIO2
dallas:
- pin: 4 # GPIO4 (pin 24)
update_interval: 30s
sensor:
# see https://esphome.io/components/sensor/dallas.html#getting-sensor-ids to find IDs
- platform: dallas
address: 0x65000006a8115937
name: "Generator Ambient Temperature"
- platform: dallas
address: 0x080000056e145237
name: "Generator Engine Temperature"
- platform: wifi_signal
name: "$name WiFi Signal Sensor"
update_interval: 60s
text_sensor:
- platform: wifi_info
ip_address:
name: "$name IP Address"
- platform: version
name: "$name ESPHome Version"