06-06-2024, 05:58 AM
Code:
esphome:
name: am
esp32:
board: esp32dev
framework:
type: arduino
# Enable logging
logger:
# Example configuration entry
api:
ethernet:
type: LAN8720
mdc_pin: GPIO23
mdio_pin: GPIO18
clk_mode: GPIO17_OUT
phy_addr: 0
manual_ip:
static_ip: 192.168.1.211
gateway: 192.168.1.1
subnet: 255.255.255.0
switch:
- platform: gpio
name: "am-light1"
pin: 15
inverted: False
sensor:
- platform: dht
pin: 33
temperature:
name: "Living Room Temperature"
humidity:
name: "Living Room Humidity"
update_interval: 10s
- platform: dallas
dallas_id: hub_1
address: 0xde0b23585c42fb28
name: "Temperature #1"
- platform: dallas
dallas_id: hub_1
address: 0xd20b2210b8edbd28
name: "Temperature #2"
- platform: dallas
dallas_id: hub_3
address: 0x690b2210c2ff4a28
name: "Temperature #3"
- platform: dallas
dallas_id: hub_2
address: 0x3f0b2210c07d1b28
name: "Temperature #4"
dallas:
- pin: 5
id: hub_1
update_interval: 10s
- pin: 13
id: hub_2
update_interval: 20s
- pin: 14
id: hub_3
update_interval: 30s
yaml file download:
esphome_AM.txt (Size: 1.13 KB / Downloads: 76)