Patryk M. Gutowski il y a 2 ans
Parent
commit
7573522165
2 fichiers modifiés avec 100 ajouts et 0 suppressions
  1. 10 0
      common/diag.yaml
  2. 90 0
      ff-ala-rgb-01.yaml

+ 10 - 0
common/diag.yaml

@@ -1,4 +1,7 @@
 ---
+debug:
+  update_interval: 5s
+
 button:
   - platform: restart
     name: "${friendly_devicename} Restart"
@@ -10,6 +13,13 @@ sensor:
   - platform: wifi_signal
     name: "${friendly_devicename} WiFi Signal"
     id: ${low_devicename}_wifi_signal
+  - platform: debug
+    free:
+      name: Heap Free
+    loop_time:
+      name: Loop Time
+  - platform: uptime
+    name: Uptime
 
 binary_sensor:
   - platform: status

+ 90 - 0
ff-ala-rgb-01.yaml

@@ -0,0 +1,90 @@
+substitutions:
+  devicename:  ff-ala-rgb-01
+  low_devicename: ff_ala_rgb_01
+  friendly_devicename: FF Ala RGB Light 01
+
+esphome:
+  name: $devicename
+  friendly_name: ${friendly_devicename}
+
+bk72xx:
+  board: generic-bk7231n-qfn32-tuya
+
+
+
+# Enable logging
+logger:
+
+web_server:
+  port: 80
+  
+# Enable Home Assistant API
+api:
+  encryption:
+    key: "ejeMnlF5M60w/yuYwAWn/kIBz701xLwVkUGf9iN8uLA="
+
+ota:
+  password: "2c27af3ab81f992e23745c20ab5dfc02"
+
+wifi:
+  ssid: !secret iot_ssid
+  password: !secret iot_password
+  domain: .int.mmax.cloud
+
+
+text_sensor:
+  #  - platform: debug
+  #  reset_reason:
+  #    name: Reset Reason
+  - platform: libretiny
+    version:
+      name: LibreTiny Version
+packages:
+  diag: !include common/diag.yaml
+
+bp5758d:
+  clock_pin: P26
+  data_pin: P24
+
+output:
+  - platform: bp5758d
+    id: output_red
+    channel: 3
+    current: 14
+  - platform: bp5758d
+    id: output_green
+    channel: 2
+    current: 14
+  - platform: bp5758d
+    id: output_blue
+    channel: 1
+    current: 14
+  - platform: bp5758d
+    id: output_cold
+    channel: 5
+    current: 29
+  - platform: bp5758d
+    id: output_warm
+    channel: 4
+    current: 29
+
+light:
+  - platform: rgbww
+    id: light_rgbww
+    name: Light
+    color_interlock: true
+    cold_white_color_temperature: 6500 K
+    warm_white_color_temperature: 2700 K
+    red: output_red
+    green: output_green
+    blue: output_blue
+    cold_white: output_cold
+    warm_white: output_warm
+    restore_mode: ALWAYS_ON #Start with light on after reboot/power-loss event, so that it works from a dumb lightswitch
+    effects:
+      - random:
+      - strobe:
+      - flicker:
+          alpha: 50% #The percentage that the last color value should affect the light. More or less the “forget-factor” of an exponential moving average. Defaults to 95%.
+          intensity: 50%
+