2 Achegas b769324ed3 ... c6716ce3a5

Autor SHA1 Mensaxe Data
  Patryk M. Gutowski c6716ce3a5 set 5 BLE connection in upper bath hai 2 meses
  Patryk M. Gutowski 99376e960c fix compilation problem with esphoem 2025.7.5, calibrate voltage. add standard diag to LS PC hai 2 meses
Modificáronse 4 ficheiros con 25 adicións e 14 borrados
  1. 2 0
      gf-bt-proxy-01.yaml
  2. 11 6
      lscp01.yaml
  3. 11 7
      lscp02.yaml
  4. 1 1
      lscp03.yaml

+ 2 - 0
gf-bt-proxy-01.yaml

@@ -35,6 +35,7 @@ wifi:
 #    password: "Ry3eaIb2vmf1"  
 
 esp32_ble_tracker:
+  max_connections: 5
   scan_parameters:
     # active: True
     # We currently use the defaults to ensure Bluetooth
@@ -50,6 +51,7 @@ esp32_ble_tracker:
 
 bluetooth_proxy:
   active: true
+  connection_slots: 5
 
 # external_components:
 #  - source: github://myhomeiot/esphome-components

+ 11 - 6
lscp01.yaml

@@ -8,6 +8,9 @@ substitutions:
 esphome:
   name: $devicename
   friendly_name: $friendly_devicename
+  platformio_options:
+    lib_ignore:
+      - RPAsyncTCP
 
 bk72xx:
   board: generic-bk7231t-qfn32-tuya
@@ -17,6 +20,8 @@ bk72xx:
 packages:
   # Enable Home Assistant API
   esphome: !include common/keys.yaml
+  diag: !include common/diag.yaml
+
 
 # Enable logging
 logger:
@@ -81,7 +86,7 @@ sensor:
     # Adjust according to the actual resistor values on board to calibrate the specific unit
     # voltage_divider:  "895"               # LOWER VALUE GIVES LOWER VOLTAE
     # current_resistor: "0.0006"          # HIGHER VALUE GIVES LOWER WATTAGE
-    voltage_divider: "795"
+    voltage_divider: "814"
     current_resistor: "0.001"
     # how the power monitoring values are returned to ESPHome
     voltage:
@@ -199,9 +204,9 @@ status_led:
       # inverted: true
 
 binary_sensor:
-  - platform: status
-    name: Status
-    entity_category: diagnostic
+  # - platform: status
+  #   name: Status
+  #  entity_category: diagnostic
 
   - platform: gpio
     pin:
@@ -217,8 +222,8 @@ binary_sensor:
     on_click:
       - switch.toggle: outlet
 
-  - platform: status
-    name: ${friendly_devicename} status
+  # - platform: status
+  #  name: ${friendly_devicename} status
 
 switch:
   - platform: gpio

+ 11 - 7
lscp02.yaml

@@ -8,6 +8,9 @@ substitutions:
 esphome:
   name: $devicename
   friendly_name: $friendly_devicename
+  platformio_options:
+    lib_ignore:
+      - RPAsyncTCP
 
 bk72xx:
   board: generic-bk7231t-qfn32-tuya
@@ -17,6 +20,7 @@ bk72xx:
 packages:
   # Enable Home Assistant API
   esphome: !include common/keys.yaml
+  diag: !include common/diag.yaml
 
 logger:
 
@@ -80,7 +84,7 @@ sensor:
     # Adjust according to the actual resistor values on board to calibrate the specific unit
     # voltage_divider:  "895"               # LOWER VALUE GIVES LOWER VOLTAE
     # current_resistor: "0.0006"          # HIGHER VALUE GIVES LOWER WATTAGE
-    voltage_divider: "795"
+    voltage_divider: "814"
     current_resistor: "0.001"
     # how the power monitoring values are returned to ESPHome
     voltage:
@@ -198,9 +202,9 @@ status_led:
       # inverted: true
 
 binary_sensor:
-  - platform: status
-    name: Status
-    entity_category: diagnostic
+ # - platform: status
+ #   name: Status
+ #   entity_category: diagnostic
 
   - platform: gpio
     pin:
@@ -216,8 +220,8 @@ binary_sensor:
     on_click:
       - switch.toggle: outlet
 
-  - platform: status
-    name: ${friendly_devicename} status
+  #- platform: status
+  #  name: ${friendly_devicename} status
 
 switch:
   - platform: gpio
@@ -229,7 +233,7 @@ switch:
       - light.turn_on: led
     on_turn_off:
       - light.turn_off: led
-    restore_mode: RESTORE_DEFAULT_OFF
+    restore_mode: RESTORE_DEFAULT_ON
   # Switch to restart the plug
   - platform: restart
     name: ${friendly_devicename} Restart Switch

+ 1 - 1
lscp03.yaml

@@ -80,7 +80,7 @@ sensor:
     # Adjust according to the actual resistor values on board to calibrate the specific unit
     # voltage_divider:  "895"               # LOWER VALUE GIVES LOWER VOLTAE
     # current_resistor: "0.0006"          # HIGHER VALUE GIVES LOWER WATTAGE
-    voltage_divider: "795"
+    voltage_divider: "814"
     current_resistor: "0.001"
     # how the power monitoring values are returned to ESPHome
     voltage: