Selaa lähdekoodia

akwarium cleanup

Patryk M. Gutowski 2 kuukautta sitten
vanhempi
commit
47350a388a
1 muutettua tiedostoa jossa 6 lisäystä ja 52 poistoa
  1. 6 52
      ff-akwarium-plug-01.yaml

+ 6 - 52
ff-akwarium-plug-01.yaml

@@ -1,11 +1,14 @@
 substitutions:
   devicename: ff-akwarium-plug-01
-  low_devicename: ff-akwarium-plug-01
+  low_devicename: ff_akwarium_plug_01
   friendly_devicename: FF Akwarium Light 01
 
 esphome:
   name: $devicename
   friendly_name: $friendly_devicename
+  platformio_options:
+    lib_ignore:
+      - RPAsyncTCP
 
 bk72xx:
   board: generic-bk7231t-qfn32-tuya
@@ -15,6 +18,7 @@ bk72xx:
 packages:
   # Enable Home Assistant API
   esphome: !include common/keys.yaml
+  diag: !include common/diag.yaml
 
 # Enable logging
 logger:
@@ -27,49 +31,7 @@ wifi:
   password: !secret iot_password
   domain: .int.mmax.cloud
 
-
-sensor:
-  - platform: wifi_signal
-    name: "WiFi Signal Sensor"
-    update_interval: 60s
-
-  - platform: uptime
-    name: Uptime Sensor
-    id: uptime_sensor
-    update_interval: 60s
-    on_raw_value:
-      then:
-        - text_sensor.template.publish:
-            id: uptime_human
-            state: !lambda |-
-              int seconds = round(id(uptime_sensor).raw_state);
-              int days = seconds / (24 * 3600);
-              seconds = seconds % (24 * 3600);
-              int hours = seconds / 3600;
-              seconds = seconds % 3600;
-              int minutes = seconds /  60;
-              seconds = seconds % 60;
-              return (
-                (days ? to_string(days) + "d " : "") +
-                (hours ? to_string(hours) + "h " : "") +
-                (minutes ? to_string(minutes) + "m " : "") +
-                (to_string(seconds) + "s")
-              ).c_str();
-
-text_sensor:
-  - platform: template
-    name: Uptime Human Readable
-    id: uptime_human
-    icon: mdi:clock-start
-  - platform: wifi_info
-    ip_address:
-      name: IP Address
-      entity_category: diagnostic
-
 binary_sensor:
-  - platform: status
-    name: Status
-    entity_category: diagnostic
   - platform: gpio
     pin:
       number: P7
@@ -92,7 +54,6 @@ light:
     internal: True
     restore_mode: ALWAYS_OFF   
 
-
 output:
   - platform: gpio
     # RED
@@ -109,12 +70,6 @@ status_led:
     number: P26
     inverted: false
 
-button:
-  - platform: restart
-    id: restart_button
-    name: Restart
-    entity_category: diagnostic  
-
 globals:
   - id: current_light
     type: int
@@ -201,5 +156,4 @@ switch:
 #      - lambda:
 #          name: Daybreak
 #      - lambda:
-#          name: Night
-              
+#          name: Night