Ver código fonte

initial commit

Radu Boncea 1 ano atrás
commit
be7d95c6e3

+ 52 - 0
.gitignore

@@ -0,0 +1,52 @@
+### macOS ###
+# General
+.DS_Store
+.AppleDouble
+.LSOverride
+
+# Icon must end with two \r
+Icon
+
+
+# Thumbnails
+._*
+
+# Files that might appear in the root of a volume
+.DocumentRevisions-V100
+.fseventsd
+.Spotlight-V100
+.TemporaryItems
+.Trashes
+.VolumeIcon.icns
+.com.apple.timemachine.donotpresent
+
+# Directories potentially created on remote AFP share
+.AppleDB
+.AppleDesktop
+Network Trash Folder
+Temporary Items
+.apdisk
+
+### macOS Patch ###
+# iCloud generated files
+*.icloud
+
+### VisualStudioCode ###
+.vscode/*
+!.vscode/settings.json
+!.vscode/tasks.json
+!.vscode/launch.json
+!.vscode/extensions.json
+!.vscode/*.code-snippets
+
+# Local History for Visual Studio Code
+.history/
+
+# Built Visual Studio Code Extensions
+*.vsix
+
+### VisualStudioCode Patch ###
+# Ignore all local history of files
+.history
+.ionide
+

BIN
dht11_led_pir/bin/dht11_led_pir.bin


BIN
dht11_led_pir/circuit.png


+ 56 - 0
dht11_led_pir/esphome.yaml

@@ -0,0 +1,56 @@
+esphome:
+  name: dht11sensor
+  friendly_name: DHT11Sensor
+
+esp8266:
+  board: esp01_1m
+
+# Enable logging
+logger:
+
+# Enable Home Assistant API
+api:
+  encryption:
+    key: "+t+IODNRTMX2AkJZyOGjmC+WBcwwmJ874iIhJVGKHuI="
+
+ota:
+  password: "0377f5a51e4dd7dd46399327b569a261"
+
+wifi:
+  ssid: !secret wifi_ssid
+  password: !secret wifi_password
+
+  # Enable fallback hotspot (captive portal) in case wifi connection fails
+  ap:
+    ssid: "Dht11Sensor Fallback Hotspot"
+    password: "sCzNkwVVxOLP"
+
+captive_portal:
+
+sensor:
+  - platform: dht
+    pin: GPIO12
+    temperature:
+      name: "Room Temperature"
+    humidity:
+      name: "Room Humidity"
+    update_interval: 15s
+
+
+light:
+  - platform: binary
+    name: "LED 1"
+    output: light_output
+
+output:
+  - id: light_output
+    platform: gpio
+    pin: GPIO14
+
+
+binary_sensor:
+  - platform: gpio
+    pin: GPIO10
+    name: "Motion Sensor PIR"
+    device_class: motion
+    

BIN
dht11_led_pir/images/1.png


BIN
dht11_led_pir/images/2.png


BIN
dht11_led_pir/images/3.png