Add piano-primo
This commit is contained in:
55
piano-primo
Normal file
55
piano-primo
Normal file
@@ -0,0 +1,55 @@
|
|||||||
|
esphome:
|
||||||
|
name: stanza-leo-dht22
|
||||||
|
friendly_name: Stanza Leo DHT22
|
||||||
|
|
||||||
|
esp32:
|
||||||
|
board: esp32dev
|
||||||
|
framework:
|
||||||
|
type: arduino
|
||||||
|
|
||||||
|
# Enable logging
|
||||||
|
logger:
|
||||||
|
|
||||||
|
# Enable Home Assistant API
|
||||||
|
api:
|
||||||
|
encryption:
|
||||||
|
key: "xxxxxxxxxxxxxxxxx"
|
||||||
|
|
||||||
|
ota:
|
||||||
|
- platform: esphome
|
||||||
|
password: "xxxxxxxxxxxxxxxxx"
|
||||||
|
|
||||||
|
wifi:
|
||||||
|
ssid: !secret wifi_ssid
|
||||||
|
password: !secret wifi_password
|
||||||
|
|
||||||
|
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
||||||
|
ap:
|
||||||
|
ssid: "Stanza-Leo-Dht22"
|
||||||
|
password: "qzrrqqAfOp35"
|
||||||
|
|
||||||
|
captive_portal:
|
||||||
|
|
||||||
|
button:
|
||||||
|
- platform: restart
|
||||||
|
name: "Riavvio sensori stanza Leo"
|
||||||
|
|
||||||
|
switch:
|
||||||
|
- platform: gpio
|
||||||
|
pin: 19
|
||||||
|
name: "LED 1"
|
||||||
|
icon: "mdi:led-on"
|
||||||
|
- platform: gpio
|
||||||
|
pin: 21
|
||||||
|
name: "LED 2"
|
||||||
|
icon: "mdi:led-on"
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: dht
|
||||||
|
model: DHT22
|
||||||
|
pin: 32
|
||||||
|
temperature:
|
||||||
|
name: "Temperatura camera Leo"
|
||||||
|
humidity:
|
||||||
|
name: "Umidità camera Leo"
|
||||||
|
update_interval: 15s
|
||||||
Reference in New Issue
Block a user