changeset 1737:c480732442ec

reformat
author drewp@bigasterisk.com
date Fri, 01 Sep 2023 17:10:47 -0700
parents 66eabe163dd4
children 7d270896d6d0
files espNode/bed.yaml espNode/rf_switch_desk.yaml espNode/sonoff_light.yaml espNode/workshop.yaml
diffstat 4 files changed, 26 insertions(+), 39 deletions(-) [+]
line wrap: on
line diff
--- a/espNode/bed.yaml	Fri Sep 01 13:52:39 2023 -0700
+++ b/espNode/bed.yaml	Fri Sep 01 17:10:47 2023 -0700
@@ -19,9 +19,9 @@
 logger:
   baud_rate: 115200
   level: DEBUG
-  
+
 ota:
-  
+
 #dallas:
 #  - pin: GPIO16
 #sensor:
@@ -30,16 +30,16 @@
 #    name: temperature
 
 switch:
-  - {platform: gpio, pin: {mode: INPUT_PULLUP, number: 2, inverted: yes}, name: red_button}
-  - {platform: gpio, pin: {mode: INPUT_PULLUP, number: 15, inverted: yes}, name: green_button}
-  - {platform: gpio, pin: GPIO16, name: pir}
-  
+  - { platform: gpio, pin: { mode: INPUT_PULLUP, number: 2, inverted: yes }, name: red_button }
+  - { platform: gpio, pin: { mode: INPUT_PULLUP, number: 15, inverted: yes }, name: green_button }
+  - { platform: gpio, pin: GPIO16, name: pir }
+
 output:
-  - {platform: ledc, pin: GPIO19, id: headboard_w }
-  - {platform: ledc, pin: GPIO23, id: headboard_r }
-  - {platform: ledc, pin: GPIO18, id: headboard_g }
-  - {platform: ledc, pin: GPIO17, id: headboard_b }
-  
+  - { platform: ledc, pin: GPIO19, id: headboard_w }
+  - { platform: ledc, pin: GPIO23, id: headboard_r }
+  - { platform: ledc, pin: GPIO18, id: headboard_g }
+  - { platform: ledc, pin: GPIO17, id: headboard_b }
+
 light:
   - platform: rgbw
     name: headboard
@@ -48,7 +48,6 @@
     blue: headboard_b
     white: headboard_w
 
-    
 i2c:
   sda: 4
   scl: 15
@@ -75,7 +74,7 @@
     name: wifi_signal
     update_interval: 4s
     internal: true # no mqtt
-      
+
 display:
   - platform: ssd1306_i2c
     model: "SSD1306 128x64"
@@ -84,4 +83,3 @@
     lambda: |-
       it.print(0, 0, id(font_vera), "bed 2: running");
       it.printf(0, 20, id(font_vera), "wifi %s %.2f", id(wifi_ip).state.c_str(), id(my_wifi_signal).state);
-      
--- a/espNode/rf_switch_desk.yaml	Fri Sep 01 13:52:39 2023 -0700
+++ b/espNode/rf_switch_desk.yaml	Fri Sep 01 17:10:47 2023 -0700
@@ -1,33 +1,27 @@
 # facing the receiver board,
 #  pins: 3v3  |  (cs)  | D15   | gnd
 
-
 esphome:
   name: rf_switch_desk
   platform: esp32
   board: lolin32
 
-
 logger:
   baud_rate: 115200
   level: INFO
 
-
 wifi:
   networks:
-  - ssid: !secret wifi_ssid
-    password: !secret wifi_password
-
+    - ssid: !secret wifi_ssid
+      password: !secret wifi_password
 
 ota:
 
-
 mqtt:
   broker: '10.2.0.1'
   port: 1883
-  username: ''
-  password: ''
-
+  username: ""
+  password: ""
 
 remote_receiver:
   - id: rf_in
@@ -39,11 +33,11 @@
     dump: rc_switch
     on_rc_switch:
       then:
-#        - logger.log:
-#            level: INFO
-#            tag: out
-#            format: "RF read; proto %d; code %08llx"
-#            args: [x.protocol, x.code]
+        #        - logger.log:
+        #            level: INFO
+        #            tag: out
+        #            format: "RF read; proto %d; code %08llx"
+        #            args: [x.protocol, x.code]
         - mqtt.publish_json:
             topic: rf_switch_desk/rf_received
             payload: !lambda |-
--- a/espNode/sonoff_light.yaml	Fri Sep 01 13:52:39 2023 -0700
+++ b/espNode/sonoff_light.yaml	Fri Sep 01 17:10:47 2023 -0700
@@ -13,16 +13,13 @@
 mqtt:
   broker: '10.2.0.1'
   port: 1883
-  username: ''
-  password: ''
-  
+
 logger:
   baud_rate: 115200
   level: INFO
-  
+
 ota:
 
-
 binary_sensor:
   - platform: gpio
     pin:
--- a/espNode/workshop.yaml	Fri Sep 01 13:52:39 2023 -0700
+++ b/espNode/workshop.yaml	Fri Sep 01 17:10:47 2023 -0700
@@ -1,4 +1,3 @@
-
 # mosquitto_sub  -v -t workshop/status
 
 esphome:
@@ -16,11 +15,11 @@
   port: 1883
   username: ''
   password: ''
-  
+
 logger:
   baud_rate: 115200
   level: DEBUG
-  
+
 ota:
 
 i2c:
@@ -28,7 +27,7 @@
   scl: 22
   scan: True
   id: bus_a
-  
+
 pca9685:
   - frequency: 500
     address: 0x40
@@ -52,4 +51,3 @@
   - { platform: monochromatic, name: out5, output: out5 }
   - { platform: monochromatic, name: out7, output: out7 }
   - { platform: monochromatic, name: sewing, output: out0 }
-