瀏覽代碼

add protobox

Dura Bogdan 1 年之前
父節點
當前提交
078da8722d
共有 5 個文件被更改,包括 71 次插入0 次删除
  1. 二進制
      protoboxer/circuit.png
  2. 71 0
      protoboxer/esphome.yaml
  3. 二進制
      protoboxer/images/circuit1.PNG
  4. 二進制
      protoboxer/images/circuit2.jpg
  5. 二進制
      protoboxer/images/inhomeassistant.png

二進制
protoboxer/circuit.png


+ 71 - 0
protoboxer/esphome.yaml

@@ -0,0 +1,71 @@
+esphome:
+  name: protoboxer
+  friendly_name: ProtoBoxer
+
+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: "ProtoBoxer Fallback Hotspot"
+    password: "sCzNkwVVxOLP"
+
+captive_portal:
+
+sensor:
+  - platform: dht
+    pin: GPIO12
+    temperature:
+      name: "Room Temperature"
+    humidity:
+      name: "Room Humidity"
+    update_interval: 30s
+  - platform: adc
+    pin: A0
+    name: "ESP-2 Gas ADC"
+    update_interval: 30s
+    filters:
+      - multiply: 100
+    unit_of_measurement: "%"
+    icon: "mdi:percent"  
+
+
+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
+  
+switch:
+    - platform: gpio
+      id: buzzer
+      name: buzzer
+      pin: GPIO5
+
+    

二進制
protoboxer/images/circuit1.PNG


二進制
protoboxer/images/circuit2.jpg


二進制
protoboxer/images/inhomeassistant.png