changeset 11:020b84ff0c7f

board
author drewp@bigasterisk.com
date Wed, 26 Jun 2024 22:23:34 -0700
parents 7de586bf19ff
children 53e4020141fd
files board/door.yaml board/tasks.py
diffstat 2 files changed, 32 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/board/door.yaml	Wed Jun 26 22:23:34 2024 -0700
@@ -0,0 +1,25 @@
+esphome:
+  name: frontdoorlock
+  platform: ESP32
+  board: lolin32
+#  build_path: .
+#  arduino_version: espressif32@>=1.4.0
+
+switch:
+  - platform: gpio
+    pin: 2
+    name: "strike"
+
+wifi:
+  ssid: !secret wifi_ssid
+  password: !secret wifi_password
+
+mqtt:
+  broker: 'mqtt1.bigasterisk.com'
+  port: 1883
+  keepalive: 20s
+  
+logger:
+  baud_rate: 115200
+  level: DEBUG
+  
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/board/tasks.py	Wed Jun 26 22:23:34 2024 -0700
@@ -0,0 +1,7 @@
+from invoke import task
+
+
+@task
+def reprogram(ctx):
+    # no OTA on door strike esp32.
+    ctx.run('pdm run esphome run door.yaml --device /dev/serial/by-id/usb-Silicon_Labs_CP2104_USB_to_UART_Bridge_Controller_019011FE-if00-port0', pty=True)