Created
October 12, 2021 18:26
-
-
Save dmslabsbr/113ab653a21cb61b5a6e829a5be2e3cc to your computer and use it in GitHub Desktop.
ESPHome - Sherlock - Hass.io
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
esphome: | |
name: sherlockw2 | |
platform: ESP8266 | |
board: d1_mini | |
comment: versao 2 - 09/abr/2020 | |
wifi: | |
ssid: !secret wifi_ssid | |
password: !secret wifi_pass | |
use_address: 192.168.50.249 | |
# Enable logging | |
logger: | |
# Enable Home Assistant API | |
api: | |
password: !secret api_pass | |
ota: | |
password: !secret ota_pass | |
web_server: | |
port: 80 | |
switch: | |
################# | |
# home door | |
################# | |
- platform: gpio | |
pin: | |
number: D3 | |
inverted: yes | |
id: relay | |
- platform: template | |
name: "porta_fechar" | |
icon: "mdi:door-closed-lock" | |
turn_on_action: | |
- switch.turn_on: relay | |
- delay: 700ms | |
- switch.turn_off: relay | |
- platform: template | |
name: "porta_abrir" | |
icon: "mdi:door-open" | |
turn_on_action: | |
- switch.turn_on: relay | |
- delay: 700ms | |
- switch.turn_off: relay | |
- delay: 200ms | |
- switch.turn_on: relay | |
- delay: 700ms | |
- switch.turn_off: relay | |
################# | |
# RESTART | |
################# | |
- platform: restart | |
name: "shLock Restart" | |
id: shLock_led | |
# LED | |
- platform: gpio | |
pin: D7 | |
id: green_pin | |
name: "Led Verde" | |
icon: mdi:lightbulb | |
restore_mode: ALWAYS_ON | |
sensor: | |
- platform: wifi_signal | |
name: "shLock WiFi" | |
id: shLock_wifi | |
icon: mdi:bluetooth | |
update_interval: 60s | |
- platform: uptime | |
name: "shLock Uptime" | |
icon: mdi:bluetooth | |
- platform: dht | |
model: DHT11 | |
pin: | |
number: D5 | |
mode: INPUT | |
temperature: | |
name: "shLock Temperatura" | |
id: shLock_temp | |
icon: mdi:temperature-celsius | |
humidity: | |
name: "shLock Humidade" | |
id: shLock_Humid | |
icon: mdi:water-percent | |
update_interval: 60s | |
text_sensor: | |
- platform: version | |
name: "shLock esp version" | |
binary_sensor: | |
- platform: status | |
name: "shLock esp status" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment